Function at 0x4066f9
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.004064c6
cmp eax, dword [ebx + 0x168]
lea ecx, [ebx + 0x168]
mov dword [esp + 0x10], eax
je 0x4069b2
and dword [esp + 0x18], 0
mov ebp, dword [0x4645c0]
cmp eax, 1
mov dword [ecx], eax
mov dword [esp + 0x14], 0xc
jne 0x406800
push 0x471898
push dword [ebx + 0x94]
call dword [0x464570]
push 0x44f
mov dword [esp + 0x20], 0x8000
push dword [ebx + 4]
call ebp
sub esp, 0x10
lea esi, [esp + 0x24]
mov edi, esp
lea ecx, [ebx + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0043eed9
push 0x44f
push dword [ebx + 4]
call ebp
push str.OmhV_f
push eax
call dword [0x464570]
push 0x44e
mov dword [esp + 0x1c], 1
push dword [ebx + 4]
mov dword [esp + 0x1c], 0xe
mov dword [esp + 0x24], 0x8000
call ebp
sub esp, 0x10
lea esi, [esp + 0x24]
mov edi, esp
lea ecx, [ebx + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0043eed9
push 0x44e
push dword [ebx + 4]
call ebp
push 0x471848
push eax
call dword [0x464570]
push 0x424
push dword [ebx + 4]
call ebp
mov esi, dword [0x464588]
push 5
push eax
call esi
push 0x425
push dword [ebx + 4]
call ebp
push 0
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, 3
jne 0x4068ce
push 0x47183c
push dword [ebx + 0x94]
call dword [0x464570]
push 0x44f
mov dword [esp + 0x20], 0x35da
push dword [ebx + 4]
call ebp
sub esp, 0x10
lea esi, [esp + 0x24]
mov edi, esp
lea ecx, [ebx + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0043eed9
push 0x44f
push dword [ebx + 4]
call ebp
push 0x471800
push eax
call dword [0x464570]
push 0x44e
mov dword [esp + 0x1c], 1
push dword [ebx + 4]
mov dword [esp + 0x1c], 0xe
mov dword [esp + 0x24], 0x35da
call ebp
sub esp, 0x10
lea esi, [esp + 0x24]
mov edi, esp
lea ecx, [ebx + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0043eed9
push 0x44e
push dword [ebx + 4]
call ebp
push 0x4717f8
push eax
call dword [0x464570]
push 0x424
push dword [ebx + 4]
call ebp
mov esi, dword [0x464588]
push 0
push eax
call esi
push 0x425
push dword [ebx + 4]
call ebp
push 5
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x406998
push 0x47183c
push dword [ebx + 0x94]
call dword [0x464570]
push 0x44f
mov dword [esp + 0x20], 0x3294f6
push dword [ebx + 4]
call ebp
sub esp, 0x10
lea esi, [esp + 0x24]
mov edi, esp
lea ecx, [ebx + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0043eed9
push 0x44f
push dword [ebx + 4]
call ebp
push 0x4717bc
push eax
call dword [0x464570]
push 0x44e
mov dword [esp + 0x1c], 1
push dword [ebx + 4]
mov dword [esp + 0x1c], 0xe
mov dword [esp + 0x24], 0x3294f6
call ebp
sub esp, 0x10
lea esi, [esp + 0x24]
mov edi, esp
lea ecx, [ebx + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0043eed9
push 0x44e
push dword [ebx + 4]
call ebp
push 0x4717b0
push eax
call dword [0x464570]
push 0x424
push dword [ebx + 4]
call ebp
mov esi, dword [0x464588]
push 0
push eax
call esi
push 0x425
push dword [ebx + 4]
call ebp
push 5
push eax
call esi
push 0x41a
push dword [ebx + 4]
call ebp
push 0x105
push 0
push 0
push eax
call dword [0x464504]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret