Function at 0x4c21b0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x204
mov eax, dword [0x6a1068]
xor eax, esp
mov dword [esp + 0x200], eax
cmp dword [0x6a2d00], 0
push ebp
push edi
mov edi, dword [esp + 0x210]
mov ebp, ecx
je 0x4c2dc4
cmp dword [ebp + 0xa50], 0
jne 0x4c2dc4
cmp dword [0x6b1158], 0
je 0x4c2dc4
cmp dword [0x6a2d40], 7
jne 0x4c2dc4
push ebx
push 0x58
mov ecx, edi
call fcn.00513760
mov ebx, 1
cmp eax, ebx
jne 0x4c222b
mov ecx, dword [0x6a34f0]
mov edx, dword [0x6b1158]
mov eax, dword [ecx]
mov eax, dword [eax + 0x64]
push edx
push ebx
call eax
cmp dword [0x6c0fb0], 0
mov dword [esp + 0x1c], 0
je 0x4c2248
cmp dword [ebp + 0xa4c], ebx
jne 0x4c2248
mov dword [esp + 0x1c], ebx
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c225a
mov ebx, 4
push 0x1d
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c226d
and ebx, 0xfffffffe
or ebx, 2
push 0x2a
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2280
and ebx, 0xfffffffe
or ebx, 8
push esi
xor esi, esi
cmp dword [esp + 0x20], 0
je 0x4c22a8
mov eax, dword [ebp + 0xa4c]
imul eax, eax, 0x29
add eax, esi
lea ecx, [eax*8]
sub ecx, eax
cmp dword [ebp + ecx*2 + 0x486], 0
je 0x4c2308
mov eax, dword [ebp + 0xa4c]
imul eax, eax, 0x29
add eax, esi
lea ecx, [eax*8]
sub ecx, eax
test dword [ebp + ecx*2 + 0x480], ebx
lea ecx, [ebp + ecx*2]
je 0x4c2308
add eax, 0x53
lea edx, [eax*8]
sub edx, eax
cmp dword [ebp + edx*2], 0
je 0x4c22ed
movzx eax, word [ecx + 0x484]
push eax
mov ecx, edi
call fcn.00513700
jmp 0x4c22fc
movzx ecx, word [ecx + 0x484]
push ecx
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2308
push esi
mov ecx, ebp
call fcn.004c0ba0
inc esi
cmp esi, 0x29
jl 0x4c2283
push 0x13
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c23dd
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c23dd
push 0
push 0x3880
mov ecx, 0x6dd980
call fcn.00537dc0
test eax, eax
je 0x4c2362
push 0x58f974
push 0x1d
push 0x6b2fd8
call fcn.004c7640
add esp, 0xc
jmp 0x4c2dc2
mov ecx, dword [0x6a33e8]
cmp dword [ecx + 0xe], 0
jne 0x4c239c
cmp dword [0x6bee84], 0
je 0x4c23aa
push 0x283
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
push 0x1d
push 0x6b2fd8
call fcn.004c7640
mov ecx, dword [0x6a33e8]
add esp, 0xc
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
call eax
jmp 0x4c2dc2
mov edx, dword [0x69b90c]
cmp byte [edx + 0x6b0d48], 0
je 0x4c23d4
push 0x585670
push 1
push 0x3aba
push 0x6b0860
call fcn.00442bc0
add esp, 0x10
jmp 0x4c23dd
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
push 0xc7
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c240e
mov ecx, dword [0x6a3308]
test ecx, ecx
je 0x4c2dc2
cmp dword [ecx + 0xe], 0
mov eax, dword [ecx]
mov edx, dword [eax + 8]
je 0x4c240a
push 0
jmp 0x4c240c
push 1
call edx
push 0x14
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2469
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2469
mov esi, dword [0x6a353c]
test esi, esi
je 0x4c2dc2
cmp dword [esi + 0xe], 0
mov ecx, esi
je 0x4c2450
push 1
call fcn.00446720
mov ecx, esi
call fcn.004469e0
push 0
jmp 0x4c2460
push 0
call fcn.00446720
mov ecx, esi
call fcn.00446ff0
push 1
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x3f
mov ecx, edi
call fcn.005136c0
push 0x41
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c24a3
push 0x8e6
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
push 2
push 0x3ab5
push 0x6b0860
call fcn.00442bc0
add esp, 0x10
push 0x57
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c24f0
call fcn.0040ccf0
mov ecx, eax
call fcn.0050e9d0
test eax, eax
jne 0x4c24d9
call fcn.0040ccf0
mov ecx, eax
call fcn.0050eba0
mov ecx, dword [0x6a357c]
call fcn.0050e650
jmp 0x4c24f0
call fcn.0040ccf0
mov ecx, eax
call fcn.0050e9e0
mov ecx, dword [0x6a357c]
call fcn.0050e620
push 0x10
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2534
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2534
mov eax, dword [0x6a2cec]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4c2525
mov ecx, dword [0x6a2cec]
push 0
push ecx
jmp 0x4c252e
mov edx, dword [0x6a2cec]
push 8
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x6b2024], 0
je 0x4c2dc2
push 0x22
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2575
push 0x1d
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2575
mov ecx, dword [0x6a34c4]
test ecx, ecx
je 0x4c2575
mov eax, dword [ecx]
mov eax, dword [eax + 8]
xor edx, edx
cmp dword [ecx + 0xe], edx
sete dl
push edx
call eax
push 0x13
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c25a9
push 0x1d
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c25a9
mov ecx, dword [0x6a34c8]
test ecx, ecx
je 0x4c25a9
mov edx, dword [ecx]
mov edx, dword [edx + 8]
xor eax, eax
cmp dword [ecx + 0xe], eax
sete al
push eax
call edx
push 0x20
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c25dc
push 0x1d
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c25dc
mov ecx, dword [0x6a3500]
cmp dword [ecx + 0xe], 1
mov eax, dword [ecx]
mov edx, dword [eax + 8]
jne 0x4c25d8
push 0
jmp 0x4c25da
push 1
call edx
push 0x3b
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2606
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2606
xor eax, eax
cmp dword [0x6dbb5c], eax
sete al
mov dword [0x6dbb5c], eax
push 0xe
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c262a
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c262a
mov ecx, 0x6b0860
call fcn.0043f620
push 0x19
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c265c
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c265c
xor dword [ebp + 0xa58], 1
mov eax, dword [ebp + 0xa58]
push eax
mov ecx, 0x6a4a90
call fcn.00424390
push 0x2e
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c268f
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c268f
cmp dword [0x6ddd48], 4
mov ecx, 0x6ddd30
jne 0x4c2688
push 0
jmp 0x4c268a
push 4
call fcn.00540630
push 0x1e
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c26d1
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c26d1
mov esi, dword [0x6a34a8]
test esi, esi
je 0x4c26d1
mov edx, dword [esi]
mov edx, dword [edx + 8]
xor eax, eax
cmp dword [esi + 0xe], eax
mov ecx, esi
sete al
push eax
call edx
push 0x58f960
mov ecx, esi
call fcn.00479b10
push 0x1f
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2705
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2705
mov ecx, dword [0x6a3478]
test ecx, ecx
je 0x4c2705
mov eax, dword [ecx]
mov eax, dword [eax + 8]
xor edx, edx
cmp dword [ecx + 0xe], edx
sete dl
push edx
call eax
push 0x26
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c29f2
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c29f2
mov esi, dword [0x6a347c]
test esi, esi
je 0x4c29f2
mov ecx, dword [0x58f954]
mov edx, dword [0x58f958]
movzx eax, word [0x58f95c]
mov dword [esp + 0x1d0], ecx
movzx ecx, byte [0x58f95e]
mov dword [esp + 0x1d4], edx
lea edx, [esp + 0x4c]
mov byte [esp + 0x1da], cl
push edx
mov ecx, esi
mov word [esp + 0x1e9], 0x800
mov dword [esp + 0x50], 2
mov word [esp + 0x1dc], ax
call fcn.00478980
mov eax, dword [0x58f948]
mov ecx, dword [0x58f94c]
movzx edx, word [0x58f950]
mov dword [esp + 0x1d4], ecx
mov dword [esp + 0x1d0], eax
movzx eax, byte [0x58f952]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov word [esp + 0x1e9], 0x2001
mov dword [esp + 0x50], 4
mov word [esp + 0x1dc], dx
mov byte [esp + 0x1de], al
call fcn.00478980
mov edx, dword [0x58f93c]
mov eax, dword [0x58f940]
movzx ecx, word [0x58f944]
mov dword [esp + 0x1d0], edx
movzx edx, byte [0x58f946]
mov dword [esp + 0x1d4], eax
lea eax, [esp + 0x4c]
mov word [esp + 0x1d8], cx
mov ebx, 6
push eax
mov ecx, esi
mov word [esp + 0x1e9], 0x1002
mov dword [esp + 0x50], ebx
mov byte [esp + 0x1de], dl
call fcn.00478980
mov ecx, dword [0x58f930]
mov edx, dword [0x58f934]
movzx eax, word [0x58f938]
mov dword [esp + 0x1d0], ecx
movzx ecx, byte [0x58f93a]
mov dword [esp + 0x1d4], edx
lea edx, [esp + 0x4c]
mov byte [esp + 0x1da], cl
push edx
mov ecx, esi
mov word [esp + 0x1e9], 0x2003
mov dword [esp + 0x50], 8
mov word [esp + 0x1dc], ax
call fcn.00478980
mov eax, dword [0x58f924]
mov ecx, dword [0x58f928]
movzx edx, word [0x58f92c]
mov dword [esp + 0x1d4], ecx
mov dword [esp + 0x1d0], eax
movzx eax, byte [0x58f92e]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov word [esp + 0x1e9], 0x2004
mov dword [esp + 0x50], 0xa
mov word [esp + 0x1dc], dx
mov byte [esp + 0x1de], al
call fcn.00478980
mov edx, dword [0x58f918]
movzx ecx, word [0x58f920]
mov eax, dword [0x58f91c]
mov dword [esp + 0x1d0], edx
movzx edx, byte [0x58f922]
mov word [esp + 0x1e5], 0x405
mov dword [esp + 0x4c], 0xc
mov dword [esp + 0x1d4], eax
mov word [esp + 0x1d8], cx
mov byte [esp + 0x1da], dl
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.00478980
mov ecx, dword [0x58f90c]
mov edx, dword [0x58f910]
movzx eax, word [0x58f914]
mov dword [esp + 0x1d0], ecx
movzx ecx, byte [0x58f916]
mov dword [esp + 0x1d4], edx
lea edx, [esp + 0x4c]
mov byte [esp + 0x1da], cl
push edx
mov ecx, esi
mov word [esp + 0x1e9], 0x1006
mov dword [esp + 0x50], 0xe
mov word [esp + 0x1dc], ax
call fcn.00478980
mov eax, dword [0x58f900]
mov ecx, dword [0x58f904]
movzx edx, word [0x58f908]
mov dword [esp + 0x1d4], ecx
mov dword [esp + 0x1d0], eax
movzx eax, byte [0x58f90a]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov word [esp + 0x1e9], 0x2007
mov dword [esp + 0x50], 0x10
mov word [esp + 0x1dc], dx
mov byte [esp + 0x1de], al
call fcn.00478980
mov edx, dword [esi]
mov edx, dword [edx + 8]
xor eax, eax
cmp dword [esi + 0xe], eax
mov ecx, esi
sete al
push eax
call edx
mov ecx, esi
call fcn.00478eb0
push 0x24
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2bc6
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2bc6
lea eax, [esp + 0x1ed]
push 0x58f8f4
push eax
mov byte [esp + 0x1f0], 0
call fcn.00565b90
lea ecx, [esp + 0x206]
push 0x58f8e8
push ecx
call fcn.00565b90
lea edx, [esp + 0x39]
push 0x58f8e0
push edx
mov byte [esp + 0x3c], 1
call fcn.00565b90
lea eax, [esp + 0x52]
push 0x58f8d8
push eax
call fcn.00565b90
mov esi, dword [0x6a3480]
add esp, 0x20
test esi, esi
je 0x4c2bc6
lea ecx, [esp + 0x1e8]
push ecx
mov ecx, esi
mov dword [esi + 0x236], 1
call fcn.00477900
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00477900
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00477900
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00477900
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00477900
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00477900
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00477900
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00477900
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00477900
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00477900
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00477900
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00477900
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00477900
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00477900
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00477900
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00477900
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00477900
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00477900
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00477900
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00477900
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00477900
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00477900
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00477900
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00477900
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00477900
mov ecx, esi
call fcn.00477a10
mov edx, dword [esi]
mov edx, dword [edx + 8]
xor eax, eax
cmp dword [esi + 0xe], eax
mov ecx, esi
sete al
push eax
call edx
push 0x23
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2bfa
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2bfa
mov ecx, dword [0x6a3484]
test ecx, ecx
je 0x4c2bfa
mov eax, dword [ecx]
mov eax, dword [eax + 8]
xor edx, edx
cmp dword [ecx + 0xe], edx
sete dl
push edx
call eax
push 0x22
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2c2d
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2c2d
mov ecx, dword [0x6a32c8]
cmp dword [ecx + 0xe], 0
mov edx, dword [ecx]
mov eax, dword [edx + 8]
jne 0x4c2c29
push 1
jmp 0x4c2c2b
push 0
call eax
push 0x25
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2c43
push 0x38
mov ecx, edi
call fcn.00513760
push 0x20
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2c76
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2c76
mov ecx, dword [0x6a34fc]
cmp dword [ecx + 0xe], 0
mov edx, dword [ecx]
mov eax, dword [edx + 8]
jne 0x4c2c72
push 1
jmp 0x4c2c74
push 0
call eax
cmp dword [esp + 0x20], 1
je 0x4c2dc2
push 0x17
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2cc3
push 0x38
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2cc3
mov ecx, dword [0x6b1164]
mov word [esp + 0x11], 0x7f05
mov edx, dword [ecx + 0x125]
push 9
lea eax, [esp + 0x14]
push eax
mov ecx, 0x6c1448
mov dword [esp + 0x1b], edx
call fcn.005146d0
push 0x31
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2cf7
push 0x1d
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2cf7
mov ecx, dword [0x6a34b0]
test ecx, ecx
je 0x4c2cf7
mov edx, dword [ecx]
mov edx, dword [edx + 8]
xor eax, eax
cmp dword [ecx + 0xe], eax
sete al
push eax
call edx
push 0x15
mov ecx, edi
call fcn.005136c0
mov bl, 0x3c
test eax, eax
je 0x4c2d3e
push 0x1d
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2d3e
mov eax, dword [0x6b1158]
push 0xd
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x6c1448
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x29
mov dword [esp + 0x1b], eax
mov dword [esp + 0x21], 2
call fcn.005146d0
push 0x10
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2d7c
push 0x1d
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2d7c
mov edx, dword [0x6b1158]
push 9
lea eax, [esp + 0x14]
push eax
mov ecx, 0x6c1448
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 1
mov dword [esp + 0x1b], edx
call fcn.005146d0
push 0x1e
mov ecx, edi
call fcn.005136c0
test eax, eax
je 0x4c2dc2
push 0x1d
mov ecx, edi
call fcn.00513760
test eax, eax
je 0x4c2dc2
mov ecx, dword [0x6b1158]
push 0xd
lea edx, [esp + 0x14]
mov dword [esp + 0x17], ecx
push edx
mov ecx, 0x6c1448
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x29
mov dword [esp + 0x21], 1
call fcn.005146d0
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
pop edi
pop ebp
xor ecx, esp
call fcn.00565c32
add esp, 0x204
ret 4