Function at 0x43b960
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 0x43c114
mov eax, dword [0x45157c]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
test eax, eax
je 0x43b9d9
push ebx
push edi
push esi
push ebp
call fcn.0042eb50
add esp, 0x10
test al, 4
jne 0x43c114
test al, 0x10
je 0x43b9c0
cmp esi, 1
je 0x43c114
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 [0x45157c]
je 0x43b9d9
mov eax, dword [eax + 0x4b4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
cmp esi, 0x201
ja 0x43bf31
je 0x43bf65
cmp esi, 0x100
ja 0x43bd53
je 0x43bd42
lea eax, [esi - 2]
cmp eax, 0x45
ja case.default.0x43bf56
xor ecx, ecx
mov cl, byte [eax + 0x43c154]
jmp dword [ecx*4 + 0x43c13c]
push ebx
push edi
xor eax, eax
push esi
push ebp
mov dword [0x451554], eax
mov dword [0x45154c], eax
call sub.MMFS2.dll_Ordinal_22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [0x451574]
test eax, eax
je case.default.0x43bf56
mov edx, dword [eax + 0x1a8]
test edx, edx
je case.default.0x43bf56
mov ecx, dword [eax + 0x1ac]
test ecx, ecx
je case.default.0x43bf56
test byte [ebx + 0x18], 2
jne case.default.0x43bf56
test byte [eax + 0x1b0], 0x20
je 0x43ba92
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.0x43bf56
mov eax, dword [eax + 0x7c]
test eax, eax
je case.default.0x43bf56
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 [0x451574]
test ecx, ecx
je 0x43bc20
mov eax, dword [ecx + 0x1a8]
test eax, eax
je 0x43bc20
mov esi, dword [ecx + 0x1ac]
test esi, esi
je 0x43bb8a
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 [0x451574]
mov eax, dword [ecx + 0x1b0]
test eax, 0x200000
je 0x43bb8a
and eax, 0xc00000
cmp eax, 0x800000
ja 0x43bb6a
je 0x43bb5a
test eax, eax
je 0x43bb5a
cmp eax, 0x400000
je 0x43bb71
jmp 0x43bb8a
cmp dword [ecx + 0x1bc], edx
je 0x43bb8a
mov dword [ecx + 0x1bc], edx
jmp 0x43bb7f
cmp eax, 0xc00000
jne 0x43bb8a
cmp dword [ecx + 0x1c0], edi
je 0x43bb8a
mov dword [ecx + 0x1c0], edi
call fcn.0042f100
mov ecx, dword [0x451574]
test ecx, ecx
je 0x43bc20
mov eax, dword [ecx + 0x1fc]
test eax, eax
jne 0x43bc20
mov edi, 1
mov dword [ecx + 0x1fc], edi
mov eax, dword [0x451574]
cmp dword [eax + 0x1e4], 3
jne 0x43bc10
test byte [eax + 0x17], 0x80
je 0x43bc10
mov eax, dword [0x45157c]
xor esi, esi
test eax, eax
je 0x43bbdb
mov ecx, dword [eax + 0x178]
test ecx, ecx
je 0x43bbdb
call fcn.0041aa80
mov esi, edi
mov ecx, dword [0x451574]
push 0
mov dword [ecx + 0x1fc], edi
mov edx, dword [0x451574]
push edx
call fcn.00404b30
mov eax, dword [0x451574]
add esp, 8
test esi, esi
mov dword [eax + 0x1fc], 0
je 0x43bc10
call fcn.0041a9a0
mov ecx, dword [0x451574]
mov dword [ecx + 0x1fc], 0
mov edx, dword [0x45154c]
push edx
call sub.MMFS2.dll_Ordinal_16
test ah, 8
je 0x43c114
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 [0x45154c]
push edx
call sub.MMFS2.dll_Ordinal_16
test ah, 8
je case.default.0x43bf56
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 [0x451578]
test eax, eax
je case.default.0x43bf56
mov ecx, dword [eax + 0xc]
test ch, 8
je case.default.0x43bf56
mov eax, dword [0x451550]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x43bd33
xor edi, edi
lea ecx, [esp + 0x10]
push edi
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
jne 0x43bcc6
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 [0x45155e], si
jne 0x43bcf6
mov eax, dword [0x451558]
test eax, eax
je 0x43bcf6
push 1
push eax
push ebp
call ebx
push ebp
mov edi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [0x451578]
cmp word [0x45155e], si
mov eax, dword [eax + 8]
jne 0x43bd0c
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 0x43bd33
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 0x43bd7c
push ebx
push edi
push ebp
call fcn.00440b70
add esp, 0xc
jmp 0x43bd7c
lea ecx, [esi - 0x104]
cmp ecx, 0xfc
ja case.default.0x43bf56
xor edx, edx
mov dl, byte [ecx + 0x43c1b0]
jmp dword [edx*4 + 0x43c19c]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov eax, dword [0x451574]
test eax, eax
je 0x43c114
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x43c114
cmp esi, 0x104
je 0x43bdab
shr ebx, 0x10
test bh, 0x20
jne 0x43bdab
xor ecx, ecx
jmp 0x43bdb0
mov ecx, 1
push eax
mov eax, dword [0x451550]
push edi
push ecx
push eax
call fcn.0043ad00
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
test eax, eax
je case.0x43bf56.517
mov edi, dword [esp + 0x2c]
push ebx
push edi
push ebp
call fcn.00440d40
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.0x43bf56.517
mov eax, dword [0x451574]
test eax, eax
je case.0x43bf56.517
mov ecx, dword [eax + 0x1a8]
test ecx, ecx
je case.0x43bf56.517
test ebx, ebx
jne case.0x43bf56.517
mov eax, dword [eax + 0x1e4]
cmp eax, 2
je 0x43be36
cmp eax, 4
jne 0x43be47
mov ecx, dword [0x451578]
mov eax, dword [ecx + 0x70]
test eax, eax
jne case.0x43bf56.517
mov edi, dword [esp + 0x2c]
push 0
push edi
push ebp
call fcn.00440a20
add esp, 0xc
test eax, eax
je 0x43c124
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 0x43c124
mov eax, dword [0x451574]
test eax, eax
je 0x43c114
mov ecx, dword [eax + 0x1a8]
test ecx, ecx
je 0x43c114
mov eax, dword [0x45154c]
push eax
call sub.MMFS2.dll_Ordinal_16
test ah, 8
je 0x43bec1
push ebx
push edi
push ebp
call fcn.00440aa0
add esp, 0xc
test eax, eax
jne 0x43c114
mov ecx, dword [0x451574]
mov eax, dword [ecx + 0x1b0]
test ah, 8
jne 0x43c114
test ah, ah
jns 0x43bf12
mov ecx, dword [ecx + 0x1d8]
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x43c114
mov edx, dword [eax + 0xc]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x451574]
pop edi
pop esi
pop ebp
mov dword [eax + 0x1b4], 0
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [0x45157c]
test eax, eax
je 0x43c114
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 0x43c00f
je 0x43bfa8
lea ecx, [esi - 0x203]
cmp ecx, 7
ja case.default.0x43bf56
xor edx, edx
mov dl, byte [ecx + 0x43c2bc]
jmp dword [edx*4 + 0x43c2b0]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x43c114
push ebx
push edi
push esi
push ebp
call fcn.00440d60
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
test eax, eax
je 0x43c114
mov eax, dword [esp + 0x2c]
push ebx
push eax
push ebp
call fcn.00440b00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov ecx, dword [0x45154c]
push ecx
call sub.MMFS2.dll_Ordinal_16
test ah, 8
je case.default.0x43bf56
mov edx, dword [0x451574]
test dword [edx + 0x1b0], 0x2000000
jne case.default.0x43bf56
cmp ebp, ebx
jne 0x43bfef
call fcn.0043c2e0
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.0x43bf56
call fcn.0043c2d0
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 0x43c0f3
je 0x43c039
cmp esi, 0x233
je 0x43c0d1
cmp esi, 0x30f
jne case.default.0x43bf56
mov dword [esp + 0x2c], ebp
mov eax, dword [0x45154c]
test eax, eax
je 0x43c114
mov eax, dword [0x451558]
test eax, eax
je 0x43c114
mov esi, dword [sym.imp.USER32.dll_GetParent]
push ebp
mov edi, ebp
call esi
test eax, eax
je 0x43c06b
push eax
mov edi, eax
call esi
test eax, eax
jne 0x43c062
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x43c0c2
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 [0x451558]
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 0x43c0b4
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.0x43bf56
push ebx
push edi
push ebp
call fcn.00440c20
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.0x43bf56
test eax, eax
je 0x43c114
cmp edi, 4
je 0x43c114
mov ecx, dword [0x451544]
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