Function at 0x420574
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x42057d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040461c
mov eax, dword [ebp - 8]
call fcn.0040461c
mov eax, dword [ebp - 0xc]
call fcn.0040461c
mov eax, dword [ebp + 0xc]
call fcn.0040461c
xor eax, eax
push ebp
push 0x420b2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x416a08]
call fcn.004171ec
mov esi, eax
mov byte [ebp - 0x25], 1
mov eax, esi
call fcn.0041743c
test al, al
je 0x4205f7
push 5
mov eax, dword [0x428dc0]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
mov eax, esi
call fcn.004179d8
push eax
mov eax, esi
call fcn.00417960
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x420b4c
mov edx, 0x420b68
mov eax, esi
call fcn.0041785c
mov eax, dword [ebp - 0x40]
push eax
lea edx, [ebp - 0x44]
mov eax, esi
call fcn.00417a58
mov ecx, dword [ebp - 0x44]
mov eax, dword [0x428ee0]
mov eax, dword [eax]
pop edx
call fcn.0041c730
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041ff14
test al, al
jne 0x42065a
call fcn.0041ca60
test al, al
je 0x42065a
lea eax, [ebp - 4]
call fcn.0041c9a4
mov eax, dword [0x428dcc]
mov edx, 0x420b74
call fcn.00404848
mov edx, ebx
call fcn.00403000
mov edx, 0x420b94
call fcn.00404848
call fcn.004030b0
test bl, bl
je 0x420693
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041ffb8
mov byte [ebp - 0x25], al
cmp byte [ebp - 0x25], 0
je 0x420adc
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x420ba8
mov edx, 0x420bf0
mov eax, esi
call fcn.0041785c
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x420bfc
mov edx, 0x420bfc
mov eax, esi
call fcn.0041785c
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x420c10
mov edx, 0x420c48
mov eax, esi
call fcn.0041785c
mov eax, esi
call fcn.00417960
mov edi, eax
test bl, bl
je 0x4206f8
push 5
mov eax, dword [0x428da0]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
mov edx, 1
mov eax, 0x3e8
call fcn.0040ee08
lea eax, [ebp - 0x26]
push eax
push fcn.00416094
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
push edi
call fcn.0041fe44
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0041bda0
xor edx, edx
mov eax, 0x3e8
call fcn.0040ee08
cmp dword [ebp - 0x18], 0
je 0x420a6a
call fcn.00416ac0
test al, al
jne 0x420a6a
cmp byte [ebp - 0x26], 0
je 0x420a6a
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00404220
mov edx, dword [ebp - 0x18]
mov eax, 0x420c58
call fcn.00404770
mov edi, eax
test edi, edi
jle 0x4207f1
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.0040468c
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x1c]
call fcn.00406bc4
push dword [ebp + 0xc]
push 0x420c64
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040442c
mov ecx, eax
lea edx, [edi + 1]
mov eax, dword [ebp - 0x18]
call fcn.0040468c
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.00406bc4
push dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.004044ec
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00406bc4
mov edx, dword [ebp - 0x4c]
lea eax, [ebp + 0xc]
call fcn.00404220
lea ecx, [ebp - 0x5c]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0040fcac
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
call fcn.00404478
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00404220
cmp dword [ebp + 0xc], 0
je 0x420835
push dword [ebp - 0x14]
push 0x420c64
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004044ec
call sub.kernel32.dll_GetCurrentThreadId_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x60]
call fcn.00406d4c
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x38]
mov edx, 0x420c70
call fcn.00404478
push dword [ebp - 0x14]
push 0x420c7c
push dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004044ec
mov edx, dword [ebp - 0x14]
mov eax, 0x420c90
call fcn.00404770
test eax, eax
jne 0x4208a4
push dword [ebp - 0x14]
push 0x420ca4
lea eax, [ebp - 0x64]
call fcn.0040fd50
push dword [ebp - 0x64]
push 0x420cbc
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004044ec
mov eax, dword [0x428e74]
cmp byte [eax], 0
je 0x4208bb
lea eax, [ebp - 0x14]
mov edx, 0x420cc8
call fcn.00404434
lea eax, [ebp - 0x20]
call fcn.0041d260
lea eax, [ebp - 0x24]
call fcn.0041d2dc
lea ecx, [ebp - 0x68]
mov edx, 0x420ce4
mov eax, dword [ebp - 0x14]
call fcn.004204e0
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x14]
call fcn.00404220
lea ecx, [ebp - 0x6c]
mov edx, 0x420cf8
mov eax, dword [ebp - 0x14]
call fcn.004204e0
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x14]
call fcn.00404220
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x428dcc]
call fcn.00404d84
mov edx, 0x420d14
call fcn.00404848
mov edx, dword [ebp - 0x14]
call fcn.00404848
mov edx, 0x420d3c
call fcn.00404848
call fcn.004030b0
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x38]
mov edx, 0x420d48
call fcn.00404478
mov eax, dword [ebp - 0x70]
call fcn.0040462c
mov edi, eax
push edi
call sub.kernel32.dll_GlobalAddAtomA
test bl, bl
je 0x42097c
mov eax, dword [ebp - 0x14]
call fcn.0040462c
mov edx, eax
lea eax, [ebp - 0x74]
call fcn.00404364
mov eax, dword [ebp - 0x74]
mov edx, 5
call fcn.00420414
mov ebx, eax
jmp 0x42099a
mov eax, dword [ebp - 0x14]
call fcn.0040462c
mov edx, eax
lea eax, [ebp - 0x78]
call fcn.00404364
mov eax, dword [ebp - 0x78]
xor edx, edx
call fcn.00420414
mov ebx, eax
push 0
mov eax, dword [0x428da0]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, 0x3e8
call fcn.0040ee08
mov eax, ebx
call fcn.004204b0
lea eax, [ebp - 0x3c]
push eax
push ebx
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x428d50]
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x38]
mov edx, 0x420d6c
call fcn.00404478
mov eax, dword [ebp - 0x7c]
call fcn.0040462c
xor edx, edx
call fcn.0040d990
xor edx, edx
mov eax, 0x3e8
call fcn.0040ee08
mov edx, 0x420d48
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x38]
call fcn.00404478
push edi
call sub.kernel32.dll_GlobalFindAtomA
test ax, ax
sete byte [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
cmp byte [ebp - 0xd], 0
je 0x420a6a
call fcn.0041e9e0
test al, al
je 0x420a47
cmp dword [ebp - 0x20], 0
je 0x420a47
mov eax, dword [ebp - 0x20]
call fcn.00406f1c
test al, al
je 0x420a47
mov eax, dword [ebp - 0x20]
call fcn.00407184
call fcn.0041eaa0
test al, al
je 0x420a6a
cmp dword [ebp - 0x24], 0
je 0x420a6a
mov eax, dword [ebp - 0x24]
call fcn.00406f1c
test al, al
je 0x420a6a
mov eax, dword [ebp - 0x24]
call fcn.00407184
cmp byte [ebp - 0x26], 0
jne 0x420adc
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x420c10
mov edx, 0x420c48
mov eax, esi
call fcn.0041785c
mov eax, dword [ebp - 0x84]
push eax
mov eax, esi
call fcn.00417960
push eax
lea eax, [ebp - 0x88]
push eax
mov ecx, 0x420d8c
mov edx, 0x420d8c
mov eax, esi
call fcn.0041785c
mov eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
push eax
mov ecx, 0x420d9c
mov edx, 0x420dec
mov eax, esi
call fcn.0041785c
mov edx, dword [ebp - 0x8c]
xor eax, eax
pop ecx
call fcn.0040f204
call fcn.0041ccb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420b35
lea eax, [ebp - 0x8c]
mov edx, 0x14
call fcn.004041ac
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.004041ac
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.004041ac
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
lea eax, [ebp + 0xc]
call fcn.00404188
ret