Function at 0x450210
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4a7ff8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov edi, dword [0x4ad9ac]
mov dword [esp + 0x28], ecx
mov dword [edi + 0x204], 0xffffffff
cmp dword [0x4ad9c0], 0
jne 0x45084c
mov eax, dword [edi + 0x1e4]
cmp eax, 2
je 0x45084c
cmp eax, 4
je 0x45084c
cmp word [0x4adb24], 0
jne 0x45084c
mov ax, word [edi + 0x14]
mov word [edi + 0x1f8], ax
push dword [0x4ad988]
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
setne al
mov byte [edi + 0x391], al
push dword [0x4ad984]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
cmp dword [0x4adb30], 0
xorps xmm0, xmm0
movzx eax, ax
movsd qword [esp + 0x20], xmm0
movsd xmm0, qword [0x48c2f0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
movsd qword [esp + 0x30], xmm0
jne 0x450336
mov eax, dword [edi + 0x37c]
test eax, eax
je 0x450336
test byte [eax], 1
je 0x450336
movd xmm2, dword [0x4adb48]
movd xmm0, dword [0x4adb4c]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm2, xmm2
movzx eax, word [eax + 0xc]
divsd xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd xmm1, qword [0x48c2d0]
mulsd xmm0, xmm2
mov dword [esp + 0x1c], 1
movsd qword [esp + 0x30], xmm2
divsd xmm0, qword [0x48c320]
comisd xmm1, xmm0
movsd qword [esp + 0x20], xmm0
jbe 0x450336
movsd qword [esp + 0x20], xmm1
test byte [0x4ad994], 0x10
je 0x45034d
push 4
push dword [0x4ad97c]
call dword [sym.imp.MMFS2.dll_Ordinal_5]
push dword [0x4ad988]
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
call ebx
test eax, eax
jne 0x450388
movzx eax, word [edi + 0x14]
test eax, 0x100
je 0x450383
test al, al
js 0x450383
call fcn.00450da0
test byte [0x4ad994], 0x10
je 0x450383
mov byte [edi + 0x391], 1
call fcn.00441ad0
test byte [0x4ad994], 0x10
je 0x45039b
or word [edi + 0x14], 2
call fcn.00441c00
push dword [0x4ad988]
call ebx
test eax, eax
jne 0x4503be
movzx eax, byte [edi + 0x15]
and eax, 2
or eax, 1
push eax
push dword [0x4ad988]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2c
lea esi, [edi + 0x208]
push 0
push esi
call fcn.00470f20
add esp, 0xc
mov dword [esi], 0x2c
push esi
push dword [0x4ad988]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test byte [0x4ad994], 0x10
mov byte [esp + 0x13], 0
je 0x45043c
mov ax, word [edi + 0x14]
mov ecx, 0xfeff
and ax, cx
mov ecx, 0x82
or ax, cx
mov word [edi + 0x14], ax
call fcn.00441c00
call fcn.00441ad0
call fcn.00450f90
push dword [0x4ad98c]
call ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x450442
push 0
push dword [0x4ad98c]
mov byte [esp + 0x1b], 1
call ebx
jmp 0x450442
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4ad980]
mov eax, dword [eax + 0x6a]
mov dword [edi + 0x234], eax
mov eax, dword [0x4ad980]
mov eax, dword [eax + 0x6e]
mov dword [edi + 0x238], eax
mov eax, dword [0x4adb4c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x4adb48]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
or eax, 8
push eax
push dword [0x4ad984]
call dword [sym.imp.MMFS2.dll_Ordinal_17]
cmp dword [edi + 0x23c], 0
mov esi, dword [edi + 0x1c8]
jne 0x4504dc
mov al, byte [0x4ad994]
test al, 0x10
je 0x4504b0
test al, al
lea eax, [esp + 0x18]
jns 0x4504aa
push 6
push 4
jmp 0x4504b8
push 5
push 4
jmp 0x4504b8
push 0
push 2
lea eax, [esp + 0x20]
push esi
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_172]
call dword [sym.imp.MMFS2.dll_Ordinal_173]
push dword [esp + 0x18]
mov ecx, eax
push 0x20
push 0x20
mov dword [edi + 0x23c], eax
call dword [sym.imp.MMFS2.dll_Ordinal_372]
movsx eax, word [edi + 0x1c]
movsd xmm0, qword [esp + 0x30]
mov dword [esp + 0x40], eax
movsx eax, word [edi + 0x1e]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
movsd qword [esp + 0x60], xmm0
movsd xmm0, qword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 0x186a0
mov dword [esp + 0x54], 0x186a0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
movsd qword [esp + 0x6c], xmm0
mov ecx, dword [edi + 0x23c]
push 0x4500b0
call dword [sym.imp.MMFS2.dll_Ordinal_418]
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x4505b6
test byte [edi + 0x14], 0x10
je 0x4505fb
movsd xmm0, qword [esp + 0x30]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
movsd qword [esp + 0x60], xmm0
movsd xmm0, qword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 0x186a0
mov dword [esp + 0x54], 0x186a0
mov dword [esp + 0x60], 1
movsd qword [esp + 0x6c], xmm0
mov ecx, dword [edi + 0x23c]
push 0x4500b0
call dword [sym.imp.MMFS2.dll_Ordinal_418]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x450602
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
cmp dword [0x4ada7c], 0
je 0x4505e1
mov ecx, dword [edi + 0x23c]
push 1
call dword [sym.imp.MMFS2.dll_Ordinal_876]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
test byte [0x4ad994], 0x10
push eax
push edx
push ecx
mov ecx, dword [edi + 0x23c]
je 0x450621
push dword [0x4ad98c]
jmp 0x450627
movzx eax, word [edi + 0x1f8]
mov ecx, dword [0x4adb4c]
mov edx, dword [0x4adb48]
mov eax, 0x20
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
jmp 0x4505be
push dword [0x4ad988]
call dword [sym.imp.MMFS2.dll_Ordinal_750]
test eax, eax
je 0x4507f3
mov eax, dword [esp + 0x54]
mov dword [0x4ad9c0], 1
mov dword [edi + 0x204], eax
cmp dword [0x4ad9b0], 0
je 0x450672
push 0
push dword [0x4ad984]
call dword [sym.imp.MMFS2.dll_Ordinal_34]
test eax, eax
je 0x450672
push dword [edi + 0x23c]
mov ecx, eax
call dword [sym.imp.MMFS2.dll_Ordinal_361]
cmp dword [esp + 0x28], 0
je 0x450705
mov ecx, dword [edi + 0x23c]
test ecx, ecx
je 0x450705
mov eax, dword [edi + 0x204]
add eax, 0xfffffff8
mov esi, 7
cmp eax, 0x18
ja case.0x4506a1.9
movzx eax, byte [eax + 0x450878]
jmp dword [eax*4 + 0x450860]
mov esi, 3
jmp case.0x4506a1.9
mov esi, 6
jmp case.0x4506a1.9
mov esi, 4
jmp case.0x4506a1.9
mov esi, 8
call dword [sym.imp.MMFS2.dll_Ordinal_493]
sub eax, 5
je 0x4506d6
dec eax
jne 0x4506d9
or esi, 0x80
or esi, 0x10
movzx eax, word [0x4ad994]
cmp esi, eax
je 0x450705
push esi
push dword [0x4ad97c]
call dword [sym.imp.MMFS2.dll_Ordinal_3]
mov word [0x4ad994], ax
mov eax, dword [0x4ad994]
and eax, 0xf
mov word [0x4ad996], ax
mov ecx, dword [edi + 0x234]
sub ecx, dword [esp + 0x2c]
mov eax, dword [0x4ad980]
add ecx, dword [0x4adb4c]
push dword [esp + 0x14]
mov dword [eax + 0x6a], ecx
mov ecx, dword [edi + 0x238]
sub ecx, dword [esp + 0x40]
mov eax, dword [0x4ad980]
add ecx, dword [0x4adb48]
mov dword [eax + 0x6e], ecx
push dword [0x4ad984]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_17]
call eax
push 4
push dword [0x4adb48]
push dword [0x4adb4c]
push 0
push 0
push 0
push dword [0x4ad988]
call dword [sym.imp.USER32.dll_SetWindowPos]
test byte [0x4ad994], 0x10
jne 0x450793
push dword [0x4ad988]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x450793
push 3
push dword [0x4ad988]
call ebx
push 1
push dword [0x4ad988]
call ebx
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x4507c3
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x4507c3
push 8
push 0x401
push dword [edi + 0xb0]
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push dword [0x4ad98c]
call esi
push 1
push 0
push dword [0x4ad988]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0046d049
mov esp, ebp
pop ebp
ret
push dword [edi + 0x23c]
call dword [sym.imp.MMFS2.dll_Ordinal_174]
cmp byte [esp + 0x13], 0
mov dword [edi + 0x23c], 0
je 0x45081a
push 5
push dword [0x4ad98c]
call ebx
test byte [edi + 0x1f8], 0x10
mov eax, dword [esp + 0x14]
je 0x45082f
or word [edi + 0x14], 0x10
or eax, 2
push eax
push dword [0x4ad984]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_17]
call eax
call fcn.00441c00
mov dword [0x4ad9c0], 0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046d049
mov esp, ebp
pop ebp
ret