Function at 0x45b59b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x49b014]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [0x49d5cc]
push edi
mov edi, edx
mov dword [esp + 0x14], eax
mov edx, dword [0x49d5d4]
mov dword [esp + 0x10], ecx
test edx, edx
je 0x45af61
push ecx
push ebx
mov edx, edi
mov ecx, eax
call fcn.004580e0
add esp, 8
test al, 4
jne 0x45b472
test al, 0x10
je 0x45af30
cmp edi, 1
je 0x45b472
push dword [esp + 0x10]
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
test al, 0x40
je 0x45af53
mov eax, dword [0x49d5d4]
mov eax, dword [eax + 0x4b4]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x49d5d4]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp edi, 0x111
ja 0x45b488
je 0x45b41a
cmp edi, 0x24
ja 0x45b2b8
je 0x45b279
lea eax, [edi - 2]
cmp eax, 0x1e
ja case.0x45b4b2.275
movzx eax, byte [eax + 0x45b8c4]
jmp dword [eax*4 + 0x45b8b0]
mov eax, dword [esp + 0x10]
push eax
push ebx
push edi
push dword [esp + 0x20]
mov dword [0x49d5ac], 0
mov dword [0x49d5a4], 0
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
cmp cx, 1
jne case.0x45b4b2.275
call fcn.0045ae40
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
call fcn.004571e0
mov ecx, dword [0x49d5d0]
call fcn.00408dd0
cmp dword [0x49d5e0], 0
jne 0x45b022
push dword [0x49d5a4]
call dword [sym.imp.MMFS2.dll_Ordinal_832]
test esi, esi
je 0x45b151
cmp dword [esi + 0x1a8], 0
je 0x45b151
mov eax, dword [esi + 0x1ac]
mov dword [esp + 0x18], eax
test eax, eax
je 0x45b0d0
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movsx edx, ax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
cwde
mov dword [ecx + 0x60], edx
mov dword [esp + 0x18], eax
mov dword [ecx + 0x64], eax
mov eax, dword [esi + 0x1b0]
test eax, 0x200000
je 0x45b0d0
and eax, 0xc00000
cmp eax, 0x800000
ja 0x45b0b2
je 0x45b0a2
test eax, eax
je 0x45b0a2
cmp eax, 0x400000
je 0x45b0b9
jmp 0x45b0d0
cmp dword [esi + 0x1bc], edx
je 0x45b0d0
mov dword [esi + 0x1bc], edx
jmp 0x45b0cb
cmp eax, 0xc00000
jne 0x45b0d0
mov eax, dword [esp + 0x18]
cmp dword [esi + 0x1c0], eax
je 0x45b0d0
mov dword [esi + 0x1c0], eax
call fcn.00458950
cmp dword [esi + 0x1fc], 0
jne 0x45b151
cmp dword [esi + 0x1e4], 3
mov dword [esi + 0x1fc], 1
jne 0x45b147
cmp word [esi + 0x16], 0
jge 0x45b147
mov eax, dword [0x49d5d4]
mov dword [esp + 0x18], 0
test eax, eax
je 0x45b11a
cmp dword [eax + 0x178], 0
je 0x45b11a
call fcn.00425bd0
mov dword [esp + 0x18], 1
push ecx
xor edx, edx
mov dword [esi + 0x1fc], 1
mov ecx, esi
call fcn.00404e80
add esp, 4
mov dword [esi + 0x1fc], 0
cmp dword [esp + 0x18], 0
je 0x45b147
call fcn.00425ad0
mov dword [esi + 0x1fc], 0
push dword [0x49d5a4]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
mov ecx, 0x800
test cx, ax
je 0x45b472
push dword [esp + 0x10]
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_DefMDIChildProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x49d5d0]
test eax, eax
je case.0x45b4b2.275
test dword [eax + 0xc], 0x800
je case.0x45b4b2.275
test byte [0x49d5b4], 0x10
jne case.0x45b4b2.275
push dword [0x49d5a8]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x45b837
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
xor edi, edi
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
jne 0x45b1ed
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ax, word [0x49d5b6]
cmp ax, 3
jne 0x45b21c
mov ecx, dword [0x49d5b0]
test ecx, ecx
je 0x45b21c
push 1
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ax, word [0x49d5b6]
mov ecx, dword [0x49d5d0]
mov ecx, dword [ecx + 8]
cmp ax, 3
jne 0x45b231
or ecx, 0x2000000
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [esp + 0x1c]
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
je 0x45b837
push 1
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
push dword [0x49d5a4]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
mov ecx, 0x800
test cx, ax
je case.0x45b4b2.275
push dword [esp + 0x10]
push ebx
push 0x24
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_DefMDIChildProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
mov eax, edi
sub eax, 0x47
je 0x45b34d
sub eax, 0xb9
je 0x45b2f4
sub eax, 4
je 0x45b303
mov eax, dword [esp + 0x10]
push eax
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
test edx, edx
je 0x45b303
push ecx
mov edx, ebx
call fcn.004345c0
add esp, 4
test esi, esi
je 0x45b472
mov ecx, dword [esi + 0xb4]
test ecx, ecx
je 0x45b472
cmp edi, 0x104
je 0x45b333
mov eax, dword [esp + 0x10]
shr eax, 0x10
test eax, 0x2000
jne 0x45b333
xor edx, edx
jmp 0x45b338
mov edx, 1
push ecx
mov ecx, dword [0x49d5a8]
push ebx
call fcn.00459f70
add esp, 8
jmp 0x45b472
call fcn.004571e0
test esi, esi
je case.0x45b4b2.275
mov edx, dword [esi + 0x1a8]
mov eax, dword [esp + 0x10]
test edx, edx
je 0x45b868
mov ecx, dword [esi + 0x1ac]
test ecx, ecx
je 0x45b868
test byte [eax + 0x18], 2
jne 0x45b868
test byte [esi + 0x1b0], 0x20
je 0x45b3c0
mov esi, eax
mov eax, dword [esi + 8]
mov dword [ecx + 0x4c], eax
mov eax, esi
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x54], eax
mov eax, esi
push eax
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
mov edx, dword [edx + 0x1d8]
test edx, edx
je 0x45b868
mov edx, dword [edx + 0x7c]
test edx, edx
je 0x45b868
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
add eax, dword [edx + 0xb0]
mov dword [ecx + 0x4c], eax
mov eax, esi
mov eax, dword [eax + 0xc]
add eax, dword [edx + 0xb4]
mov dword [ecx + 0x54], eax
mov eax, esi
push eax
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
test edx, edx
je case.0x45b4b2.275
test esi, esi
je case.0x45b4b2.275
cmp dword [esi + 0x1a8], 0
je case.0x45b4b2.275
test ecx, ecx
jne case.0x45b4b2.275
mov eax, dword [esi + 0x1e4]
cmp eax, 2
je 0x45b44f
cmp eax, 4
jne 0x45b45e
mov eax, dword [0x49d5d0]
cmp dword [eax + 0x70], 0
jne case.0x45b4b2.275
push 0
mov edx, ebx
call fcn.00434470
add esp, 4
test eax, eax
je case.0x45b4b2.275
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x222
ja 0x45b6d9
je 0x45b647
lea eax, [edi - 0x112]
cmp eax, 0xf8
ja case.0x45b4b2.275
movzx eax, byte [eax + 0x45b904]
jmp dword [eax*4 + 0x45b8e4]
movzx eax, bx
cmp eax, 8
ja case.0x45b4b2.275
movzx eax, byte [eax + 0x45ba08]
jmp dword [eax*4 + 0x45ba00]
call fcn.0044c920
mov eax, dword [esp + 0x10]
push eax
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
jne case.0x45b4b2.275
mov eax, ebx
shr eax, 0x10
cmp eax, 0xffff
jne case.0x45b4b2.275
call fcn.0044ca20
mov eax, dword [esp + 0x10]
push eax
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
test edx, edx
je 0x45b472
push ecx
mov ecx, edi
call fcn.00408eb0
add esp, 4
test eax, eax
jne 0x45b472
sub esp, 8
mov edx, edi
call fcn.004347e0
add esp, 8
jmp 0x45b472
test edx, edx
je 0x45b579
push ecx
call fcn.004347c0
add esp, 4
call fcn.0045ae40
jmp 0x45b46a
test edx, edx
je 0x45b472
push ecx
mov edx, ebx
call fcn.00434570
add esp, 4
jmp 0x45b472
mov eax, ebx
and eax, 0xfff0
cmp eax, 0xf060
jne case.0x45b4b2.275
test esi, esi
je 0x45b472
cmp dword [esi + 0x1a8], 0
je 0x45b472
push dword [0x49d5a4]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
mov ecx, 0x800
test cx, ax
je 0x45b5e9
push ecx
call fcn.00434500
add esp, 4
test eax, eax
jne 0x45b472
mov eax, dword [esi + 0x1b0]
test eax, 0x800
jne 0x45b472
test eax, 0x8000
je 0x45b62c
mov eax, dword [esi + 0x1d8]
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x45b472
push 0
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x1b4], 0
jmp 0x45b472
mov eax, dword [0x49d5d4]
test eax, eax
je 0x45b472
mov ecx, 0xfffffffe
mov word [eax + 0x30], cx
jmp 0x45b472
push dword [0x49d5a4]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
mov ecx, 0x800
test cx, ax
mov eax, dword [esp + 0x10]
je 0x45b868
test dword [esi + 0x1b0], 0x2000000
jne 0x45b868
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x45b6a7
call fcn.00425bd0
mov eax, dword [esp + 0x10]
push eax
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
cmp ecx, ebx
jne 0x45b868
call fcn.00425ad0
mov eax, dword [esp + 0x10]
push eax
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x30f
ja 0x45b850
je 0x45b7a8
mov eax, edi
sub eax, 0x231
je 0x45b771
sub eax, 1
je 0x45b73a
sub eax, 1
jne case.0x45b4b2.275
test edx, edx
je case.0x45b4b2.275
push ecx
mov edx, ebx
call fcn.00434670
mov eax, dword [esp + 0x14]
add esp, 4
push eax
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
cmp dword [0x49d554], 0
jne case.0x45b4b2.275
call fcn.0044ca20
mov eax, dword [esp + 0x10]
push eax
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
cmp dword [0x49d554], 0
jne case.0x45b4b2.275
call fcn.0044c920
mov eax, dword [esp + 0x10]
push eax
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
mov ebx, eax
cmp dword [0x49d5a4], 0
je 0x45b472
cmp dword [0x49d5b0], 0
je 0x45b472
mov esi, dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
push eax
call esi
test eax, eax
je 0x45b7dc
push eax
mov edi, eax
call esi
test eax, eax
jne 0x45b7d3
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x18], eax
test eax, eax
je 0x45b837
mov esi, dword [esp + 0x14]
xor ecx, ecx
cmp ebx, esi
setne cl
push ecx
push dword [0x49d5b0]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ebx, dword [esp + 0x18]
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
test eax, eax
je 0x45b822
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push dword [esp + 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x311
je 0x45b7aa
cmp edi, 0x3b9
je 0x45b889
mov eax, dword [esp + 0x10]
push eax
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.MMFS2.dll_Ordinal_1070]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00460dbb
mov esp, ebp
pop ebp
ret 8
test edx, edx
je 0x45b472
cmp ebx, 4
je 0x45b472
push 0xffffffffffffffff
push 2
push dword [0x49d59c]
call dword [sym.imp.MMFS2.dll_Ordinal_191]
jmp 0x45b472