Function at 0x657d34
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc4
mov dword [esp], ecx
mov edi, edx
mov ebx, eax
test edi, edi
jne 0x657d49
mov edi, dword [ebx + 0x50]
cmp dword [esp], 0
jne 0x657d55
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
mov dword [esp + 8], edi
mov eax, dword [esp]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
xor edx, edx
xor eax, eax
call fcn.00410070
mov ecx, dword [esp]
mov edx, edi
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x11c]
push 0
call sub.user32.dll_GetDC
mov esi, eax
push esi
call sub.gdi32.dll_SaveDC
mov dword [esp + 4], eax
mov eax, ebx
call fcn.0052ed68
mov edx, 0xffffffec
call fcn.00412be0
or eax, 0x80000
push eax
mov eax, ebx
call fcn.0052ed68
mov edx, 0xffffffec
pop ecx
call fcn.00412ebc
push 2
push 0x7699a4
push 0x1fffffff
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x2b0]
call fcn.005072ac
call fcn.00501678
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push esi
mov eax, ebx
call fcn.0052ed68
push eax
mov eax, dword [0x76267c]
mov eax, dword [eax]
call eax
mov eax, dword [0x76999c]
call fcn.00656068
test al, al
je 0x657fce
call fcn.006bd51c
test al, al
je 0x657fce
mov eax, dword [0x76999c]
cmp byte [eax + 0xc4], 0
jne 0x657fce
mov eax, dword [0x76999c]
call fcn.00656070
test al, al
je 0x657e69
imul eax, dword [ebx + 0x2b8], 0x4b
mov edx, dword [0x762adc]
mov edx, dword [edx]
mov edx, dword [edx + 0x789c]
cmp dword [edx + eax*4 + 0x40], 0x64
je 0x657e69
imul eax, dword [ebx + 0x2b8], 0x4b
mov edx, dword [0x762adc]
mov edx, dword [edx]
mov edx, dword [edx + 0x789c]
mov ebp, dword [edx + eax*4 + 0x40]
jmp 0x657e6b
xor ebp, ebp
mov edx, ebp
mov eax, 0x64
call fcn.0043b044
mov edx, eax
xor eax, eax
call fcn.0043b10c
mov ebp, eax
test byte [ebx + 0x1c], 8
jne 0x658045
mov edx, 1
mov eax, 0xc
call fcn.0043b10c
mov edi, eax
mov eax, 0x64
sub eax, ebp
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fld xword [0x658080]
fmulp st(1)
call fcn.00406ee8
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
fild qword [esp + 0x30]
mov dword [esp + 0x38], edi
fild dword [esp + 0x38]
fdivp st(1)
fstp qword [esp + 0x18]
wait
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov byte [0x7699a6], 0
push 2
push 0x7699a4
push 0x1fffffff
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x2b0]
call fcn.005072ac
call fcn.00501678
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push esi
mov eax, ebx
call fcn.0052ed68
push eax
mov eax, dword [0x76267c]
mov eax, dword [eax]
call eax
push 4
mov eax, ebx
call fcn.0052ed68
push eax
call sub.user32.dll_ShowWindow
push 0x1a0
push 0
push 0
mov eax, ebx
call fcn.0052ed68
push eax
call sub.user32.dll_RedrawWindow
dec edi
test edi, edi
jl 0x658045
inc edi
mov dword [esp + 0x28], edi
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
fld qword [esp + 0x20]
fadd qword [esp + 0x18]
fstp qword [esp + 0x20]
wait
fld qword [esp + 0x20]
call fcn.00406ee8
mov byte [0x7699a6], al
test byte [ebx + 0x1c], 8
jne 0x658045
push 2
push 0x7699a4
push 0x1fffffff
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x2b0]
call fcn.005072ac
call fcn.00501678
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push esi
mov eax, ebx
call fcn.0052ed68
push eax
mov eax, dword [0x76267c]
mov eax, dword [eax]
call eax
call sub.kernel32.dll_GetTickCount_1
lea edx, [edi + 0xc]
cmp eax, edx
jb 0x657fba
dec dword [esp + 0x28]
jne 0x657f53
jmp 0x658045
call fcn.006bd51c
test al, al
je 0x65802a
mov byte [0x7699a6], 0xff
push 2
push 0x7699a4
push 0x1fffffff
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x2b0]
call fcn.005072ac
call fcn.00501678
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push esi
mov eax, ebx
call fcn.0052ed68
push eax
mov eax, dword [0x76267c]
mov eax, dword [eax]
call eax
push 4
mov eax, ebx
call fcn.0052ed68
push eax
call sub.user32.dll_ShowWindow
jmp 0x658045
push 0x52
mov eax, dword [esp + 4]
push eax
push edi
push 0
push 0
push 0xffffffffffffffff
mov eax, ebx
call fcn.0052ed68
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [0x76999c]
mov byte [eax + 0xc4], 1
mov eax, dword [esp + 4]
push eax
push esi
call sub.gdi32.dll_RestoreDC
push esi
push 0
call sub.user32.dll_ReleaseDC
cmp dword [ebx + 0x2b0], 0
je 0x658078
lea eax, [ebx + 0x2b0]
call fcn.0042bdf8
add esp, 0x3c
pop ebp
pop edi
pop esi
pop ebx
ret