Function at 0x427650
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4bc9f3
mov eax, dword fs:[0]
push eax
sub esp, 0x910
mov eax, dword [0x4f36a0]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f36a0]
xor eax, esp
push eax
lea eax, [esp + 0x924]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x934]
xor ebx, ebx
mov dword [esp + 0x4c], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x92c], ebx
mov edi, dword [0x501104]
lea eax, [esp + 0x4c]
add edi, 0x10
push edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x4fe974]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], eax
call fcn.00427ad0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebp
lea eax, [esp + 0x118]
push eax
call fcn.004273b0
push ebp
lea esi, [esp + 0x118]
lea eax, [esp + 0x88]
call fcn.00423750
mov ecx, eax
mov byte [esp + 0x92c], 2
call fcn.004237f0
push 0x4de004
lea ecx, [esp + 0x88]
push str.32770
mov dword [esp + 0x900], ecx
call dword [sym.imp.USER32.dll_FindWindowW]
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
cmp eax, ebx
je 0x4277e2
lea edx, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
lea edx, [esp + 0x3c]
lea esi, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00429cb0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
sub eax, ecx
sub eax, 0x1dc
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
add eax, 0x1dc
mov dword [esp + 0x1c], eax
sub ecx, esi
sub ecx, 0xdd
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, esi
jmp 0x42781f
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
call esi
push 1
mov edi, eax
call esi
mov ecx, eax
lea eax, [edi - 0x1dc]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
add eax, 0x1dc
mov dword [esp + 0x1c], eax
add ecx, 0xffffff23
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
add eax, 0xdd
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x118]
call fcn.00427e90
test eax, eax
jne 0x427891
lea edi, [esp + 0x84]
call fcn.00426a90
mov ecx, esi
push ecx
mov byte [esp + 0x930], bl
call fcn.0040add0
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x427871
push eax
call fcn.00498f5b
add esp, 4
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
cmp eax, ebx
je 0x42788a
push eax
call fcn.00498f5b
add esp, 4
xor eax, eax
jmp 0x4279c1
lea ecx, [esp + 0x84]
call fcn.00423920
mov eax, dword [ebp]
test al, 4
jne 0x42791a
test eax, 0x100
jne 0x42791a
cmp eax, 0x201
jne 0x4278c1
lea edx, [esp + 0x114]
push edx
call fcn.0040bb90
jmp 0x42791a
cmp eax, ebx
jne 0x427905
mov eax, dword [esp + 0x118]
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [esp + 0x84]
call fcn.00426a90
lea ecx, [esp + 0x114]
push ecx
mov byte [esp + 0x930], bl
call fcn.0040add0
lea esi, [esp + 0x4c]
call fcn.004279f0
or eax, 0xffffffff
jmp 0x4279c1
cmp eax, 1
jne 0x42791a
mov edx, dword [esp + 0x118]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [esp + 0x4c]
call fcn.00426700
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, eax
push 1
lea eax, [esp + 0xac]
push eax
call esi
cmp dword [esp + 0xac], 1
jne 0x42796c
push ebx
lea ecx, [esp + 0xb0]
push ecx
call esi
mov ecx, dword [esp + 0xc4]
cmp ecx, ebx
je 0x42795e
call fcn.0040d7c0
jmp 0x427965
mov eax, dword [esp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.00426970
lea edi, [esp + 0x84]
call fcn.00426a90
lea edx, [esp + 0x114]
push edx
mov byte [esp + 0x930], bl
call fcn.0040add0
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4279a6
push eax
call fcn.00498f5b
add esp, 4
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
cmp eax, ebx
je 0x4279bf
push eax
call fcn.00498f5b
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x924]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x908]
xor ecx, esp
call fcn.00497c58
add esp, 0x91c
ret