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

Disassembly:
sub esp, 0x98
mov ecx, dword [edi + 0x7e0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
push ebx
push ebp
push esi
call edx
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
xor eax, eax
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov eax, dword [edi + 4]
push 1
push eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
xor ebp, ebp
mov dword [esp + 0x74], 0x28
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x50], eax
sub eax, edx
mov dword [esp + 0x54], ecx
sub ecx, esi
mov ebx, eax
mov eax, dword [edi + 0x7e0]
mov dword [esp + 0x30], ecx
lea ecx, [eax + 0x64c]
mov dword [esp + 0x48], edx
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x4c], esi
xor esi, esi
call eax
test eax, eax
jle 0x4d99e5
jmp 0x4d9960
mov eax, dword [edi + 0x7e0]
mov edx, dword [eax + 0x64c]
lea ecx, [eax + 0x64c]
mov eax, dword [edx]
push esi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
push str.MenuElement
call eax
test eax, eax
je 0x4d99c9
mov ecx, dword [edi + 0x7e0]
mov edx, dword [ecx + 0x64c]
mov eax, dword [edx]
add ecx, 0x64c
push esi
call eax
mov ecx, dword [esp + 0x30]
mov edx, dword [eax]
mov edx, dword [edx + 0x134]
push ecx
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call edx
mov eax, dword [esp + 0x24]
add ebp, dword [esp + 0x28]
cmp dword [esp + 0x20], eax
jge 0x4d99c9
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x7e0]
lea ecx, [eax + 0x64c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
inc esi
call edx
cmp esi, eax
jl 0x4d9960
mov ecx, dword [edi + 0x7e0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov edx, dword [eax]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x94]
mov ecx, dword [edi + 0x7e0]
mov dword [esp + 0x14], eax
add eax, ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov edx, dword [eax]
push 2
lea ecx, [esp + 0x14]
push ecx
xor esi, esi
push esi
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx + 2]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x18], edx
xor bl, bl
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
call fcn.004dc360
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], eax
call fcn.004dbca0
test eax, eax
je 0x4d9b1e
push 0
push 0x61d498
push 0x61d40c
push 0
push eax
call fcn.0052870a
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4d9ae2
mov ecx, dword [esi + 4]
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x58]
cmp edx, dword [esp + 0x40]
mov eax, dword [esp + 0x5c]
mov ecx, dword [edi + 0x7e0]
mov edx, dword [ecx]
mov esi, dword [esi + 4]
setge bl
cmp eax, dword [esp + 0x44]
mov eax, dword [edx + 0x1c]
setge byte [esp + 0xf]
call eax
cmp esi, dword [eax]
je 0x4d9af1
cmp byte [esp + 0xf], 0
jne 0x4d9af8
test bl, bl
jne 0x4d9b0a
lea esi, [esp + 0x2c]
call fcn.004dbca0
test eax, eax
jne 0x4d9a7f
jmp 0x4d9b06
cmp byte [esp + 0xf], 0
je 0x4d9b06
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
sub eax, ebp
mov dword [esp + 0x14], eax
test bl, bl
je 0x4d9b1e
mov eax, dword [esp + 0x38]
mov ecx, eax
sub ecx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
jmp 0x4d9b26
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x54]
jle 0x4d9b3e
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
sub edx, ebp
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x50]
jle 0x4d9b56
mov dword [esp + 0x18], eax
sub eax, dword [esp + 0x20]
mov ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x4c]
jge 0x4d9b73
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
cmp ecx, dword [esp + 0x48]
jge 0x4d9b8b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
add eax, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 0x7e4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1b0]
lea eax, [esp + 0x90]
push eax
call edx
mov ecx, dword [edi + 0x7e4]
lea esi, [eax + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1b0]
push 0
lea edx, [esp + 0x4c]
push edx
call eax
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub ecx, eax
add ecx, dword [esp + 0x20]
add ecx, dword [esi]
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [edi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
pop esi
pop ebp
pop ebx
add esp, 0x98
ret