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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [0x49e014]
xor eax, esp
mov dword [esp + 0xe4], eax
cmp dword [0x4a0688], 0
mov eax, edx
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [0x4a05c4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
je case.0x459c1a.275
cmp eax, 0x111
ja 0x459c07
je case.0x459c1a.513
add eax, 0xffffffdf
cmp eax, 0x86
ja case.0x459c1a.275
movzx eax, byte [eax + 0x45b2f4]
jmp dword [eax*4 + 0x45b2e8]
mov eax, 4
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
add eax, 0xfffffeee
cmp eax, 0xf5
ja case.0x459c1a.275
movzx eax, byte [eax + 0x45b388]
jmp dword [eax*4 + 0x45b37c]
cmp esi, 0xf120
jne case.0x459c1a.513
push edx
push esi
push dword [esp + 0x18]
push ecx
jmp 0x45b2ca
mov eax, dword [0x4a05cc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x459d49
cmp dword [0x4a05d8], 0
je 0x459cea
push dword [0x4a05a4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x459ce2
test edi, edi
je 0x459c73
cmp dword [edi + 0x1a8], eax
jne 0x459ce2
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0x200]
cmp eax, 8
ja case.0x459c89.515
movzx eax, byte [eax + 0x45b488]
jmp dword [eax*4 + 0x45b480]
mov ecx, dword [esp + 0x20]
movsx eax, cx
mov dword [esp + 0x30], eax
mov eax, ecx
shr eax, 0x10
cwde
push 1
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
push dword [0x4a05a4]
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_MapWindowPoints]
movzx ecx, word [esp + 0x34]
movzx eax, word [esp + 0x30]
shl ecx, 0x10
or ecx, eax
push ecx
mov ecx, dword [0x4a05a4]
jmp 0x459ceb
push dword [esp + 0x20]
mov edx, ecx
mov ecx, dword [esp + 0x18]
jmp 0x459cef
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
push esi
call fcn.00455940
add esp, 8
test al, 4
jne case.0x459c1a.513
test al, 0x10
je 0x459d1c
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x459c1a.513
push dword [esp + 0x20]
push esi
push eax
jmp 0x45b2c6
test al, 0x40
mov eax, dword [0x4a05cc]
je 0x459d41
mov eax, dword [eax + 0x4b4]
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
cmp dword [0x4a0750], 0
mov ecx, dword [esp + 0x10]
je 0x459df2
cmp ecx, 2
jne 0x459d8b
test edi, edi
je 0x459d8b
cmp dword [edi + 0x1dc], 0
je 0x459d8b
push 0xb
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x1dc], 0
mov eax, dword [0x4a05cc]
test eax, eax
je 0x459dd3
mov edx, 0xfffffffe
mov word [eax + 0x30], dx
mov eax, dword [0x4a05cc]
mov dword [eax + 0x38], 1
mov eax, dword [0x4a05cc]
mov dword [eax + 4], 0
mov eax, dword [0x4a05cc]
mov dword [eax], 0
mov eax, dword [0x4a05cc]
mov dword [eax + 0x10], 0
mov eax, dword [0x4a05cc]
mov dword [eax + 0xc], 0
push dword [esp + 0x20]
mov dword [0x4a05a0], 0
push esi
mov dword [0x4a0598], 0
push ecx
jmp 0x45b2c6
cmp ecx, 0x100
ja 0x45a622
je 0x45a60d
lea eax, [ecx - 1]
cmp eax, 0x7d
ja case.default.0x45afa5
movzx eax, byte [eax + 0x45b4c4]
jmp dword [eax*4 + 0x45b494]
mov ecx, dword [esp + 0x14]
call fcn.00455b50
jmp case.default.0x45afa5
test edi, edi
je case.default.0x45afa5
test esi, esi
je case.default.0x45afa5
cmp dword [0x4a05d8], 0
je case.default.0x45afa5
mov eax, dword [0x4a059c]
test eax, eax
je case.default.0x45afa5
push 0
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_50]
push 0
push 0
push 0x30f
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x4a05cc]
test eax, eax
je 0x459e84
or byte [eax + 0x1a7], 4
push 0x405
push 0
push 0
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp case.default.0x45afa5
call fcn.00454ba0
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x459e84
lea eax, [esp + 0x30]
push eax
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x38]
mov eax, ecx
mov esi, dword [esp + 0x30]
sub eax, esi
mov edx, dword [0x4a0728]
cmp eax, edx
jle 0x459ee1
lea ecx, [esi + edx]
mov dword [esp + 0x38], ecx
cmp ecx, edx
jle 0x459eed
sub edx, ecx
add esi, edx
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x3c]
mov eax, edx
sub eax, dword [esp + 0x34]
cmp eax, dword [0x4a058c]
mov edi, dword [esp + 0x34]
mov eax, dword [0x4a058c]
jle 0x459f0f
lea edx, [edi + eax]
mov dword [esp + 0x3c], edx
cmp edx, eax
jle 0x459f1b
sub eax, edx
add edi, eax
mov dword [esp + 0x34], edi
push 4
sub edx, edi
sub ecx, esi
push edx
push ecx
push edi
push esi
push 0
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x459e84
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xa8]
push eax
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
lea eax, [esp + 0xa8]
push eax
push esi
call dword [sym.imp.USER32.dll_EndPaint]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x45a21d
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
jne 0x459fab
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ax, word [0x4a05ae]
cmp ax, 3
jne 0x459fdc
mov ecx, dword [0x4a05a8]
test ecx, ecx
je 0x459fdc
push 1
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ax, word [0x4a05ae]
mov ecx, dword [0x4a05c8]
test ecx, ecx
je 0x45a0de
test byte [ecx + 0xc], 2
jne 0x45a0de
mov ecx, dword [edi + 0x70]
cmp ax, 3
jne 0x45a003
or ecx, 0x2000000
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x2b], al
cmp dword [0x4a05a4], eax
je 0x45a0a6
cmp dword [edi + 0x1a8], eax
jne 0x45a0a6
push eax
push eax
push eax
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edi, eax
push edi
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.GDI32.dll_GetClipRgn]
test eax, eax
jg 0x45a055
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push eax
push dword [0x4a05a4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x30]
push eax
push dword [0x4a05a0]
call esi
lea eax, [esp + 0x38]
push eax
push dword [0x4a05a0]
call esi
push dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push esi
call dword [sym.imp.GDI32.dll_ExcludeClipRect]
mov byte [esp + 0x2b], 1
push dword [esp + 0x1c]
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
cmp byte [esp + 0x2b], 0
je 0x45a0d4
mov edi, dword [esp + 0x24]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
test edi, edi
je 0x45a0d4
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45a21d
push 1
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
cmp dword [edx], 1
jne case.0x459c1a.513
test edi, edi
je 0x45a21d
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x30], eax
cmp dword [esi + 0x14], 0
mov dword [esi + 0xc], 0x40
mov dword [esi + 0x10], 6
je 0x45a21d
mov ecx, dword [0x4a05c4]
cmp dword [ecx + 0xb8], 0
je 0x45a21d
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov edx, eax
mov dword [esp + 0x24], edx
test edx, edx
je 0x45a21d
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x45a194
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x2c], eax
add eax, 2
mov ecx, eax
mov dword [esp + 0x18], eax
lea eax, [ecx + 2]
mov dword [esp + 0x30], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a1b0
sub ecx, dword [esp + 0x30]
push 0
push 0
sar ecx, 1
push ecx
push dword [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_GetTabbedTextExtentW]
movzx ecx, ax
mov edx, 0x10
shr eax, 0x10
cwde
add eax, 8
mov dword [esi + 0xc], ecx
cmp eax, edx
cmovl eax, edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
xor eax, eax
cmp word [edx], ax
mov edx, 0x27
cmove eax, edx
add eax, ecx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
test eax, eax
je 0x45a215
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
cmp dword [edx], 1
jne case.0x459c1a.513
test edi, edi
je case.0x459c1a.513
push edx
call fcn.004593d0
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
cmp dx, 1
jne case.default.0x45afa5
call fcn.00458650
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a0728]
mov ecx, dword [0x4a058c]
mov dword [edx + 8], eax
mov dword [edx + 0x20], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0xc], ecx
mov dword [edx + 0x24], ecx
mov dword [edx + 0x14], 0
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
test byte [edi + 0x14], 3
jne 0x45a3fc
cmp byte [0x4a07b9], 0
jne 0x45a3fc
cmp esi, 2
jne 0x45a3a3
push 0xfffffffffffffff0
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0xc40000
je 0x45a3fc
push 0xfffffffffffffff0
push dword [0x4a05a0]
mov byte [0x4a07b9], 1
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3bffff
push eax
push 0xfffffffffffffff0
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_SetWindowLongW]
xorps xmm0, xmm0
mov dword [esp + 0x50], 0x2c
lea eax, [esp + 0x50]
movlpd qword [esp + 0x54], xmm0
push eax
push dword [0x4a05a0]
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov esi, dword [sym.imp.USER32.dll_SetWindowPlacement]
lea eax, [esp + 0x50]
push eax
push dword [0x4a05a0]
mov dword [esp + 0x60], 9
call esi
lea eax, [esp + 0x50]
mov dword [esp + 0x58], 3
push eax
push dword [0x4a05a0]
call esi
mov esi, dword [esp + 0x2c]
jmp 0x45a3f5
test esi, esi
jne 0x45a3fc
push 0xfffffffffffffff0
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0xc40000
jne 0x45a3fc
test byte [edi + 0x16], 0x40
mov eax, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [0x4a05a0]
mov byte [0x4a07b9], 1
jne 0x45a3df
call eax
or eax, 0xc40000
jmp 0x45a3e6
call eax
or eax, 0xc00000
push eax
push 0xfffffffffffffff0
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov byte [0x4a07b9], 0
mov al, byte [edi + 0x14]
and al, 0x14
cmp al, 0x14
jne 0x45a537
cmp byte [0x4a07b8], 0
jne 0x45a537
cmp esi, 2
jne 0x45a444
cmp dword [0x49f2a4], 0xffffffff
jne 0x45a537
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_GetMenu]
neg eax
sbb eax, eax
neg eax
mov dword [0x49f2a4], eax
jmp 0x45a537
test esi, esi
jne 0x45a537
mov eax, dword [0x49f2a4]
cmp eax, 0xffffffff
je 0x45a537
mov esi, dword [sym.imp.USER32.dll_GetMenu]
mov byte [0x4a07b8], 1
test eax, eax
je 0x45a4cc
push dword [0x4a05a0]
call esi
test eax, eax
jne 0x45a4c3
lea eax, [esp + 0x30]
push eax
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0xf
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
sub ecx, eax
push 4
push ecx
mov ecx, dword [esp + 0x40]
cdq
sub ecx, esi
sub eax, edx
push ecx
sar eax, 1
add eax, dword [esp + 0x40]
push eax
push esi
push 0
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x45a526
cmp dword [0x49f2a4], 0
jne 0x45a526
push dword [0x4a05a0]
call esi
test eax, eax
je 0x45a526
lea eax, [esp + 0x30]
push eax
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0xf
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [esp + 0x34]
mov ecx, eax
mov esi, dword [esp + 0x30]
sub ecx, edi
add ecx, dword [esp + 0x3c]
push 4
push ecx
mov ecx, dword [esp + 0x40]
cdq
sub ecx, esi
sub eax, edx
push ecx
sar eax, 1
sub edi, eax
push edi
push esi
push 0
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [esp + 0x24]
mov dword [0x49f2a4], 0xffffffff
mov byte [0x4a07b8], 0
mov esi, dword [edi + 0x1fc]
mov eax, 0x4000
mov dword [esp + 0x1c], esi
mov dword [edi + 0x1fc], 1
test word [edi + 0x16], ax
je 0x45a55d
call fcn.004561f0
jmp 0x45a57f
cmp dword [0x4a05a4], 0
je 0x45a57f
mov eax, dword [0x4a05a0]
test eax, eax
je 0x45a57a
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x45a57f
call fcn.004552d0
test esi, esi
jne 0x45a5cb
cmp dword [edi + 0x1dc], esi
je 0x45a5cb
cmp dword [edi + 0x1e4], 3
jne 0x45a5cb
cmp word [edi + 0x16], si
jge 0x45a5cb
mov eax, dword [0x4a05cc]
test eax, eax
je 0x45a5b5
cmp dword [eax + 0x178], esi
je 0x45a5b5
call fcn.00424400
mov esi, 1
xor edx, edx
mov ecx, edi
call fcn.00404ca0
test esi, esi
je 0x45a5c7
call fcn.00424300
mov esi, dword [esp + 0x1c]
xor eax, eax
test esi, esi
setne al
mov dword [edi + 0x1fc], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
test edi, edi
je 0x45a604
cmp dword [edi + 0x1dc], 0
jne 0x459d6c
mov eax, dword [esp + 0x18]
jmp 0x459d8b
test eax, eax
je 0x45a63c
push ecx
mov edx, esi
call fcn.00432af0
mov ecx, dword [esp + 0x14]
add esp, 4
jmp 0x45a63c
cmp ecx, 0x111
ja 0x45aded
je 0x45a6a1
cmp ecx, 0x104
jne case.default.0x45afa5
test edi, edi
je case.default.0x45afa5
mov edi, dword [edi + 0xb4]
test edi, edi
je case.default.0x45afa5
cmp ecx, 0x104
je 0x45a66c
mov eax, dword [esp + 0x20]
shr eax, 0x10
test eax, 0x2000
jne 0x45a66c
xor edx, edx
jmp 0x45a671
mov edx, 1
mov ecx, dword [0x4a05a0]
push edi
push esi
call fcn.00457780
add esp, 8
test eax, eax
je case.default.0x45afa5
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
test eax, eax
je case.default.0x45afa5
test edx, edx
jne case.default.0x45afa5
mov eax, dword [edi + 0x1e4]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp eax, 2
je 0x45a6c7
cmp eax, 4
jne 0x45a6db
mov eax, dword [0x4a05c8]
mov edx, 1
cmp dword [eax + 0x70], ecx
cmovne ecx, edx
mov dword [esp + 0x1c], ecx
push dword [0x4a0598]
call dword [sym.imp.MMFS2.dll_Ordinal_19]
mov ecx, eax
xor eax, eax
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x45a70a
lea eax, [esp + 0x30]
push eax
push 0
push 0x229
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x30], eax
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp dword [0x4a05e0], ecx
jle 0x45a796
mov edi, dword [esp + 0x30]
mov eax, dword [0x4a05e8]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x30], eax
cmp dword [eax + 0x1a8], 0
je 0x45a785
mov edx, dword [eax + 0x1d0]
test edx, edx
je 0x45a785
test edi, edi
je 0x45a76d
cmp edi, edx
je 0x45a76d
test dword [eax + 0x1b0], 0x2000000
jne 0x45a76d
push dword [eax + 0x1d4]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
mov ecx, 0x800
test cx, ax
jne 0x45a781
mov eax, dword [esp + 0x30]
push 0
push esi
push 0x111
push dword [eax + 0x1d0]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [0x4a05e0]
jl 0x45a720
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x45a7b5
push ecx
mov edx, esi
call fcn.004329a0
add esp, 4
test eax, eax
jne case.0x459c1a.513
mov ecx, dword [esp + 0x1c]
movzx esi, si
lea eax, [esi - 0x3f0]
cmp eax, 0x19
ja case.default.0x45afa5
jmp dword [eax*4 + 0x45b544]
test ecx, ecx
jne case.default.0x45afa5
push ecx
call fcn.00432a30
add esp, 4
test eax, eax
jne case.0x459c1a.513
mov ecx, 0xfffffffe
mov eax, dword [0x4a05cc]
mov word [eax + 0x30], cx
mov eax, dword [0x4a05cc]
mov dword [eax + 0x38], 1
jmp case.default.0x45afa5
test ecx, ecx
jne case.default.0x45afa5
mov ecx, 4
jmp 0x45a7ec
test ecx, ecx
jne case.0x459c1a.513
cmp dword [0x4a05d8], ecx
je 0x45a832
test byte [0x4a05ac], 0x10
jne case.default.0x45afa5
mov eax, dword [edi + 0x1e4]
cmp eax, 2
je case.default.0x45afa5
cmp eax, 4
je case.default.0x45afa5
cmp dword [edi + 0xd4], 0
je case.0x459c1a.513
call fcn.00424300
mov esi, dword [0x4a05a0]
or eax, 0xffffffff
push 2
push 0xb
mov dword [esp + 0x38], eax
call fcn.004643e4
mov edi, eax
mov edx, esi
push edi
push 0x457c00
mov ecx, 0x72
mov dword [esp + 0x20], edi
call fcn.00457980
add esp, 0x10
cmp eax, 1
jne 0x45a8e9
mov ecx, dword [esp + 0x10]
mov edi, dword [0x4a05c4]
cmp word [ecx], 0
je 0x45a8e5
cmp dword [edi + 0xd4], 0
je 0x45a8e5
xor esi, esi
cmp dword [edi + 0x74], esi
jle 0x45a8e5
cmp esi, dword [edi + 0x1f0]
je 0x45a8d9
mov eax, dword [edi + 0xd4]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x45a8d9
push ecx
push eax
call fcn.00465538
add esp, 8
test eax, eax
je 0x45a8e1
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, dword [edi + 0x74]
jl 0x45a8b2
jmp 0x45a8e5
mov dword [esp + 0x30], esi
mov edi, dword [esp + 0x10]
push edi
call fcn.004643fa
mov ecx, dword [esp + 0x34]
add esp, 4
cmp ecx, 0xffffffff
je 0x45a917
mov eax, dword [0x4a05cc]
mov edx, 3
or ecx, 0x8000
mov word [eax + 0x30], dx
mov eax, dword [0x4a05cc]
mov dword [eax + 0x38], ecx
call fcn.00424400
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4a05d8], 0
je 0x45a94a
test byte [0x4a05ac], 0x10
jne case.default.0x45afa5
mov eax, dword [edi + 0x1e4]
cmp eax, 2
je case.default.0x45afa5
cmp eax, 4
je case.default.0x45afa5
call fcn.00424300
mov edx, dword [0x4a05a0]
mov ecx, 0x6f
push 0
push 0x457bc0
call fcn.00457980
add esp, 8
call fcn.00424400
mov ecx, dword [0x4a05cc]
test ecx, ecx
je case.0x459c1a.513
mov eax, dword [ecx + 0xd0]
mov dword [ecx + 0x410], eax
mov ecx, 0xfff8fffd
call fcn.00433dd0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4a05d8], 0
je 0x45a9d8
test byte [0x4a05ac], 0x10
jne case.default.0x45afa5
mov eax, dword [edi + 0x1e4]
cmp eax, 2
je case.default.0x45afa5
cmp eax, 4
je case.default.0x45afa5
call fcn.00424300
mov esi, dword [edi + 0x254]
lea eax, [esp + 0x50]
mov edx, dword [0x4a05a0]
mov ecx, 0x70
push eax
push 0x458190
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [esp + 0x68], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [esp + 0x78], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [esp + 0x88], xmm0
movq xmm0, qword [esi + 0x40]
movq qword [esp + 0x98], xmm0
call fcn.00457980
add esp, 8
cmp eax, 1
jne 0x45ab2f
movups xmm0, xmmword [esp + 0x50]
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x60]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x70]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [esp + 0x80]
movups xmmword [esi + 0x30], xmm0
movq xmm0, qword [esp + 0x90]
movq qword [esi + 0x40], xmm0
call fcn.00424400
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
call fcn.00424300
mov eax, 0x3fd
cmp si, ax
mov eax, dword [0x4a05d0]
jne 0x45aad1
xor eax, 0x4000
mov dword [0x4a05d0], eax
test eax, 0x4000
jne 0x45aaf7
push 0
push 2
jmp 0x45aae6
xor eax, 0x8000
mov dword [0x4a05d0], eax
test eax, 0x8000
jne 0x45aaf7
push 0
push 1
push dword [0x4a0594]
call dword [sym.imp.MMFS2.dll_Ordinal_191]
mov eax, dword [0x4a05d0]
mov ecx, dword [edi + 0xb0]
test ecx, ecx
je 0x45ab2f
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
shr eax, 0xc
and eax, 8
push eax
push 0x3fc
push ecx
call esi
mov eax, dword [0x4a05d0]
shr eax, 0xb
and eax, 8
push eax
push 0x3fd
push dword [edi + 0xb0]
call esi
call fcn.00424400
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
mov eax, 0x1000
test word [edi + 0x14], ax
je case.default.0x45afa5
cmp dword [0x4a05d8], 0
jne 0x45ab70
xor ecx, ecx
call fcn.00456930
jmp case.default.0x45afa5
call fcn.00457050
jmp case.default.0x45afa5
mov eax, pe_nt_image_headers32
test word [edi + 0x14], ax
je case.0x459c1a.513
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
jne 0x45abbb
call fcn.004574f0
call fcn.004552d0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
call fcn.004576c0
call fcn.004552d0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 0xa4], 0
je case.0x459c1a.513
call fcn.00424300
mov edx, dword [0x4a05a0]
mov ecx, 0x6f
push 0
push 0x4584c0
call fcn.00457980
add esp, 8
call fcn.00424400
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
push dword [0x4a0598]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_19]
call eax
test eax, eax
je case.default.0x45afa5
push 0
push 0
push 0x227
push eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
jmp case.default.0x45afa5
push dword [0x4a0598]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_19]
call eax
test eax, eax
je case.default.0x45afa5
push 0
push 1
push 0x226
push eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
jmp case.default.0x45afa5
push dword [0x4a0598]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_19]
call eax
test eax, eax
je case.default.0x45afa5
push 0
push 0
push 0x226
push eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
jmp case.default.0x45afa5
push dword [0x4a0598]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_19]
call eax
test eax, eax
je case.default.0x45afa5
push 0
push 0
push 0x228
push eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
jmp case.default.0x45afa5
push dword [0x4a0598]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_19]
call eax
test eax, eax
je case.default.0x45afa5
push 0
push 0
push 0x224
push eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
jmp case.default.0x45afa5
push dword [0x4a0598]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_19]
call eax
test eax, eax
je case.default.0x45afa5
push 1
push 0
push 0x224
push eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
jmp case.default.0x45afa5
push dword [0x4a0598]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_19]
call eax
test eax, eax
je case.default.0x45afa5
lea ecx, [esp + 0x30]
push ecx
push 0
push 0x229
push eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
test eax, eax
je case.default.0x45afa5
push 0
push 0xf060
push 0x112
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.default.0x45afa5
push dword [0x4a0598]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_19]
call eax
jmp case.default.0x45afa5
cmp dword [0x4a05d8], 0
je 0x45ad99
test byte [0x4a05ac], 0x10
jne case.default.0x45afa5
mov eax, dword [edi + 0x1e4]
cmp eax, 2
je case.default.0x45afa5
cmp eax, 4
je case.default.0x45afa5
call fcn.00424300
mov edx, dword [0x4a05a0]
mov ecx, 0x6e
push 0
push 0x457a40
call fcn.00457980
add esp, 8
call fcn.00424400
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
cmp ecx, 0x231
ja 0x45b1df
je 0x45b1c8
add ecx, 0xfffffeee
cmp ecx, 0xf8
ja case.default.0x45afa5
movzx eax, byte [ecx + 0x45b5d4]
jmp dword [eax*4 + 0x45b5ac]
cmp dword [0x4a05d8], 0
je case.default.0x45afa5
push dword [0x4a05a4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne case.default.0x45afa5
cmp dword [0x4a05cc], eax
je case.default.0x45afa5
mov ecx, dword [esp + 0x20]
movsx eax, cx
mov dword [esp + 0x30], eax
shr ecx, 0x10
movsx eax, cx
push 1
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
push dword [0x4a05a4]
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_MapWindowPoints]
movzx ecx, word [esp + 0x34]
movzx eax, word [esp + 0x30]
mov esi, dword [esp + 0x10]
shl ecx, 0x10
or ecx, eax
mov dword [esp + 0x20], ecx
push ecx
mov ecx, esi
call fcn.00408c20
add esp, 4
test eax, eax
jne case.default.0x45afa5
sub esp, 8
mov edx, esi
call fcn.00432d10
jmp 0x45b2b7
cmp dword [esp + 0x18], 0
je 0x45aec3
push ecx
call fcn.00432cf0
add esp, 4
call fcn.00458650
test eax, eax
je case.default.0x45afa5
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
cmp dword [esp + 0x18], 0
je case.default.0x45afa5
push ecx
mov edx, esi
call fcn.00432aa0
add esp, 4
jmp case.default.0x45afa5
cmp esi, 0xb
jne case.default.0x45afa5
test edi, edi
je case.default.0x45afa5
mov eax, dword [edi + 0x1fc]
mov dword [esp + 0x30], eax
mov dword [edi + 0x1fc], 1
test eax, eax
jne 0x45af7e
cmp dword [edi + 0x1e4], 3
jne 0x45af7e
cmp word [edi + 0x16], ax
jge 0x45af7e
mov eax, dword [0x4a05cc]
xor esi, esi
test eax, eax
je 0x45af58
cmp dword [eax + 0x178], esi
je 0x45af58
call fcn.00424400
mov esi, 1
xor edx, edx
mov dword [edi + 0x1fc], 1
mov ecx, edi
call fcn.00404ca0
mov dword [edi + 0x1fc], 0
test esi, esi
je 0x45af7e
call fcn.00424300
xor eax, eax
cmp dword [esp + 0x30], eax
setne al
mov dword [edi + 0x1fc], eax
jmp case.default.0x45afa5
movzx eax, si
cmp eax, 8
ja case.default.0x45afa5
movzx eax, byte [eax + 0x45b6d8]
jmp dword [eax*4 + 0x45b6d0]
test edi, edi
je case.0x45ae18.279
mov eax, dword [0x4a05d0]
shr eax, 0xc
and eax, 8
push eax
push 0x3fc
push esi
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
call esi
mov eax, dword [0x4a05d0]
shr eax, 0xb
and eax, 8
push eax
push 0x3fd
push dword [esp + 0x34]
call esi
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
xor eax, eax
cmp dword [edi + 0xd4], eax
sete al
push eax
push 0x3f3
push dword [esp + 0x34]
call esi
xor eax, eax
cmp dword [edi + 0xa4], eax
sete al
push eax
push 0x3ff
push dword [esp + 0x34]
call esi
call fcn.0044a300
jmp case.default.0x45afa5
test edx, edx
jne case.default.0x45afa5
mov eax, esi
shr eax, 0x10
cmp eax, 0xffff
jne case.default.0x45afa5
call fcn.0044a400
jmp case.default.0x45afa5
test edi, edi
je case.default.0x45afa5
mov eax, dword [0x4a05a4]
test eax, eax
mov ecx, dword [0x4a05a0]
cmove eax, ecx
and esi, 0xfff0
mov dword [esp + 0x30], eax
cmp esi, 0xf060
ja 0x45b191
je 0x45b159
sub esi, 0xf020
je 0x45b140
sub esi, 0x10
jne case.default.0x45afa5
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x45b0a8
mov eax, 0x2000
test word [edi + 0x16], ax
jne 0x45b0a8
call fcn.00424400
test byte [edi + 0x16], 0x80
jne case.default.0x45afa5
test byte [edi + 0x14], 0x10
jne case.default.0x45afa5
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne case.default.0x45afa5
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x4a0728]
sub eax, dword [esp + 0x48]
mov edi, dword [0x4a058c]
sub edi, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
push 4
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, edi
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x24]
push 4
push dword [esp + 0x50]
sar esi, 1
mov cl, byte [eax + 0x14]
mov eax, edi
push dword [esp + 0x50]
cdq
sub eax, edx
sar eax, 1
and cl, 1
cmovne eax, esi
push eax
push dword [esp + 0x2c]
push 0
push dword [esp + 0x48]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp case.default.0x45afa5
mov eax, 0x2000
test word [edi + 0x16], ax
jne case.default.0x45afa5
call fcn.00424300
jmp case.default.0x45afa5
cmp byte [0x4a0589], 0
jne case.0x459c1a.513
push 0
push 0x3f0
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
cmp esi, 0xf120
jne case.default.0x45afa5
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je case.default.0x45afa5
mov eax, 0x2000
test word [edi + 0x16], ax
jne case.default.0x45afa5
call fcn.00424400
jmp case.default.0x45afa5
cmp dword [0x4a054c], 0
jne case.default.0x45afa5
call fcn.0044a300
jmp case.default.0x45afa5
cmp ecx, 0x30f
ja 0x45b266
je 0x45b229
sub ecx, 0x232
je 0x45b212
sub ecx, 1
jne case.default.0x45afa5
test eax, eax
je case.default.0x45afa5
push ecx
mov edx, esi
call fcn.00432ba0
add esp, 4
jmp case.default.0x45afa5
cmp dword [0x4a054c], 0
jne case.default.0x45afa5
call fcn.0044a400
jmp case.default.0x45afa5
mov esi, dword [esp + 0x14]
mov edx, 0x30f
push 0
push 0
mov ecx, esi
call fcn.004558e0
add esp, 8
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
cmp ecx, 0x311
je 0x45b2a7
cmp ecx, 0x3b9
jne case.default.0x45afa5
test eax, eax
je case.0x459c1a.513
cmp esi, 4
je case.0x459c1a.513
push 0xffffffffffffffff
push 2
push dword [0x4a0594]
call dword [sym.imp.MMFS2.dll_Ordinal_191]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x14]
push edx
push esi
mov edx, 0x311
call fcn.004558e0
add esp, 8
push dword [esp + 0x20]
push dword [esp + 0x30]
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
mov ecx, dword [esp + 0xec]
pop edi
pop esi
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret 8