Function at 0x4507e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4af008]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov edi, dword [0x4b49cc]
mov dword [esp + 0x28], ecx
mov dword [edi + 0x204], 0xffffffff
cmp dword [0x4b49e0], 0
jne 0x450e25
mov eax, dword [edi + 0x1e4]
cmp eax, 2
je 0x450e25
cmp eax, 4
je 0x450e25
cmp word [0x4b4b44], 0
jne 0x450e25
mov ax, word [edi + 0x14]
mov word [edi + 0x1f8], ax
push dword [0x4b49a8]
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
setne al
mov byte [edi + 0x391], al
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
cmp dword [0x4b4b50], 0
xorps xmm0, xmm0
movzx eax, ax
movsd qword [esp + 0x20], xmm0
movsd xmm0, qword [0x4931a0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
movsd qword [esp + 0x30], xmm0
jne 0x450906
mov eax, dword [edi + 0x37c]
test eax, eax
je 0x450906
test byte [eax], 1
je 0x450906
movd xmm2, dword [0x4b4b68]
movd xmm0, dword [0x4b4b6c]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm2, xmm2
movzx eax, word [eax + 0xc]
divsd xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd xmm1, qword [0x493180]
mulsd xmm0, xmm2
mov dword [esp + 0x1c], 1
movsd qword [esp + 0x30], xmm2
divsd xmm0, qword [0x4931d0]
comisd xmm1, xmm0
movsd qword [esp + 0x20], xmm0
jbe 0x450906
movsd qword [esp + 0x20], xmm1
test byte [0x4b49b4], 0x10
je 0x45091d
push 4
push dword [0x4b499c]
call dword [sym.imp.MMFS2.dll_Ordinal_5]
push dword [0x4b49a8]
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
call ebx
test eax, eax
jne 0x450958
movzx eax, word [edi + 0x14]
test eax, 0x100
je 0x450953
test al, al
js 0x450953
call fcn.00451370
test byte [0x4b49b4], 0x10
je 0x450953
mov byte [edi + 0x391], 1
call fcn.00441ee0
test byte [0x4b49b4], 0x10
je 0x45096b
or word [edi + 0x14], 2
call fcn.00442010
push dword [0x4b49a8]
call ebx
test eax, eax
jne 0x45098e
movzx eax, byte [edi + 0x15]
and eax, 2
or eax, 1
push eax
push dword [0x4b49a8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2c
lea esi, [edi + 0x208]
push 0
push esi
call fcn.00472480
add esp, 0xc
mov dword [esi], 0x2c
push esi
push dword [0x4b49a8]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test byte [0x4b49b4], 0x10
mov byte [esp + 0x13], 0
je 0x450a0c
mov ax, word [edi + 0x14]
mov ecx, 0xfeff
and ax, cx
mov ecx, 0x82
or ax, cx
mov word [edi + 0x14], ax
call fcn.00442010
call fcn.00441ee0
call fcn.00451560
push dword [0x4b49ac]
call ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x450a12
push 0
push dword [0x4b49ac]
mov byte [esp + 0x1b], 1
call ebx
jmp 0x450a12
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4b49a0]
mov eax, dword [eax + 0x6a]
mov dword [edi + 0x234], eax
mov eax, dword [0x4b49a0]
mov eax, dword [eax + 0x6e]
mov dword [edi + 0x238], eax
mov eax, dword [0x4b4b6c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x4b4b68]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
or eax, 8
push eax
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_17]
cmp dword [edi + 0x23c], 0
mov esi, dword [edi + 0x1c8]
jne 0x450aac
mov al, byte [0x4b49b4]
test al, 0x10
je 0x450a80
test al, al
lea eax, [esp + 0x18]
jns 0x450a7a
push 6
push 4
jmp 0x450a88
push 5
push 4
jmp 0x450a88
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 0x450680
call dword [sym.imp.MMFS2.dll_Ordinal_418]
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x450b86
test byte [edi + 0x14], 0x10
je 0x450bd4
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 0x450680
call dword [sym.imp.MMFS2.dll_Ordinal_418]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x450bdb
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
cmp dword [0x4b4a9c], 0
je 0x450bba
movzx eax, byte [edi + 0x7d]
mov ecx, dword [edi + 0x23c]
shl eax, 4
or eax, 5
push eax
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 [0x4b49b4], 0x10
push eax
push edx
push ecx
mov ecx, dword [edi + 0x23c]
je 0x450bfa
push dword [0x4b49ac]
jmp 0x450c00
movzx eax, word [edi + 0x1f8]
mov ecx, dword [0x4b4b6c]
mov edx, dword [0x4b4b68]
mov eax, 0x20
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
jmp 0x450b8e
push dword [0x4b49a8]
call dword [sym.imp.MMFS2.dll_Ordinal_750]
test eax, eax
je 0x450dcc
mov eax, dword [esp + 0x54]
mov dword [0x4b49e0], 1
mov dword [edi + 0x204], eax
cmp dword [0x4b49d0], 0
je 0x450c4b
push 0
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_34]
test eax, eax
je 0x450c4b
push dword [edi + 0x23c]
mov ecx, eax
call dword [sym.imp.MMFS2.dll_Ordinal_361]
cmp dword [esp + 0x28], 0
je 0x450cde
mov ecx, dword [edi + 0x23c]
test ecx, ecx
je 0x450cde
mov eax, dword [edi + 0x204]
add eax, 0xfffffff8
mov esi, 7
cmp eax, 0x18
ja case.0x450c7a.9
movzx eax, byte [eax + 0x450e50]
jmp dword [eax*4 + 0x450e38]
mov esi, 3
jmp case.0x450c7a.9
mov esi, 6
jmp case.0x450c7a.9
mov esi, 4
jmp case.0x450c7a.9
mov esi, 8
call dword [sym.imp.MMFS2.dll_Ordinal_493]
sub eax, 5
je 0x450caf
dec eax
jne 0x450cb2
or esi, 0x80
or esi, 0x10
movzx eax, word [0x4b49b4]
cmp esi, eax
je 0x450cde
push esi
push dword [0x4b499c]
call dword [sym.imp.MMFS2.dll_Ordinal_3]
mov word [0x4b49b4], ax
mov eax, dword [0x4b49b4]
and eax, 0xf
mov word [0x4b49b6], ax
mov ecx, dword [edi + 0x234]
sub ecx, dword [esp + 0x2c]
mov eax, dword [0x4b49a0]
add ecx, dword [0x4b4b6c]
push dword [esp + 0x14]
mov dword [eax + 0x6a], ecx
mov ecx, dword [edi + 0x238]
sub ecx, dword [esp + 0x40]
mov eax, dword [0x4b49a0]
add ecx, dword [0x4b4b68]
mov dword [eax + 0x6e], ecx
push dword [0x4b49a4]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_17]
call eax
push 4
push dword [0x4b4b68]
push dword [0x4b4b6c]
push 0
push 0
push 0
push dword [0x4b49a8]
call dword [sym.imp.USER32.dll_SetWindowPos]
test byte [0x4b49b4], 0x10
jne 0x450d6c
push dword [0x4b49a8]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x450d6c
push 3
push dword [0x4b49a8]
call ebx
push 1
push dword [0x4b49a8]
call ebx
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x450d9c
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x450d9c
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 [0x4b49ac]
call esi
push 1
push 0
push dword [0x4b49a8]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0046d696
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 0x450df3
push 5
push dword [0x4b49ac]
call ebx
test byte [edi + 0x1f8], 0x10
mov eax, dword [esp + 0x14]
je 0x450e08
or word [edi + 0x14], 0x10
or eax, 2
push eax
push dword [0x4b49a4]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_17]
call eax
call fcn.00442010
mov dword [0x4b49e0], 0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046d696
mov esp, ebp
pop ebp
ret