Function at 0x407f50
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4eb1e7
mov eax, dword fs:[0]
push eax
sub esp, 0xca4
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0xca0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0xcb8]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00407a70
cmp dword [0x51b350], 0
mov edi, eax
je 0x407fbc
push 0x416190
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x51b34c], eax
call fcn.00416260
mov dword [edi + 0xc14], 0x1084
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00406bd0
lea edi, [esp + 0x1c]
mov dword [esp + 0xcc0], 0
call fcn.00405f80
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
jl 0x40851a
push 0x4f0d38
push ecx
call fcn.004c9c9b
add esp, 8
test eax, eax
je 0x408516
mov ecx, dword [esp + 0x1c]
sub eax, ecx
sar eax, 1
js 0x40851a
cmp dword [ecx - 0xc], 0
jl 0x40851a
push 0x4f0d50
push ecx
call fcn.004c9c9b
add esp, 8
test eax, eax
je 0x408516
mov ecx, dword [esp + 0x1c]
sub eax, ecx
sar eax, 1
js 0x40851a
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00406bd0
lea edx, [esp + 0x3c]
mov byte [esp + 0xcc0], 1
mov ecx, dword [esp + 0x20]
push edx
call fcn.00406fb0
mov byte [esp + 0xcc0], 2
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
lea esi, [esp + 0x24]
lea eax, [esp + 0x3c]
call fcn.004074e0
mov byte [esp + 0xcc0], 3
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx - 0xc]
xor esi, esi
cmp eax, esi
jge 0x40809d
or eax, 0xffffffff
jmp 0x4080ba
push 0x4f0d64
push ecx
call fcn.004c9c9b
add esp, 8
cmp eax, esi
jne 0x4080b4
or eax, 0xffffffff
jmp 0x4080ba
sub eax, dword [esp + 0x3c]
sar eax, 1
mov edx, dword [0x5195ac]
xor ecx, ecx
cmp eax, esi
mov eax, dword [edx + 0xc]
setge cl
mov dword [esp + 0x18], ecx
mov ecx, 0x5195ac
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push ebx
push ebp
push str.___d_____d__
lea edi, [esp + 0x34]
mov byte [esp + 0xccc], 4
call fcn.00406e20
add esp, 0xc
cmp ebp, esi
jne 0x408197
mov byte [esp + 0xcc0], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408127
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc0], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40814f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x3c]
call fcn.00408570
mov byte [esp + 0xcc0], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408180
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xcc0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
jmp 0x408528
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00412cf0
push eax
lea edx, [esp + 0x2c]
mov ecx, ebx
mov eax, ebp
call fcn.00412d60
mov dword [esp + 0x54], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0xcc4], 5
call fcn.0040aa30
call fcn.00412cf0
push eax
call fcn.00414130
test eax, eax
je 0x40824c
call fcn.00407870
lea eax, [esp + 0x38]
push eax
call fcn.00412cf0
push eax
call fcn.00412f40
mov edi, eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0xcc4], 6
call fcn.00412cf0
push eax
call fcn.00412e70
mov byte [esp + 0xcc0], 7
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push eax
call fcn.004c8d0c
lea ecx, [esp + 0x34]
call fcn.00406e40
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc0], 5
call fcn.00406e40
mov edi, dword [esp + 0x18]
call fcn.00407d00
test eax, eax
jne 0x408470
lea ecx, [esp + 0x30]
call fcn.00449d60
mov bl, 8
mov byte [esp + 0xcc0], bl
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov esi, esp
call fcn.004065a0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0xcc4], 9
call fcn.00412cf0
lea esi, [esp + 0x1c]
call fcn.0041f980
mov byte [esp + 0xcc4], 0xa
mov edi, dword [eax]
call fcn.00412cf0
push eax
call fcn.00414d50
push eax
call fcn.0046b3a0
mov esi, eax
mov byte [esp + 0xcc8], 0xb
call fcn.0046b2d0
lea ecx, [esp + 0x18]
mov byte [esp + 0xcc0], bl
call fcn.00406e40
lea edx, [esp + 0x2c]
push edx
call fcn.00412cf0
push eax
call fcn.004133c0
mov bl, 0xc
lea esi, [esp + 0x3c]
mov byte [esp + 0xcc0], bl
call fcn.00407500
test eax, eax
je 0x4083dc
call fcn.00412cf0
push ebp
lea eax, [esp + 0x90]
push eax
call fcn.0044ba90
push ecx
mov byte [esp + 0xcc4], 0xd
mov eax, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [esp + 0x20], esp
push 0
lea esi, [esp + 0x98]
mov dword [eax], 0
call fcn.00408960
lea ecx, [esp + 0x90]
push ecx
xor eax, eax
mov dword [esp + 0x278], 1
call fcn.0040a850
mov edx, dword [esp + 0x90]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [esp + 0x54]
call fcn.0040a7b0
mov edi, eax
call fcn.0040a660
mov eax, esi
push eax
mov byte [esp + 0xcc4], bl
call fcn.00408610
lea ecx, [esp + 0x2c]
call fcn.00406e40
lea ecx, [esp + 0x30]
call fcn.00406e40
lea esi, [esp + 0x54]
call fcn.004085d0
lea ecx, [esp + 0x28]
call fcn.00406e40
lea ecx, [esp + 0x24]
call fcn.00406e40
lea esi, [esp + 0x3c]
call fcn.00408570
lea ecx, [esp + 0x20]
call fcn.00406e40
lea ecx, [esp + 0x1c]
call fcn.00406e40
mov eax, edi
jmp 0x408543
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x2f8]
push edx
call fcn.00440750
lea esi, [esp + 0x18]
lea eax, [esp + 0x3c]
mov byte [esp + 0xcc0], 0xe
call fcn.00407540
lea edi, [esp + 0xc9c]
mov byte [esp + 0xcc0], 0xf
call fcn.00405e00
mov ecx, esi
mov byte [esp + 0xcc0], 0xe
call fcn.00406e40
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [eax], 0
mov eax, esp
lea esi, [esp + 0x2fc]
mov dword [esp + 0x20], esp
mov dword [eax], 0
call fcn.00408830
test eax, eax
jne 0x4084ab
mov ecx, esi
mov byte [esp + 0xcc0], bl
call fcn.00440a60
lea ecx, [esp + 0x2c]
call fcn.00406e40
lea ecx, [esp + 0x30]
call fcn.00406e40
lea esi, [esp + 0x54]
call fcn.004085d0
lea ecx, [esp + 0x28]
call fcn.00406e40
lea ecx, [esp + 0x24]
call fcn.00406e40
lea esi, [esp + 0x3c]
call fcn.00408570
lea ecx, [esp + 0x20]
call fcn.00406e40
lea ecx, [esp + 0x1c]
call fcn.00406e40
jmp 0x408541
mov eax, dword [esp + 0x2f8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4084d9
mov ecx, dword [esp + 0x2f8]
push ecx
call dword [sym.imp.USER32.dll_OpenIcon]
mov edx, dword [esp + 0x2f8]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x2f8]
push 0x10
push 0xc8
push eax
call dword [sym.imp.USER32.dll_AnimateWindow]
lea edi, [esp + 0x54]
call fcn.0040a7b0
mov edi, eax
call fcn.0040a660
lea ecx, [esp + 0x2f4]
mov byte [esp + 0xcc0], bl
call fcn.00440a60
jmp 0x40838d
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xcc0], 0xffffffff
lea eax, [ecx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408541
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xcb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xca0]
xor ecx, esp
call fcn.004c961b
add esp, 0xcb0
ret