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

Disassembly:
sub esp, 0xa8
push ebx
push ebp
xor ebp, ebp
push edi
cmp dword [esi + 0x344], ebp
jne 0x43f633
lea edi, [esi + 0x2c]
mov ecx, edi
call fcn.0046b093
mov ebx, eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x3c]
push eax
push 1
mov ecx, esi
mov dword [esp + 0x44], 0x28
call fcn.004699d5
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov edx, dword [ebx]
mov edx, dword [edx + 0x11c]
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
mov ecx, edi
call fcn.0046a36a
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.0046a352
lea ecx, [esi + 0x33c]
push ecx
lea ecx, [esp + 0x30]
call fcn.0046e8e3
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 4]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
add edx, edi
push ecx
mov dword [esp + 0xac], edx
lea ebx, [eax + ebp]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0xa8]
mov edx, dword [esi + 4]
push 0
sub ebx, ebp
push ebx
sub eax, edi
push eax
push ebp
push edi
push edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
push 0x40
push ebx
push eax
push ebp
push edi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop ebp
pop ebx
add esp, 0xa8
ret
mov ecx, dword [esi + 0x344]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], eax
xor eax, eax
push ecx
mov dword [esp + 0x40], eax
push 1
mov ecx, esi
mov dword [esp + 0xac], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], 0x28
call fcn.004699d5
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x80], ecx
sub ecx, edi
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x344]
mov dword [esp + 0x7c], eax
sub eax, edx
add ecx, 0x524
mov dword [esp + 0x74], edx
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x78], edi
xor edi, edi
call eax
test eax, eax
jle 0x43f785
mov edi, edi
mov eax, dword [esi + 0x344]
mov edx, dword [eax + 0x524]
lea ecx, [eax + 0x524]
mov eax, dword [edx]
push edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
push str.MenuElement
call eax
test eax, eax
je 0x43f769
mov ecx, dword [esi + 0x344]
mov edx, dword [ecx + 0x524]
mov eax, dword [edx]
add ecx, 0x524
push edi
call eax
mov ecx, dword [esp + 0x38]
mov edx, dword [eax]
mov edx, dword [edx + 0x11c]
push ecx
push ebx
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call edx
mov eax, dword [esp + 0x2c]
add ebp, dword [esp + 0x30]
cmp dword [esp + 0x24], eax
jge 0x43f769
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x344]
lea ecx, [eax + 0x524]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
inc edi
call edx
cmp edi, eax
jl 0x43f700
mov ecx, dword [esi + 0x344]
mov ebx, dword [esp + 0x24]
mov edx, dword [ecx]
lea eax, [esp + 0x64]
push eax
mov eax, dword [edx + 0x1c]
add ebx, 4
add ebp, 4
mov dword [esp + 0x28], ebx
call eax
mov ecx, eax
call fcn.0046ecbc
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esi + 0x344]
mov dword [esp + 0x18], eax
add eax, ebp
push 2
lea edx, [esp + 0x18]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x1c]
xor edi, edi
push edi
call edx
mov ecx, eax
call fcn.0046ecbc
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [eax + ebx + 2]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
lea edi, [esp + 0x94]
mov byte [esp + 0x13], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0x4cec0c
call fcn.00440ff0
test eax, eax
je 0x43f91a
push 0
push 0x4cf950
push 0x4cf910
push 0
push eax
call fcn.0049fd59
mov edi, eax
add esp, 0x14
test edi, edi
je 0x43f8cf
lea ecx, [esp + 0x84]
push ecx
mov ecx, edi
call fcn.004699d5
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x84]
cmp edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x88]
mov ecx, dword [esi + 0x344]
mov edx, dword [ecx]
setge byte [esp + 0x13]
cmp eax, dword [esp + 0x70]
mov eax, dword [edx + 0x1c]
setge bl
call eax
mov ecx, eax
call fcn.0046ecbc
mov ecx, edi
mov dword [esp + 0x34], eax
call fcn.004699d5
mov ecx, dword [esp + 0x34]
cmp eax, ecx
je 0x43f8e5
test bl, bl
jne 0x43f8e9
cmp byte [esp + 0x13], bl
jne 0x43f8fe
lea edi, [esp + 0x94]
call fcn.00440ff0
test eax, eax
jne 0x43f84d
jmp 0x43f8f7
test bl, bl
je 0x43f8f7
mov eax, dword [esp + 0x68]
mov dword [esp + 0x20], eax
sub eax, ebp
mov dword [esp + 0x18], eax
cmp byte [esp + 0x13], 0
je 0x43f916
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x24]
mov eax, edx
mov ecx, edx
sub eax, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
jmp 0x43f926
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
cmp edi, dword [esp + 0x80]
mov edi, dword [esp + 0x18]
jle 0x43f941
mov dword [esp + 0x20], edi
sub edi, ebp
mov dword [esp + 0x18], edi
cmp ecx, dword [esp + 0x7c]
jle 0x43f955
mov ecx, edx
sub edx, ebx
mov eax, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
cmp edi, dword [esp + 0x78]
jge 0x43f970
mov edi, dword [esp + 0xa4]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edx
jmp 0x43f974
mov edx, dword [esp + 0x20]
cmp eax, dword [esp + 0x74]
jge 0x43f989
mov eax, dword [esp + 0x6c]
lea ecx, [eax + ebx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
push 0
sub edx, edi
push edx
sub ecx, eax
push ecx
mov ecx, dword [esi + 4]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop ebp
pop ebx
add esp, 0xa8
ret