Function at 0x43c460
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
cmp esi, 0x807b
push edi
je 0x43cc14
mov eax, dword [0x452594]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
test eax, eax
je 0x43c4d9
push ebx
push edi
push esi
push ebp
call fcn.0042f1e0
add esp, 0x10
test al, 4
jne 0x43cc14
test al, 0x10
je 0x43c4c0
cmp esi, 1
je 0x43cc14
push ebx
push edi
push esi
push ebp
call sub.MMFS2.dll_Ordinal_22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
test al, 0x40
mov eax, dword [0x452594]
je 0x43c4d9
mov eax, dword [eax + 0x4b4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
cmp esi, 0x201
ja 0x43ca31
je 0x43ca65
cmp esi, 0x100
ja 0x43c853
je 0x43c842
lea eax, [esi - 2]
cmp eax, 0x45
ja case.default.0x43ca56
xor ecx, ecx
mov cl, byte [eax + 0x43cc54]
jmp dword [ecx*4 + 0x43cc3c]
push ebx
push edi
xor eax, eax
push esi
push ebp
mov dword [0x45256c], eax
mov dword [0x452564], eax
call sub.MMFS2.dll_Ordinal_22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [0x45258c]
test eax, eax
je case.default.0x43ca56
mov edx, dword [eax + 0x1a8]
test edx, edx
je case.default.0x43ca56
mov ecx, dword [eax + 0x1ac]
test ecx, ecx
je case.default.0x43ca56
test byte [ebx + 0x18], 2
jne case.default.0x43ca56
test byte [eax + 0x1b0], 0x20
je 0x43c592
mov edx, dword [ebx + 8]
push ebx
mov dword [ecx + 0x4c], edx
mov eax, dword [ebx + 0xc]
push edi
push esi
push ebp
mov dword [ecx + 0x54], eax
call sub.MMFS2.dll_Ordinal_22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [edx + 0x1d8]
test eax, eax
je case.default.0x43ca56
mov eax, dword [eax + 0x7c]
test eax, eax
je case.default.0x43ca56
mov edx, dword [eax + 0xb0]
push ebx
add edx, dword [ebx + 8]
push edi
push esi
push ebp
mov dword [ecx + 0x4c], edx
mov eax, dword [eax + 0xb4]
add eax, dword [ebx + 0xc]
mov dword [ecx + 0x54], eax
call sub.MMFS2.dll_Ordinal_22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov ecx, dword [0x45258c]
test ecx, ecx
je 0x43c720
mov eax, dword [ecx + 0x1a8]
test eax, eax
je 0x43c720
mov esi, dword [ecx + 0x1ac]
test esi, esi
je 0x43c68a
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
sub edx, eax
mov eax, dword [esp + 0x1c]
sub eax, edi
movsx edx, dx
movsx edi, ax
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edi
mov ecx, dword [0x45258c]
mov eax, dword [ecx + 0x1b0]
test eax, 0x200000
je 0x43c68a
and eax, 0xc00000
cmp eax, 0x800000
ja 0x43c66a
je 0x43c65a
test eax, eax
je 0x43c65a
cmp eax, 0x400000
je 0x43c671
jmp 0x43c68a
cmp dword [ecx + 0x1bc], edx
je 0x43c68a
mov dword [ecx + 0x1bc], edx
jmp 0x43c67f
cmp eax, 0xc00000
jne 0x43c68a
cmp dword [ecx + 0x1c0], edi
je 0x43c68a
mov dword [ecx + 0x1c0], edi
call fcn.0042f7b0
mov ecx, dword [0x45258c]
test ecx, ecx
je 0x43c720
mov eax, dword [ecx + 0x1fc]
test eax, eax
jne 0x43c720
mov edi, 1
mov dword [ecx + 0x1fc], edi
mov eax, dword [0x45258c]
cmp dword [eax + 0x1e4], 3
jne 0x43c710
test byte [eax + 0x17], 0x80
je 0x43c710
mov eax, dword [0x452594]
xor esi, esi
test eax, eax
je 0x43c6db
mov ecx, dword [eax + 0x178]
test ecx, ecx
je 0x43c6db
call fcn.0041aef0
mov esi, edi
mov ecx, dword [0x45258c]
push 0
mov dword [ecx + 0x1fc], edi
mov edx, dword [0x45258c]
push edx
call fcn.00404ba0
mov eax, dword [0x45258c]
add esp, 8
test esi, esi
mov dword [eax + 0x1fc], 0
je 0x43c710
call fcn.0041ae10
mov ecx, dword [0x45258c]
mov dword [ecx + 0x1fc], 0
mov edx, dword [0x452564]
push edx
call sub.MMFS2.dll_Ordinal_16
test ah, 8
je 0x43cc14
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push ebx
push eax
push ecx
push ebp
call dword [sym.imp.USER32.dll_DefMDIChildProcA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov edx, dword [0x452564]
push edx
call sub.MMFS2.dll_Ordinal_16
test ah, 8
je case.default.0x43ca56
push ebx
push edi
push esi
push ebp
call dword [sym.imp.USER32.dll_DefMDIChildProcA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [0x452590]
test eax, eax
je case.default.0x43ca56
mov ecx, dword [eax + 0xc]
test ch, 8
je case.default.0x43ca56
mov eax, dword [0x452568]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x43c833
xor edi, edi
lea ecx, [esp + 0x10]
push edi
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
jne 0x43c7c6
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
mov ebp, dword [esp + 0x2c]
mov esi, 3
cmp word [0x452576], si
jne 0x43c7f6
mov eax, dword [0x452570]
test eax, eax
je 0x43c7f6
push 1
push eax
push ebp
call ebx
push ebp
mov edi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [0x452590]
cmp word [0x452576], si
mov eax, dword [eax + 8]
jne 0x43c80c
or eax, 0x2000000
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea ecx, [esp + 0x10]
push esi
push ecx
push ebp
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
je 0x43c833
push 1
push edi
push ebp
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x10
test eax, eax
je 0x43c87c
push ebx
push edi
push ebp
call fcn.00441670
add esp, 0xc
jmp 0x43c87c
lea ecx, [esi - 0x104]
cmp ecx, 0xfc
ja case.default.0x43ca56
xor edx, edx
mov dl, byte [ecx + 0x43ccb0]
jmp dword [edx*4 + 0x43cc9c]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov eax, dword [0x45258c]
test eax, eax
je 0x43cc14
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x43cc14
cmp esi, 0x104
je 0x43c8ab
shr ebx, 0x10
test bh, 0x20
jne 0x43c8ab
xor ecx, ecx
jmp 0x43c8b0
mov ecx, 1
push eax
mov eax, dword [0x452568]
push edi
push ecx
push eax
call fcn.0043b800
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
test eax, eax
je case.0x43ca56.517
mov edi, dword [esp + 0x2c]
push ebx
push edi
push ebp
call fcn.00441840
mov esi, dword [esp + 0x34]
add esp, 0xc
push ebx
push edi
push esi
push ebp
call sub.MMFS2.dll_Ordinal_22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
test eax, eax
je case.0x43ca56.517
mov eax, dword [0x45258c]
test eax, eax
je case.0x43ca56.517
mov ecx, dword [eax + 0x1a8]
test ecx, ecx
je case.0x43ca56.517
test ebx, ebx
jne case.0x43ca56.517
mov eax, dword [eax + 0x1e4]
cmp eax, 2
je 0x43c936
cmp eax, 4
jne 0x43c947
mov ecx, dword [0x452590]
mov eax, dword [ecx + 0x70]
test eax, eax
jne case.0x43ca56.517
mov edi, dword [esp + 0x2c]
push 0
push edi
push ebp
call fcn.00441520
add esp, 0xc
test eax, eax
je 0x43cc24
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
mov edi, dword [esp + 0x2c]
mov edx, edi
and edx, 0xfff0
cmp edx, 0xf060
jne 0x43cc24
mov eax, dword [0x45258c]
test eax, eax
je 0x43cc14
mov ecx, dword [eax + 0x1a8]
test ecx, ecx
je 0x43cc14
mov eax, dword [0x452564]
push eax
call sub.MMFS2.dll_Ordinal_16
test ah, 8
je 0x43c9c1
push ebx
push edi
push ebp
call fcn.004415a0
add esp, 0xc
test eax, eax
jne 0x43cc14
mov ecx, dword [0x45258c]
mov eax, dword [ecx + 0x1b0]
test ah, 8
jne 0x43cc14
test ah, ah
jns 0x43ca12
mov ecx, dword [ecx + 0x1d8]
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x43cc14
mov edx, dword [eax + 0xc]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x45258c]
pop edi
pop esi
pop ebp
mov dword [eax + 0x1b4], 0
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [0x452594]
test eax, eax
je 0x43cc14
pop edi
pop esi
mov word [eax + 0x30], 0xfffe
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
cmp esi, 0x222
ja 0x43cb0f
je 0x43caa8
lea ecx, [esi - 0x203]
cmp ecx, 7
ja case.default.0x43ca56
xor edx, edx
mov dl, byte [ecx + 0x43cdbc]
jmp dword [edx*4 + 0x43cdb0]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x43cc14
push ebx
push edi
push esi
push ebp
call fcn.00441860
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
test eax, eax
je 0x43cc14
mov eax, dword [esp + 0x2c]
push ebx
push eax
push ebp
call fcn.00441600
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov ecx, dword [0x452564]
push ecx
call sub.MMFS2.dll_Ordinal_16
test ah, 8
je case.default.0x43ca56
mov edx, dword [0x45258c]
test dword [edx + 0x1b0], 0x2000000
jne case.default.0x43ca56
cmp ebp, ebx
jne 0x43caef
call fcn.0043cde0
push ebx
push edi
push esi
push ebp
call sub.MMFS2.dll_Ordinal_22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
cmp ebp, edi
jne case.default.0x43ca56
call fcn.0043cdd0
push ebx
push edi
push esi
push ebp
call sub.MMFS2.dll_Ordinal_22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
cmp esi, 0x311
ja 0x43cbf3
je 0x43cb39
cmp esi, 0x233
je 0x43cbd1
cmp esi, 0x30f
jne case.default.0x43ca56
mov dword [esp + 0x2c], ebp
mov eax, dword [0x452564]
test eax, eax
je 0x43cc14
mov eax, dword [0x452570]
test eax, eax
je 0x43cc14
mov esi, dword [sym.imp.USER32.dll_GetParent]
push ebp
mov edi, ebp
call esi
test eax, eax
je 0x43cb6b
push eax
mov edi, eax
call esi
test eax, eax
jne 0x43cb62
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x43cbc2
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
xor eax, eax
cmp ecx, edx
mov edx, dword [0x452570]
setne al
push eax
push edx
push esi
call ebx
push esi
mov ebp, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
test eax, eax
jbe 0x43cbb4
mov eax, dword [esp + 0x24]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push ebp
push esi
call ebx
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x10
test eax, eax
je case.default.0x43ca56
push ebx
push edi
push ebp
call fcn.00441720
add esp, 0xc
push ebx
push edi
push esi
push ebp
call sub.MMFS2.dll_Ordinal_22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
cmp esi, 0x3b9
jne case.default.0x43ca56
test eax, eax
je 0x43cc14
cmp edi, 4
je 0x43cc14
mov ecx, dword [0x45255c]
push 0xffffffffffffffff
push 2
push ecx
call sub.MMFS2.dll_Ordinal_191
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push ebx
push edi
push esi
push ebp
call sub.MMFS2.dll_Ordinal_22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10