Function at 0x459090
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x4a1014]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
mov esi, dword [0x4a35cc]
push edi
mov dword [esp + 0x1c], ecx
mov dword [esi + 0x204], 0xffffffff
cmp dword [0x4a35e0], 0
jne 0x45976d
mov eax, dword [esi + 0x1e4]
cmp eax, 2
je 0x45976d
cmp eax, 4
je 0x45976d
cmp byte [0x4a358a], 0
jne 0x45976d
test byte [0x4a3570], 2
je 0x459116
test byte [0x4a35b4], 0x40
je 0x459116
call fcn.00458e30
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0046355d
mov esp, ebp
pop ebp
ret
mov ax, word [esi + 0x14]
mov word [esi + 0x1f8], ax
push dword [0x4a35a8]
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
setne al
mov byte [esi + 0x3d1], al
push dword [0x4a35a4]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
cmp byte [0x4a358e], 0
xorps xmm0, xmm0
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [0x492b58]
movzx eax, ax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
movsd qword [esp + 0x28], xmm0
jne 0x4591d6
mov eax, dword [esi + 0x3bc]
test eax, eax
je 0x4591d6
test byte [eax], 1
je 0x4591d6
movd xmm1, dword [0x4a3730]
movd xmm0, dword [0x4a3734]
cvtdq2pd xmm0, xmm0
movzx eax, word [eax + 0xc]
mov dword [esp + 0x18], 1
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm1
mulsd xmm0, xmm1
movsd xmm1, qword [0x492b38]
divsd xmm0, qword [0x492b98]
maxsd xmm1, xmm0
movsd qword [esp + 0x30], xmm1
test byte [0x4a35b4], 0x10
je 0x4591ed
push 4
push dword [0x4a359c]
call dword [sym.imp.MMFS2.dll_Ordinal_5]
push dword [0x4a35a8]
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
call edi
test eax, eax
jne 0x45922f
mov ax, word [esi + 0x14]
mov ecx, 0x180
and ax, cx
mov ecx, 0x100
cmp ax, cx
jne 0x45922a
call fcn.00459c70
test byte [0x4a35b4], 0x10
je 0x45922a
mov byte [esi + 0x3d1], 1
call fcn.00457e50
test byte [0x4a35b4], 0x10
je 0x459242
or word [esi + 0x14], 2
call fcn.00457f90
push dword [0x4a35a8]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x459267
movzx eax, byte [esi + 0x15]
and eax, 2
or eax, 1
push eax
push dword [0x4a35a8]
call ebx
mov dword [esi + 0x20c], 0
lea eax, [esi + 0x208]
mov dword [esi + 0x210], 0
mov dword [esi + 0x214], 0
mov dword [esi + 0x218], 0
mov dword [esi + 0x21c], 0
mov dword [esi + 0x220], 0
mov dword [esi + 0x224], 0
mov dword [esi + 0x228], 0
mov dword [esi + 0x22c], 0
mov dword [esi + 0x230], 0
push eax
mov dword [eax], 0x2c
push dword [0x4a35a8]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test byte [0x4a35b4], 0x10
mov byte [esp + 0xf], 0
je 0x459334
mov ax, word [esi + 0x14]
mov ecx, 0xfeff
and ax, cx
mov ecx, 0x82
or ax, cx
mov word [esi + 0x14], ax
call fcn.00457f90
call fcn.00457e50
call fcn.00459eb0
push dword [0x4a35ac]
call edi
test eax, eax
je 0x459334
push 0
push dword [0x4a35ac]
mov byte [esp + 0x17], 1
call ebx
mov eax, dword [0x4a35a0]
mov eax, dword [eax + 0x6a]
mov dword [esi + 0x234], eax
mov eax, dword [0x4a35a0]
mov eax, dword [eax + 0x6e]
mov dword [esi + 0x238], eax
mov eax, dword [0x4a3734]
mov dword [esp + 0x20], eax
mov eax, dword [0x4a3730]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
or eax, 8
push eax
push dword [0x4a35a4]
call dword [sym.imp.MMFS2.dll_Ordinal_17]
cmp dword [esi + 0x23c], 0
mov edi, dword [esi + 0x1c8]
jne 0x4593d8
mov al, byte [0x4a35b4]
test al, 0x10
je 0x4593ac
test al, 0x40
je 0x459398
push 7
push 4
jmp 0x4593b0
test al, al
lea eax, [esp + 0x10]
jns 0x4593a6
push 6
push 4
jmp 0x4593b4
push 5
push 4
jmp 0x4593b4
push 0
push 2
lea eax, [esp + 0x18]
push edi
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_172]
call dword [sym.imp.MMFS2.dll_Ordinal_173]
push dword [esp + 0x10]
mov ecx, eax
mov dword [esi + 0x23c], eax
push 0x20
push 0x20
call dword [sym.imp.MMFS2.dll_Ordinal_372]
movsx eax, word [esi + 0x1c]
movsd xmm0, qword [esp + 0x28]
mov dword [esp + 0x38], eax
movsx eax, word [esi + 0x1e]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x38]
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [esp + 0x30]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 0x186a0
mov dword [esp + 0x4c], 0x186a0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
movsd qword [esp + 0x64], xmm0
mov ecx, dword [esi + 0x23c]
push 0x458cb0
call dword [sym.imp.MMFS2.dll_Ordinal_418]
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4594b2
test byte [esi + 0x14], 0x10
je 0x45950b
movsd xmm0, qword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x38]
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [esp + 0x30]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 0x186a0
mov dword [esp + 0x4c], 0x186a0
mov dword [esp + 0x58], 1
movsd qword [esp + 0x64], xmm0
mov ecx, dword [esi + 0x23c]
push 0x458cb0
call dword [sym.imp.MMFS2.dll_Ordinal_418]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x459513
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
cmp dword [0x4a369c], 0
je 0x4594ef
mov eax, dword [0x4a3594]
test eax, eax
jne 0x4594d0
movzx eax, byte [esi + 0x7d]
mov ecx, dword [esi + 0x23c]
shl eax, 4
or eax, 5
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_876]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
test byte [0x4a35b4], 0x10
mov edi, dword [esi + 0x23c]
push eax
push edx
push ecx
mov ecx, edi
je 0x459532
push dword [0x4a35ac]
jmp 0x459538
mov al, byte [esi + 0x1f8]
and al, 0x14
mov ecx, dword [0x4a3734]
mov eax, 0x20
mov edx, dword [0x4a3730]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
jmp 0x4594ba
push dword [0x4a35a8]
call dword [sym.imp.MMFS2.dll_Ordinal_750]
test eax, eax
je 0x459714
mov eax, dword [esp + 0x4c]
mov dword [0x4a35e0], 1
mov dword [esi + 0x204], eax
cmp dword [0x4a35d0], 0
je 0x459583
push 0
push dword [0x4a35a4]
call dword [sym.imp.MMFS2.dll_Ordinal_34]
test eax, eax
je 0x459583
push dword [esi + 0x23c]
mov ecx, eax
call dword [sym.imp.MMFS2.dll_Ordinal_361]
cmp dword [esp + 0x1c], 0
je 0x459626
mov ecx, dword [esi + 0x23c]
test ecx, ecx
je 0x459626
mov eax, dword [esi + 0x204]
mov edi, 7
add eax, 0xfffffff8
cmp eax, 0x18
ja case.0x4595b6.9
movzx eax, byte [eax + 0x459798]
jmp dword [eax*4 + 0x459780]
mov edi, 3
jmp case.0x4595b6.9
mov edi, 6
jmp case.0x4595b6.9
mov edi, 4
jmp case.0x4595b6.9
mov edi, 8
call dword [sym.imp.MMFS2.dll_Ordinal_493]
sub eax, 5
je 0x4595f9
sub eax, 1
je 0x4595f1
sub eax, 1
jne 0x4595fc
or edi, 0x50
jmp 0x4595fc
or edi, 0x90
jmp 0x4595fc
or edi, 0x10
movzx eax, word [0x4a35b4]
cmp edi, eax
je 0x459626
push edi
push dword [0x4a359c]
call dword [sym.imp.MMFS2.dll_Ordinal_3]
movzx eax, ax
mov word [0x4a35b4], ax
and eax, 0xf
mov word [0x4a35b6], ax
mov ecx, dword [esi + 0x234]
sub ecx, dword [esp + 0x20]
mov eax, dword [0x4a35a0]
add ecx, dword [0x4a3734]
push dword [esp + 0x14]
mov dword [eax + 0x6a], ecx
mov ecx, dword [esi + 0x238]
mov eax, dword [0x4a35a0]
sub ecx, dword [esp + 0x28]
add ecx, dword [0x4a3730]
mov dword [eax + 0x6e], ecx
push dword [0x4a35a4]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_17]
call eax
push 4
push dword [0x4a3730]
push dword [0x4a3734]
push 0
push 0
push 0
push dword [0x4a35a8]
call dword [sym.imp.USER32.dll_SetWindowPos]
test byte [0x4a35b4], 0x10
jne 0x4596b4
push dword [0x4a35a8]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x4596b4
push 3
push dword [0x4a35a8]
call ebx
push 1
push dword [0x4a35a8]
call ebx
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x4596e4
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x4596e4
push 8
push 0x401
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push dword [0x4a35ac]
call esi
push 1
push 0
push dword [0x4a35a8]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0046355d
mov esp, ebp
pop ebp
ret
push dword [esi + 0x23c]
call dword [sym.imp.MMFS2.dll_Ordinal_174]
cmp byte [esp + 0xf], 0
mov dword [esi + 0x23c], 0
je 0x45973b
push 5
push dword [0x4a35ac]
call ebx
test byte [esi + 0x1f8], 0x10
mov eax, dword [esp + 0x14]
je 0x459750
or word [esi + 0x14], 0x10
or eax, 2
push eax
push dword [0x4a35a4]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_17]
call eax
call fcn.00457f90
mov dword [0x4a35e0], 0
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046355d
mov esp, ebp
pop ebp
ret