Function at 0x42fb7e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x5c
mov eax, 0x523027
call fcn.004f21c7
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov esi, ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], esi
call edi
test eax, eax
jne 0x42fbae
xor al, al
jmp 0x42fe9f
mov eax, dword [ebx + 0x4c]
and dword [ebp - 0x48], 0
test eax, eax
jne 0x42fc55
cmp byte [ebx + 0x48], al
jne 0x42fc4c
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx - 0xc]
mov edi, dword [ebx + 0x30]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [edi - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edi
mov dword [ebp - 0x50], ecx
xor ecx, ecx
inc ecx
test dword [ebp + 0x14], 4
je 0x42fbef
xor ecx, ecx
mov edx, dword [ebx + 0x28]
lea esi, [ebx + 0x74]
push esi
lea edi, [ebx + 0x70]
push edi
push ecx
push dword [ebp - 0x50]
lea ecx, [ebx + 0x38]
push dword [ebp + 0x14]
push edx
mov edx, eax
call fcn.0042f70f
add esp, 0x18
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x42fc74
cmp byte [ebx + 0x48], al
jne 0x42fc74
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42fba7
mov edi, dword [edi]
test edi, edi
je 0x42fba7
push dword [esi]
push edi
push 0x4cc
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x42fba7
mov dword [ebp - 0x48], 2
jmp 0x42fc77
cmp eax, 1
jne 0x42fd39
push dword [ebx + 0x38]
call edi
test eax, eax
je 0x42fd39
mov dword [ebp - 0x48], 1
jmp 0x42fc77
mov esi, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], 1
jne 0x42fd39
test byte [ebp + 0x14], 2
je 0x42fcb6
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x38]
mov dword [ebp - 0x40], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [ebp - 0x38], 2
jne 0x42fcb6
push 9
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x18], 0x10
mov eax, dword [esi + 0x14]
jb 0x42fcc4
mov esi, dword [esi + 4]
jmp 0x42fcc7
add esi, 4
mov edi, dword [ebx + 0x38]
push 0
push 0xbb8
push eax
push esi
push dword [ebp + 0x10]
call fcn.00436944
mov esi, eax
add esp, 0x14
test esi, esi
je 0x42fcf3
push dword [ebp + 0x10]
mov eax, dword [ebx]
push dword [ebp - 0x54]
mov ecx, ebx
call dword [eax + 0x14]
jmp 0x42fd2d
mov eax, dword [ebx + 0x28]
cmp dword [eax - 0xc], 0
je 0x42fd2d
mov dword [ebx + 0x70], 0x69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x3c]
mov dword [ebx + 0x74], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42fd2d
push dword [ebx + 0x74]
push dword [ebx + 0x70]
push 0x4cc
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
test esi, esi
setne al
jmp 0x42fe9f
cmp dword [ebp - 0x48], 2
mov byte [ebp - 0x41], 0
je 0x42fd4d
cmp byte [ebx + 0x48], 0
je 0x42fe9c
lea eax, [ebx + 0x58]
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x48], 2
jne 0x42fd6b
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x50], eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp + 0x10]
mov ecx, ebx
mov byte [ebx + 0x48], 1
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x50], esi
call dword [eax + 0x10]
cmp al, 1
jne 0x42fe34
cmp dword [ebp - 0x58], esi
jne 0x42fd9d
cmp dword [ebp - 0x50], esi
je 0x42fe34
lea edi, [ebx + 0x78]
push dword [edi + 0x10]
lea esi, [ebp - 0x68]
call fcn.0045e744
push dword [edi + 0xc]
lea esi, [ebp - 0x4c]
call fcn.0045e744
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x42fdc2
cmp eax, dword [ebp - 0x68]
je 0x42fdc7
call fcn.004e8466
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x64]
je 0x42fe34
lea esi, [ebp - 0x4c]
call fcn.004555bb
mov ecx, dword [ebp - 0x54]
cmp dword [eax], ecx
jne 0x42fdfc
call fcn.004555bb
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax + 4]
je 0x42fe06
call fcn.004555bb
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [eax + 4]
je 0x42fe93
lea esi, [ebp - 0x4c]
call fcn.004302e5
jmp 0x42fdb6
mov esi, dword [ebp - 0x48]
push esi
push dword [edi + 0x10]
lea eax, [esi + 0x24]
push eax
call fcn.004306d5
mov eax, dword [edi + 0x10]
add esp, 0xc
push eax
add eax, 0xffffffdc
call fcn.004303bf
add dword [edi + 0x10], 0xffffffdc
push esi
lea esi, [ebp - 0x68]
call fcn.0045e744
jmp 0x42fe93
lea esi, [ebp - 0x30]
mov byte [ebp - 0x41], 1
call fcn.00404f0c
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
xor esi, esi
push esi
push dword [ebp - 0x5c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.00404fe6
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebx + 0x78]
call fcn.0043020e
cmp dword [ebx + 0x44], esi
jne 0x42fe88
push esi
push 0x1f4
push 0x64
push dword [ebx + 4]
mov dword [ebx + 0x40], esi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.004051fe
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x41]
call fcn.004f224a
ret 0x10