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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x5176f0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x78]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
cmp eax, 0x200
jb 0x4282a4
cmp eax, 0x20e
ja 0x4282a4
mov eax, dword [edi + 0xa0]
lea edx, [esp + 0x1c]
push edx
push 0
push 0x407
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
xor esi, esi
cmp dword [edi + 0x94], eax
jle 0x4282ec
mov dword [esp + 0x38], eax
cmp esi, eax
jl 0x4282e3
cmp esi, dword [edi + 0x94]
jge 0x4282e3
mov ecx, dword [edi + 0x90]
mov ecx, dword [ecx + esi*4]
cmp ecx, eax
je 0x4282e3
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x20]
push eax
call edx
test al, al
jne 0x42831c
xor eax, eax
inc esi
cmp esi, dword [edi + 0x94]
jl 0x4282b0
mov ecx, dword [ebp + 8]
cmp ecx, 0x100
ja 0x428769
je 0x42875b
dec ecx
cmp ecx, 0xa2
ja case.0x4287e8.518
movzx ecx, byte [ecx + 0x4289ac]
jmp dword [ecx*4 + 0x428974]
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004ae123
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edi
call fcn.00439060
mov edx, dword [esp + 0x10]
mov dword [eax], edx
jmp case.0x4287e8.518
mov eax, dword [esp + 0x10]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
jne case.0x4287e8.518
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
mov eax, vtable.ui::Rect.0
xor esi, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call edx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x48]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
jmp case.0x4287e8.518
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
je case.0x4287e8.518
cmp ecx, eax
jne 0x4283fc
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push str.sys_max
mov ecx, edi
call eax
test eax, eax
je 0x428426
push str.false
jmp 0x428418
cmp ecx, 2
jne 0x428426
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push str.sys_max
mov ecx, edi
call eax
test eax, eax
je 0x428426
push str.true
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x44]
push str.maximized
call eax
mov ecx, dword [esp + 0x10]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp byte [edi + 0x85], 0
je 0x428566
test eax, 0x40000000
jne 0x428566
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
lea ecx, [esp + 0x38]
push ecx
push esi
call edi
lea edx, [esp + 0x40]
push edx
push esi
call edi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
neg eax
push eax
neg ecx
push ecx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov edi, dword [sym.imp.GDI32.dll_CreateRectRgn]
add eax, 0xfffffffe
push eax
mov eax, dword [esp + 0x3c]
push ecx
add edx, 2
push edx
push eax
call edi
mov edx, dword [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 1]
push ecx
add edx, 0xfffffffe
push edx
push eax
mov eax, dword [esp + 0x44]
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 + 0x44]
sub ecx, dword [esp + 0x3c]
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 + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [eax + 2]
push edx
mov edx, dword [esp + 0x3c]
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 + 0x44]
sub eax, dword [esp + 0x3c]
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 eax, edi
call fcn.0042b1c0
jmp case.0x4287e8.518
mov esi, edi
call fcn.0042a120
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004ae123
mov esp, ebp
pop ebp
ret 0xc
movsx edx, bx
mov eax, ebx
shr eax, 0x10
mov dword [esp + 0x38], edx
movsx ecx, ax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
sub esp, 8
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ecx
call fcn.00429850
test eax, eax
je case.0x4287e8.518
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004ae123
mov esp, ebp
pop ebp
ret 0xc
movsx eax, bx
mov ecx, ebx
shr ecx, 0x10
mov dword [esp + 0x38], eax
movsx edx, cx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
xor edi, edi
call fcn.00438bf0
mov edi, dword [esp + 0x14]
jmp case.0x4287e8.518
test dword [edi + 0x18], 0x8000000
jne case.0x4287e8.518
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004ae123
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
call fcn.00427c40
mov word [esp + 0x5a], ax
lea edx, [esp + 0x4c]
mov eax, edi
call fcn.0042b1f0
test eax, eax
je case.0x4287e8.518
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004ae123
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebx]
cmp edx, dword [edi + 0xa0]
jne case.0x4287e8.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.0x4287e8.518
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004ae123
mov esp, ebp
pop ebp
ret 0xc
mov dword [0x51c1fc], eax
call fcn.00438d00
jmp case.0x4287e8.518
cmp edi, dword [0x51c1fc]
je case.0x4287e8.518
mov dword [0x51c1fc], edi
call fcn.00438d00
jmp case.0x4287e8.518
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x40], edi
call fcn.00439750
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea esi, [esp + 0x40]
call fcn.00439320
jmp case.0x4287e8.518
mov edx, dword [ebp + 0xc]
push edx
call fcn.00429fd0
jmp case.0x4287e8.518
cmp ecx, 0x200
ja 0x4287cf
je 0x4287a2
mov eax, ecx
sub eax, 0x101
je 0x428794
sub eax, 0x12
jne case.0x4287e8.518
mov esi, dword [ebp + 0xc]
mov edx, edi
call fcn.0042a410
jmp case.0x4287e8.518
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042a080
jmp case.0x4287e8.518
sub esp, 8
mov edx, ebx
shr edx, 0x10
mov eax, esp
lea esi, [esp + 0x40]
movsx ecx, bx
movsx edx, dx
cmp eax, esi
je 0x4287bf
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
push eax
mov esi, edi
call fcn.00429b40
jmp case.0x4287e8.518
add ecx, 0xfffffdff
cmp ecx, 0xa2
ja case.0x4287e8.518
movzx ecx, byte [ecx + 0x428a74]
jmp dword [ecx*4 + 0x428a50]
mov eax, edi
call fcn.00429c00
jmp case.0x4287e8.518
mov ecx, ebx
shr ecx, 0x10
movsx esi, cx
mov ecx, dword [0x51c1f0]
movsx edx, bx
mov byte [edi + 0x87], 0
cmp ecx, eax
je case.0x4287e8.518
xor eax, eax
mov dword [esp + 0x50], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x50], 5
mov dword [esp + 0x58], esi
call edx
jmp case.0x4287e8.518
movsx eax, bx
mov ecx, ebx
shr ecx, 0x10
mov dword [esp + 0x38], eax
movsx edx, cx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
sub esp, 8
mov eax, esp
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [eax], edx
call fcn.00429c70
jmp case.0x4287e8.518
mov eax, ebx
shr eax, 0x10
sub esp, 8
movsx edx, ax
mov eax, esp
lea esi, [esp + 0x40]
movsx ecx, bx
cmp eax, esi
je 0x4288aa
mov dword [eax], ecx
mov dword [eax + 4], edx
push edi
call fcn.00429cc0
jmp case.0x4287e8.518
sub esp, 8
mov edx, ebx
shr edx, 0x10
mov eax, esp
lea esi, [esp + 0x40]
movsx ecx, bx
movsx edx, dx
cmp eax, esi
je 0x4288d2
mov dword [eax], ecx
mov dword [eax + 4], edx
call fcn.00429d60
jmp case.0x4287e8.518
mov eax, ebx
shr eax, 0x10
sub esp, 8
movsx edx, ax
mov eax, esp
lea esi, [esp + 0x40]
movsx ecx, bx
cmp eax, esi
je 0x4288f6
mov dword [eax], ecx
mov dword [eax + 4], edx
push edi
call fcn.00429e00
jmp case.0x4287e8.518
sub esp, 8
mov edx, ebx
shr edx, 0x10
mov eax, esp
lea esi, [esp + 0x40]
movsx ecx, bx
movsx edx, dx
cmp eax, esi
je 0x42891b
mov dword [eax], ecx
mov dword [eax + 4], edx
push edi
call fcn.00429e90
jmp case.0x4287e8.518
mov eax, ebx
shr eax, 0x10
sub esp, 8
movsx edx, ax
mov eax, esp
lea esi, [esp + 0x40]
movsx ecx, bx
cmp eax, esi
je 0x428940
mov dword [eax], ecx
mov dword [eax + 4], edx
call fcn.00429f30
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
push ebx
push ecx
mov ecx, dword [edi + 0x7c]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ae123
mov esp, ebp
pop ebp
ret 0xc