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

Disassembly:
push 0x5c
mov eax, 0x52e4a5
call fcn.004fc737
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 0x43534a
xor al, al
jmp 0x43563b
mov eax, dword [ebx + 0x4c]
and dword [ebp - 0x48], 0
test eax, eax
jne 0x4353f1
cmp byte [ebx + 0x48], al
jne 0x4353e8
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 0x43538b
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.00434eab
add esp, 0x18
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x435410
cmp byte [ebx + 0x48], al
jne 0x435410
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x435343
mov edi, dword [edi]
test edi, edi
je 0x435343
push dword [esi]
push edi
push 0x4cc
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x435343
mov dword [ebp - 0x48], 2
jmp 0x435413
cmp eax, 1
jne 0x4354d5
push dword [ebx + 0x38]
call edi
test eax, eax
je 0x4354d5
mov dword [ebp - 0x48], 1
jmp 0x435413
mov esi, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], 1
jne 0x4354d5
test byte [ebp + 0x14], 2
je 0x435452
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 0x435452
push 9
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x18], 0x10
mov eax, dword [esi + 0x14]
jb 0x435460
mov esi, dword [esi + 4]
jmp 0x435463
add esi, 4
mov edi, dword [ebx + 0x38]
push 0
push 0xbb8
push eax
push esi
push dword [ebp + 0x10]
call fcn.0043bf4b
mov esi, eax
add esp, 0x14
test esi, esi
je 0x43548f
push dword [ebp + 0x10]
mov eax, dword [ebx]
push dword [ebp - 0x54]
mov ecx, ebx
call dword [eax + 0x14]
jmp 0x4354c9
mov eax, dword [ebx + 0x28]
cmp dword [eax - 0xc], 0
je 0x4354c9
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 0x4354c9
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 0x43563b
cmp dword [ebp - 0x48], 2
mov byte [ebp - 0x41], 0
je 0x4354e9
cmp byte [ebx + 0x48], 0
je 0x435638
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 0x435507
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 0x4355d0
cmp dword [ebp - 0x58], esi
jne 0x435539
cmp dword [ebp - 0x50], esi
je 0x4355d0
lea edi, [ebx + 0x78]
push dword [edi + 0x10]
lea esi, [ebp - 0x68]
call fcn.00480d46
push dword [edi + 0xc]
lea esi, [ebp - 0x4c]
call fcn.00480d46
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x43555e
cmp eax, dword [ebp - 0x68]
je 0x435563
call fcn.004f2996
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x64]
je 0x4355d0
lea esi, [ebp - 0x4c]
call fcn.00467597
mov ecx, dword [ebp - 0x54]
cmp dword [eax], ecx
jne 0x435598
call fcn.00467597
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax + 4]
je 0x4355a2
call fcn.00467597
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [eax + 4]
je 0x43562f
lea esi, [ebp - 0x4c]
call fcn.00435a81
jmp 0x435552
mov esi, dword [ebp - 0x48]
push esi
push dword [edi + 0x10]
lea eax, [esi + 0x24]
push eax
call fcn.00435e71
mov eax, dword [edi + 0x10]
add esp, 0xc
push eax
add eax, 0xffffffdc
call fcn.00435b5b
add dword [edi + 0x10], 0xffffffdc
push esi
lea esi, [ebp - 0x68]
call fcn.00480d46
jmp 0x43562f
lea esi, [ebp - 0x30]
mov byte [ebp - 0x41], 1
call fcn.00404eb3
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.00404f8d
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebx + 0x78]
call fcn.004359aa
cmp dword [ebx + 0x44], esi
jne 0x435624
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.004051a5
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x41]
call fcn.004fc7ba
ret 0x10