Function at 0x415ee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52828e
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [esi + 0x35c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
xor eax, eax
lea ecx, [ebp - 0x68]
push ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 4]
push 1
push eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x68], 0x28
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov edi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xa0], ecx
sub ecx, edi
mov dword [ebp - 0xb0], ecx
mov ecx, dword [esi + 0x35c]
mov dword [ebp - 0xa4], eax
sub eax, edx
add ecx, 0x4a0
mov dword [ebp - 0xac], edx
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xa8], edi
xor edi, edi
call eax
test eax, eax
jle 0x41606b
mov edi, edi
mov ecx, dword [esi + 0x35c]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx]
add ecx, 0x4a0
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 0x41604b
mov ecx, dword [esi + 0x35c]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx]
add ecx, 0x4a0
push edi
call eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [eax]
mov edx, dword [edx + 0x114]
push ecx
push ebx
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, eax
call edx
mov eax, dword [ebp - 0x98]
add dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x9c]
cmp dword [ebp - 0x90], eax
jge 0x41604b
mov dword [ebp - 0x90], eax
mov ecx, dword [esi + 0x35c]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx + 0xc]
add ecx, 0x4a0
inc edi
call eax
cmp edi, eax
jl 0x415fd0
mov ecx, dword [esi + 0x35c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc0]
mov ecx, dword [esi + 0x35c]
mov dword [ebp - 0x1c], eax
add eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [eax]
push 2
lea ecx, [ebp - 0x20]
push ecx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x90]
lea eax, [ecx + edx + 2]
mov dword [ebp - 0x18], eax
xor eax, eax
test byte [0x587680], 1
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x89], bl
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
jne 0x416142
or dword [0x587680], 1
mov dword [ebp - 4], ebx
push 0x10
mov dword [0x587670], 0x566290
mov dword [0x587678], ebx
mov dword [0x58767c], ebx
call fcn.004f294c
add esp, 4
cmp eax, ebx
je 0x416124
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x416126
xor eax, eax
push 0x52ad60
mov dword [0x587674], eax
call fcn.004f3a4c
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
add esp, 4
mov eax, dword [0x587674]
mov edx, dword [eax + 4]
sub edx, dword [eax]
xor edi, edi
sar edx, 2
cmp edx, ebx
jbe 0x41623d
mov ebx, dword [eax]
mov eax, dword [ebx + edi*4]
inc edi
test eax, eax
jne 0x416170
cmp edi, edx
jb 0x41615b
jmp 0x41623b
push 0
push 0x58340c
push 0x583228
push 0
push eax
call fcn.0050fdc2
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4161db
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x40]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
mov ebx, dword [ebx + 4]
setge byte [ebp - 0x89]
cmp ecx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x35c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
setge byte [ebp - 0x8a]
call eax
cmp ebx, dword [eax]
je 0x416202
cmp byte [ebp - 0x8a], 0
jne 0x41620b
cmp byte [ebp - 0x89], 0
jne 0x416223
mov eax, dword [0x587674]
mov edx, dword [eax + 4]
sub edx, dword [eax]
sar edx, 2
cmp edi, edx
jae 0x41621a
mov ecx, dword [eax]
mov edi, edi
mov eax, dword [ecx + edi*4]
inc edi
test eax, eax
jne 0x416170
cmp edi, edx
jb 0x4161f0
jmp 0x41621a
cmp byte [ebp - 0x8a], 0
je 0x41621a
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
sub eax, dword [ebp - 0x94]
mov dword [ebp - 0x1c], eax
cmp byte [ebp - 0x89], 0
je 0x416238
mov eax, dword [ebp - 0x30]
mov ecx, eax
sub ecx, dword [ebp - 0x90]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ecx
xor ebx, ebx
jmp 0x416240
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x1c]
jle 0x41625a
mov dword [ebp - 0x14], edx
sub edx, dword [ebp - 0x94]
mov dword [ebp - 0x1c], edx
mov edi, dword [ebp - 0x18]
cmp edi, dword [ebp - 0xa4]
jle 0x416273
mov dword [ebp - 0x18], eax
sub eax, dword [ebp - 0x90]
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp edx, dword [ebp - 0xa8]
jge 0x41628d
mov eax, dword [ebp - 0xc0]
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
cmp ecx, dword [ebp - 0xac]
jge 0x4162a4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
add eax, dword [ebp - 0x90]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x360]
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
lea eax, [ebp - 0x78]
push eax
call edx
mov ecx, dword [esi + 0x360]
lea edi, [eax + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x134]
push ebx
lea edx, [ebp - 0x88]
push edx
call eax
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
sub ecx, eax
add ecx, dword [ebp - 0x14]
add ecx, dword [edi]
push ecx
mov ecx, dword [ebp - 0x20]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2889
mov esp, ebp
pop ebp
ret