Function at 0x459d90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4b2ca0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, edx
mov eax, ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
push edi
mov edi, dword [ebp + 8]
cmp esi, 0x807b
je 0x45a82b
mov ecx, dword [0x4b60ec]
test ecx, ecx
je 0x459e44
push edx
push edi
mov edx, esi
mov ecx, eax
call fcn.004479a0
add esp, 8
test al, 4
jne 0x45a82b
test al, 0x10
je 0x459e14
cmp esi, 1
je 0x45a82b
push dword [esp + 8]
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
test al, 0x40
je 0x459e36
mov eax, dword [0x4b60ec]
mov eax, dword [eax + 0x4b4]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4b60ec]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
cmp esi, 0x200
ja 0x45a598
je 0x45a4f2
cmp esi, 0x47
ja 0x45a319
je 0x45a241
lea eax, [esi - 2]
cmp eax, 0x22
ja case.0x45a5c0.514
movzx eax, byte [eax + 0x45a858]
jmp dword [eax*4 + 0x45a840]
mov eax, dword [esp + 8]
push eax
push edi
push esi
push dword [esp + 0x1c]
mov dword [0x4b60c4], 0
mov dword [0x4b60bc], 0
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
cmp dx, 1
jne case.0x45a5c0.514
test ecx, ecx
je 0x459ecf
cmp word [ecx + 0x4d0], 0
jl 0x459f2d
mov eax, dword [0x4b60e4]
test eax, eax
je 0x45a79f
nop dword [eax]
mov ecx, dword [eax + 0x1a8]
test ecx, ecx
je 0x459f06
mov eax, ecx
test eax, eax
jne 0x459ee0
lea eax, [ecx + 1]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
mov eax, dword [eax + 0x1d8]
test eax, eax
je 0x45a79f
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x45a79f
cmp word [eax + 0x4d0], 0
jge 0x45a79f
push 0
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
call fcn.00446730
mov ecx, dword [0x4b60e8]
call fcn.0042dbb0
cmp dword [0x4b60f8], 0
jne 0x459f72
push dword [0x4b60bc]
call dword [sym.imp.MMFS2.dll_Ordinal_832]
mov eax, dword [0x4b60e4]
test eax, eax
je 0x45a0d6
cmp dword [eax + 0x1a8], 0
je 0x45a0d6
mov ecx, dword [eax + 0x1ac]
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x45a034
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
movsx edx, ax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cwde
mov dword [ecx + 0x60], edx
mov dword [ecx + 0x64], eax
mov dword [esp + 0xc], eax
mov eax, dword [0x4b60e4]
mov ecx, dword [eax + 0x1b0]
test ecx, 0x200000
je 0x45a034
and ecx, 0xc00000
cmp ecx, 0x800000
ja 0x45a010
je 0x45a000
test ecx, ecx
je 0x45a000
cmp ecx, 0x400000
je 0x45a018
jmp 0x45a034
cmp dword [eax + 0x1bc], edx
je 0x45a034
mov dword [eax + 0x1bc], edx
jmp 0x45a02a
cmp ecx, 0xc00000
jne 0x45a034
mov ecx, dword [esp + 0xc]
cmp dword [eax + 0x1c0], ecx
je 0x45a034
mov dword [eax + 0x1c0], ecx
call fcn.004483c0
mov eax, dword [0x4b60e4]
test eax, eax
je 0x45a0d6
cmp dword [eax + 0x1fc], 0
jne 0x45a0d6
mov dword [eax + 0x1fc], 1
mov eax, dword [0x4b60e4]
cmp dword [eax + 0x1e4], 3
jne 0x45a0cc
cmp word [eax + 0x16], 0
jge 0x45a0cc
mov ecx, dword [0x4b60ec]
mov dword [esp + 0xc], 0
test ecx, ecx
je 0x45a095
cmp dword [ecx + 0x178], 0
je 0x45a095
call fcn.0042fd70
mov eax, dword [0x4b60e4]
mov dword [esp + 0xc], 1
mov dword [eax + 0x1fc], 1
xor edx, edx
mov ecx, dword [0x4b60e4]
call fcn.00406b90
cmp dword [esp + 0xc], 0
mov eax, dword [0x4b60e4]
mov dword [eax + 0x1fc], 0
je 0x45a0c7
call fcn.0042fc80
mov eax, dword [0x4b60e4]
mov dword [eax + 0x1fc], 0
push dword [0x4b60bc]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
mov ecx, 0x800
test cx, ax
je 0x45a82b
push dword [esp + 8]
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_DefMDIChildProcW]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
push dword [0x4b60bc]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
mov ecx, 0x800
test cx, ax
je case.0x45a5c0.514
push dword [esp + 8]
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_DefMDIChildProcW]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4b60e8]
test eax, eax
je case.0x45a5c0.514
test dword [eax + 0xc], 0x800
je case.0x45a5c0.514
test byte [0x4b60cc], 0x10
jne case.0x45a5c0.514
push dword [0x4b60c0]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x45a79f
mov esi, dword [esp + 0x10]
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
jne 0x45a1b0
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ax, word [0x4b60ce]
cmp ax, 3
jne 0x45a1e1
mov ecx, dword [0x4b60c8]
test ecx, ecx
je 0x45a1e1
push 1
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ax, word [0x4b60ce]
mov ecx, dword [0x4b60e8]
mov ecx, dword [ecx + 8]
cmp ax, 3
jne 0x45a1f6
or ecx, 0x2000000
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [esp + 0x14]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x45a79f
push 1
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
call fcn.00446730
mov ecx, dword [0x4b60e4]
test ecx, ecx
je case.0x45a5c0.514
cmp dword [ecx + 0x1a8], 0
mov eax, dword [esp + 8]
je 0x45a7f2
mov edx, dword [ecx + 0x1ac]
test edx, edx
je 0x45a7f2
test byte [eax + 0x18], 2
jne 0x45a7f2
test byte [ecx + 0x1b0], 0x20
je 0x45a2ba
mov eax, dword [eax + 8]
mov dword [edx + 0x4c], eax
mov eax, dword [esp + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0x54], eax
mov eax, dword [esp + 8]
push eax
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ecx + 0x1a8]
mov ecx, dword [ecx + 0x1d8]
test ecx, ecx
je 0x45a7f2
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x45a7f2
mov eax, dword [eax + 8]
add eax, dword [ecx + 0xb0]
mov dword [edx + 0x4c], eax
mov eax, dword [esp + 8]
mov eax, dword [eax + 0xc]
add eax, dword [ecx + 0xb4]
mov dword [edx + 0x54], eax
mov eax, dword [esp + 8]
push eax
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
lea eax, [esi - 0x100]
cmp eax, 0x12
ja case.0x45a5c0.514
movzx eax, byte [eax + 0x45a890]
jmp dword [eax*4 + 0x45a87c]
test ecx, ecx
je case.0x45a32f.260
mov ecx, edi
call fcn.0045f2f0
mov eax, dword [0x4b60e4]
test eax, eax
je 0x45a82b
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x45a82b
cmp esi, 0x104
je 0x45a376
mov eax, dword [esp + 8]
shr eax, 0x10
test eax, 0x2000
jne 0x45a376
xor edx, edx
jmp 0x45a37b
mov edx, 1
push ecx
mov ecx, dword [0x4b60c0]
push edi
call fcn.00459050
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
je case.0x45a5c0.514
mov eax, dword [0x4b60e4]
test eax, eax
je case.0x45a5c0.514
cmp dword [eax + 0x1a8], 0
je case.0x45a5c0.514
test edx, edx
jne case.0x45a5c0.514
mov eax, dword [eax + 0x1e4]
cmp eax, 2
je 0x45a3da
cmp eax, 4
jne 0x45a3e9
mov eax, dword [0x4b60e8]
cmp dword [eax + 0x70], 0
jne case.0x45a5c0.514
xor edx, edx
mov ecx, edi
call fcn.0045f180
test eax, eax
je case.0x45a5c0.514
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
mov eax, edi
and eax, 0xfff0
cmp eax, 0xf060
jne case.0x45a5c0.514
mov eax, dword [0x4b60e4]
test eax, eax
je 0x45a82b
cmp dword [eax + 0x1a8], 0
je 0x45a82b
push dword [0x4b60bc]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
mov ecx, 0x800
test cx, ax
je 0x45a467
mov eax, dword [0x4b60ec]
test eax, eax
je 0x45a46c
call fcn.0045f210
test eax, eax
jne 0x45a82b
mov eax, dword [0x4b60ec]
mov edx, dword [0x4b60e4]
mov ecx, dword [edx + 0x1b0]
test ecx, 0x800
jne 0x45a82b
test ecx, 0x8000
je 0x45a4cc
mov eax, dword [edx + 0x1d8]
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x45a82b
push 0
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4b60e4]
mov dword [eax + 0x1b4], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x45a82b
mov ecx, 0xfffffffe
mov word [eax + 0x30], cx
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
je 0x45a50e
call fcn.0045f550
mov eax, dword [0x4b60ec]
test eax, eax
je 0x45a50e
cmp word [eax + 0x4d0], 0
jl 0x45a57b
mov eax, dword [0x4b60e4]
test eax, eax
je case.0x45a5c0.514
nop dword [eax + eax]
mov ecx, dword [eax + 0x1a8]
test ecx, ecx
je 0x45a554
mov eax, ecx
test eax, eax
jne 0x45a520
mov eax, dword [esp + 8]
push eax
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
mov eax, dword [eax + 0x1d8]
test eax, eax
je case.0x45a5c0.514
mov eax, dword [eax + 0x7c]
test eax, eax
je case.0x45a5c0.514
cmp word [eax + 0x4d0], 0
jge case.0x45a5c0.514
push 0
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
cmp esi, 0x222
ja 0x45a6dd
je 0x45a62e
lea eax, [esi - 0x201]
cmp eax, 9
ja case.0x45a5c0.514
movzx eax, byte [eax + 0x45a8b0]
jmp dword [eax*4 + 0x45a8a4]
test ecx, ecx
je 0x45a82b
push edx
mov ecx, esi
call fcn.0042dc80
add esp, 4
test eax, eax
jne 0x45a82b
cmp dword [0x4b60ec], eax
je 0x45a82b
mov ecx, esi
call fcn.0045f570
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
je 0x45a82b
mov ecx, edi
call fcn.0045f280
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
push dword [0x4b60bc]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
mov ecx, 0x800
test cx, ax
je case.0x45a5c0.514
mov eax, dword [0x4b60e4]
test dword [eax + 0x1b0], 0x2000000
mov eax, dword [esp + 8]
jne 0x45a7f2
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x45a69f
cmp dword [0x4b60ec], 0
je 0x45a7f2
call fcn.0042fd70
mov eax, dword [esp + 8]
push eax
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
cmp ecx, edi
jne 0x45a7f2
cmp dword [0x4b60ec], 0
je 0x45a7f2
call fcn.0042fc80
mov eax, dword [esp + 8]
push eax
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
cmp esi, 0x311
ja 0x45a7e6
je 0x45a705
cmp esi, 0x233
je 0x45a7b7
cmp esi, 0x30f
jne case.0x45a5c0.514
mov edi, eax
cmp dword [0x4b60bc], 0
je 0x45a82b
cmp dword [0x4b60c8], 0
je 0x45a82b
mov esi, eax
push eax
mov dword [esp + 0x10], esi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x45a741
push eax
mov esi, eax
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x45a730
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 8], eax
test eax, eax
je 0x45a79f
mov esi, dword [esp + 0x10]
xor ecx, ecx
cmp edi, esi
setne cl
push ecx
push dword [0x4b60c8]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edi, dword [esp + 8]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
test eax, eax
je 0x45a787
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push dword [esp + 0x14]
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
je case.0x45a5c0.514
mov ecx, edi
call fcn.0045f3c0
mov eax, dword [esp + 8]
push eax
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
cmp esi, 0x3b9
je 0x45a812
mov eax, dword [esp + 8]
push eax
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
je 0x45a82b
cmp edi, 4
je 0x45a82b
push 0xffffffffffffffff
push 2
push dword [0x4b60b4]
call dword [sym.imp.MMFS2.dll_Ordinal_191]
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 8