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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x46d674]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x78]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
cmp eax, 0x200
jb 0x412fc8
cmp eax, 0x20e
ja 0x412fc8
mov eax, dword [edi + 0xa0]
lea edx, [esp + 0x34]
push edx
push 0
push 0x407
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [edi + 0x94], edx
jle 0x41301c
mov dword [esp + 0x64], edx
cmp eax, edx
jl 0x41300f
cmp eax, dword [edi + 0x94]
jge 0x41300f
mov ecx, dword [edi + 0x90]
mov ecx, dword [ecx + eax*4]
cmp ecx, edx
je 0x41300f
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x38]
push eax
call edx
test al, al
jne 0x41304a
mov eax, dword [esp + 0x18]
xor edx, edx
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x94]
jl 0x412fd8
mov eax, dword [ebp + 8]
cmp eax, 0x100
ja 0x413486
je 0x413478
dec eax
cmp eax, 0xa2
ja case.0x41350a.518
movzx eax, byte [eax + 0x4136f4]
jmp dword [eax*4 + 0x4136bc]
mov eax, dword [esp + 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043e417
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x50]
mov dword [esp + 0x50], edi
call fcn.0041b2b0
mov dword [eax], esi
jmp case.0x41350a.518
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
jne case.0x41350a.518
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
xor eax, eax
mov ecx, vtable.ui::Rect.0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x64], ecx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x74]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
jmp case.0x41350a.518
mov eax, dword [ebp + 0xc]
cmp eax, 1
je case.0x41350a.518
cmp eax, edx
jne 0x413124
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push str.sys_max
mov ecx, edi
call eax
test eax, eax
je 0x41314e
push str.false
jmp 0x413140
cmp eax, 2
jne 0x41314e
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push str.sys_max
mov ecx, edi
call eax
test eax, eax
je 0x41314e
push str.true
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x44]
push str.maximized
call eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp byte [edi + 0x85], 0
je 0x41328a
test eax, 0x40000000
jne 0x41328a
lea ecx, [esp + 0x64]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x50]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 0x50]
push eax
push esi
call edi
lea ecx, [esp + 0x58]
push ecx
push esi
call edi
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edi, dword [sym.imp.GDI32.dll_CreateRectRgn]
add edx, 0xfffffffe
push edx
mov edx, dword [esp + 0x54]
push eax
add ecx, 2
push ecx
push edx
call edi
mov edx, dword [esp + 0x58]
mov esi, eax
mov eax, dword [esp + 0x54]
lea ecx, [eax + 1]
push ecx
add edx, 0xfffffffe
push edx
push eax
mov eax, dword [esp + 0x5c]
add eax, 2
push eax
call edi
push 2
mov edi, eax
push edi
push esi
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
dec ecx
push ecx
push 0
push edi
call dword [sym.imp.GDI32.dll_OffsetRgn]
push 2
push edi
push esi
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
lea edx, [eax + 2]
push edx
mov edx, dword [esp + 0x54]
dec ecx
push ecx
inc eax
push eax
inc edx
push edx
push edi
call dword [sym.imp.GDI32.dll_SetRectRgn]
push 2
push edi
push esi
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
sub eax, 3
push eax
push 0
push edi
call dword [sym.imp.GDI32.dll_OffsetRgn]
push 2
push edi
push esi
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
mov ecx, dword [esp + 0x10]
push 0
push esi
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push esi
call edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, edi
call fcn.004115e0
jmp case.0x41350a.518
mov esi, edi
call fcn.00414f80
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043e417
mov esp, ebp
pop ebp
ret 0xc
movsx edx, bx
mov eax, ebx
mov dword [esp + 0x50], edx
shr eax, 0x10
lea edx, [esp + 0x50]
movsx ecx, ax
push edx
push esi
mov dword [esp + 0x5c], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
sub esp, 8
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ecx
call fcn.00414670
test eax, eax
je case.0x41350a.518
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043e417
mov esp, ebp
pop ebp
ret 0xc
movsx eax, bx
mov ecx, ebx
mov dword [esp + 0x50], eax
shr ecx, 0x10
lea eax, [esp + 0x50]
movsx edx, cx
push eax
push esi
mov dword [esp + 0x5c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
xor edi, edi
call fcn.0041aec0
mov edi, dword [esp + 0x14]
jmp case.0x41350a.518
test dword [edi + 0x18], 0x8000000
jne case.0x41350a.518
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043e417
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea edx, [esp + 0x50]
push edx
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
call fcn.00412970
mov word [esp + 0x72], ax
lea edx, [esp + 0x64]
mov eax, edi
call fcn.00411610
test eax, eax
je case.0x41350a.518
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043e417
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx]
cmp eax, dword [edi + 0xa0]
jne case.0x41350a.518
mov edx, dword [edi + 0x9c]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 8]
lea ecx, [edi + 0x9c]
push ebx
push eax
call edx
test eax, eax
je case.0x41350a.518
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043e417
mov esp, ebp
pop ebp
ret 0xc
mov dword [0x4700cc], edx
call fcn.0041afa0
jmp case.0x41350a.518
cmp edi, dword [0x4700cc]
je case.0x41350a.518
mov dword [0x4700cc], edi
call fcn.0041afa0
jmp case.0x41350a.518
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x58], edi
call fcn.0041b7e0
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push edx
push eax
lea esi, [esp + 0x58]
call fcn.0041b410
mov esi, dword [esp + 0x10]
jmp case.0x41350a.518
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00414e30
jmp case.0x41350a.518
cmp eax, 0x200
ja 0x4134f3
je 0x4134c2
sub eax, 0x101
je 0x4134b4
sub eax, 0x12
jne case.0x41350a.518
mov edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
call fcn.00415270
mov edi, dword [esp + 0x14]
jmp case.0x41350a.518
mov edx, dword [ebp + 0xc]
push edx
call fcn.00414ee0
jmp case.0x41350a.518
mov eax, ebx
shr eax, 0x10
sub esp, 8
movsx edx, ax
mov eax, esp
lea esi, [esp + 0x58]
movsx ecx, bx
cmp eax, esi
je 0x4134df
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, edi
call fcn.004149a0
mov esi, dword [esp + 0x10]
jmp case.0x41350a.518
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x41350a.518
movzx edx, byte [eax + 0x4137bc]
jmp dword [edx*4 + 0x413798]
mov eax, edi
call fcn.00414a60
jmp case.0x41350a.518
mov eax, ebx
shr eax, 0x10
movsx ecx, ax
mov dword [esp + 0x54], ecx
mov ecx, dword [0x4700c0]
movsx edx, bx
mov byte [edi + 0x87], 0
test ecx, ecx
je case.0x41350a.518
xor eax, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 5
call eax
jmp case.0x41350a.518
movsx ecx, bx
mov edx, ebx
mov dword [esp + 0x50], ecx
shr edx, 0x10
lea ecx, [esp + 0x50]
movsx eax, dx
push ecx
push esi
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
sub esp, 8
mov eax, esp
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [eax], edx
call fcn.00414ad0
jmp case.0x41350a.518
sub esp, 8
movsx ecx, bx
shr ebx, 0x10
mov eax, esp
lea esi, [esp + 0x6c]
movsx edx, bx
cmp eax, esi
je 0x4135ce
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ebx, edi
call fcn.00414b20
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x10]
jmp case.0x41350a.518
mov eax, ebx
shr eax, 0x10
movsx edx, ax
sub esp, 8
mov dword [esp + 0x5c], edx
mov eax, esp
lea edx, [esp + 0x58]
movsx ecx, bx
cmp eax, edx
je 0x413607
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
call fcn.00414bc0
jmp case.0x41350a.518
mov edx, ebx
shr edx, 0x10
movsx eax, dx
sub esp, 8
mov dword [esp + 0x5c], eax
mov eax, esp
lea edx, [esp + 0x58]
movsx ecx, bx
cmp eax, edx
je 0x413636
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
push edi
call fcn.00414c60
jmp case.0x41350a.518
sub esp, 8
movsx ecx, bx
shr ebx, 0x10
mov eax, esp
lea esi, [esp + 0x6c]
movsx edx, bx
cmp eax, esi
je 0x413659
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ebx, edi
call fcn.00414cf0
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x10]
jmp case.0x41350a.518
mov edx, ebx
shr edx, 0x10
movsx eax, dx
sub esp, 8
mov dword [esp + 0x5c], eax
mov eax, esp
lea edx, [esp + 0x58]
movsx ecx, bx
cmp eax, edx
je 0x41368f
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
call fcn.00414d90
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x7c]
push ebx
push edx
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043e417
mov esp, ebp
pop ebp
ret 0xc