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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x5246f0]
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 0x412378
cmp eax, 0x20e
ja 0x412378
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 0x4123cc
mov dword [esp + 0x64], edx
cmp eax, edx
jl 0x4123bf
cmp eax, dword [edi + 0x94]
jge 0x4123bf
mov ecx, dword [edi + 0x90]
mov ecx, dword [ecx + eax*4]
cmp ecx, edx
je 0x4123bf
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 0x4123fa
mov eax, dword [esp + 0x18]
xor edx, edx
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x94]
jl 0x412388
mov eax, dword [ebp + 8]
cmp eax, 0x100
ja 0x412842
je 0x412834
dec eax
cmp eax, 0xa2
ja case.0x4128c6.518
movzx eax, byte [eax + 0x412ab0]
jmp dword [eax*4 + 0x412a78]
mov eax, dword [esp + 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0045f522
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x50]
mov dword [esp + 0x50], edi
call fcn.00423270
mov dword [eax], esi
jmp case.0x4128c6.518
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
jne case.0x4128c6.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.0x4128c6.518
mov eax, dword [ebp + 0xc]
cmp eax, 1
je case.0x4128c6.518
cmp eax, edx
jne 0x4124d4
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push str.sys_max
mov ecx, edi
call eax
test eax, eax
je 0x4124fe
push str.false
jmp 0x4124f0
cmp eax, 2
jne 0x4124fe
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push str.sys_max
mov ecx, edi
call eax
test eax, eax
je 0x4124fe
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 0x41263a
test eax, 0x40000000
jne 0x41263a
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 ecx, edi
call fcn.00415370
jmp case.0x4128c6.518
mov esi, edi
call fcn.004142c0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0045f522
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.00413950
test eax, eax
je case.0x4128c6.518
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0045f522
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]
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.00413c80
jmp case.0x4128c6.518
test dword [edi + 0x18], 0x8000000
jne case.0x4128c6.518
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0045f522
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [esp + 0x50]
push ecx
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x54]
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
call fcn.00411d10
mov word [esp + 0x72], ax
lea edx, [esp + 0x64]
mov eax, edi
call fcn.004153f0
test eax, eax
je case.0x4128c6.518
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0045f522
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebx]
cmp edx, dword [edi + 0xa0]
jne case.0x4128c6.518
mov eax, dword [edi + 0x9c]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 0x9c]
push ebx
push edx
call eax
test eax, eax
je case.0x4128c6.518
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0045f522
mov esp, ebp
pop ebp
ret 0xc
mov dword [0x52a8c8], edx
call fcn.00422f60
jmp case.0x4128c6.518
cmp edi, dword [0x52a8c8]
je case.0x4128c6.518
mov dword [0x52a8c8], edi
call fcn.00422f60
jmp case.0x4128c6.518
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x58], edi
call fcn.00423870
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea esi, [esp + 0x58]
call fcn.00423440
mov esi, dword [esp + 0x10]
jmp case.0x4128c6.518
mov edx, dword [ebp + 0xc]
push edx
call fcn.00414170
jmp case.0x4128c6.518
cmp eax, 0x200
ja 0x4128af
je 0x41287e
sub eax, 0x101
je 0x412870
sub eax, 0x12
jne case.0x4128c6.518
mov edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
call fcn.004145b0
mov edi, dword [esp + 0x14]
jmp case.0x4128c6.518
mov eax, dword [ebp + 0xc]
push eax
call fcn.00414220
jmp case.0x4128c6.518
sub esp, 8
mov edx, ebx
shr edx, 0x10
mov eax, esp
lea esi, [esp + 0x58]
movsx ecx, bx
movsx edx, dx
cmp eax, esi
je 0x41289b
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
push eax
mov esi, edi
call fcn.00413ce0
mov esi, dword [esp + 0x10]
jmp case.0x4128c6.518
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x4128c6.518
movzx ecx, byte [eax + 0x412b78]
jmp dword [ecx*4 + 0x412b54]
mov eax, edi
call fcn.00413da0
jmp case.0x4128c6.518
mov eax, ebx
shr eax, 0x10
movsx ecx, ax
mov dword [esp + 0x54], ecx
mov ecx, dword [0x52a8bc]
movsx edx, bx
mov byte [edi + 0x87], 0
test ecx, ecx
je case.0x4128c6.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.0x4128c6.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.00413e10
jmp case.0x4128c6.518
sub esp, 8
movsx ecx, bx
shr ebx, 0x10
mov eax, esp
lea esi, [esp + 0x6c]
movsx edx, bx
cmp eax, esi
je 0x41298a
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ebx, edi
call fcn.00413e60
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x10]
jmp case.0x4128c6.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 0x4129c3
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
call fcn.00413f00
jmp case.0x4128c6.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 0x4129f2
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
push edi
call fcn.00413fa0
jmp case.0x4128c6.518
sub esp, 8
movsx ecx, bx
shr ebx, 0x10
mov eax, esp
lea esi, [esp + 0x6c]
movsx edx, bx
cmp eax, esi
je 0x412a15
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ebx, edi
call fcn.00414030
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x10]
jmp case.0x4128c6.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 0x412a4b
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
call fcn.004140d0
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.0045f522
mov esp, ebp
pop ebp
ret 0xc