Function at 0x466e00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d61b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edi
call fcn.00466bd0
lea eax, [edi + 0x19f4]
push eax
push ecx
mov esi, esp
mov eax, edi
lea ebx, [edi + 0x3af4]
lea ebp, [edi + 0xdf4]
mov dword [esp + 0x28], esp
call fcn.0045e570
mov ecx, ebx
mov edx, ebp
call fcn.004ba7e0
add esp, 8
call fcn.004d8c67
mov ecx, dword [eax + 4]
call fcn.004d4001
xor ebx, ebx
mov dword [esp + 0x40], ebx
cmp dword [edi + 0xde8], ebx
jne 0x466ea5
lea ecx, [esp + 0x17]
mov dword [esp + 0x40], 0xffffffff
call fcn.00405f90
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x7d08]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x2ac], ebx
jne 0x4671cf
mov eax, dword [edi + 0x7cfc]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [edi + 0x7da0], bl
mov dword [edi + 0x2b4], ebx
je 0x466ee7
push eax
call esi
mov dword [edi + 0x7cfc], ebx
mov eax, dword [edi + 0x7d00]
cmp eax, ebx
je 0x466efa
push eax
call esi
mov dword [edi + 0x7d00], ebx
mov eax, dword [edi + 0x7d40]
cmp eax, ebx
je 0x466f0d
push eax
call esi
mov dword [edi + 0x7d40], ebx
mov eax, dword [edi + 0x7d44]
cmp eax, ebx
je 0x466f20
push eax
call esi
mov dword [edi + 0x7d44], ebx
mov eax, dword [edi + 0x7d48]
cmp eax, ebx
je 0x466f33
push eax
call esi
mov dword [edi + 0x7d48], ebx
mov eax, dword [edi + 0x7d4c]
cmp eax, ebx
je 0x466f46
push eax
call esi
mov dword [edi + 0x7d4c], ebx
mov ecx, dword [edi + 0xd18]
push ecx
call dword [sym.imp.exp.dll_int___cdecl_JMVSDK_OpenChannel_int_]
add esp, 4
test eax, eax
jne 0x4671cf
mov eax, dword [edi + 0xd18]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.exp.dll_void___cdecl_JMVSDK_GetChannelHWConfig_int__struct__CHANNEL_HARDWARE_CONFIG__]
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, 0xffffffff
jne 0x466f8a
mov ecx, dword [edi + 0x1a0]
mov dword [edi + 0x8c], ecx
jmp 0x466f90
mov dword [edi + 0x8c], eax
cmp dword [edi + 0x8c], 1
mov ecx, dword [edi + 0x1bc]
mov edx, 0x120
jne 0x466ff4
cmp ecx, 1
mov dword [edi + 0xd58], 0x1e
jne 0x466fde
cmp dword [edi + 0x1c4], 2
mov dword [edi + 0x84], 0x280
jne 0x466fd2
mov dword [edi + 0x88], 0xf0
jmp 0x467032
mov dword [edi + 0x88], 0x1e0
jmp 0x467032
mov dword [edi + 0x84], 0x140
mov dword [edi + 0x88], 0xf0
jmp 0x467032
cmp ecx, 1
mov dword [edi + 0xd58], 0x19
jne 0x467022
cmp dword [edi + 0x1c4], 2
mov dword [edi + 0x84], 0x2c0
je 0x46702c
mov dword [edi + 0x88], 0x240
jmp 0x467032
mov dword [edi + 0x84], 0x160
mov dword [edi + 0x88], edx
mov eax, dword [edi + 8]
cmp dword [eax + 0x4c], ebx
je 0x467059
cmp ecx, 1
mov eax, dword [eax + 0x50]
jne 0x467065
cmp dword [edi + 0x88], edx
ja 0x467050
lea eax, [eax + eax + 1]
jmp 0x467065
lea eax, [eax*4 + 3]
jmp 0x467065
cmp ecx, 1
jne 0x467063
mov eax, dword [eax + 0x50]
jmp 0x467065
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
jne 0x46708e
mov ecx, dword [edi + 0x19c]
cmp ecx, eax
jbe 0x46707a
mov eax, ecx
mov edx, dword [edi + 0x824]
mov dword [edi + 0x198], eax
mov dword [edi + 0x7cf8], edx
jmp 0x46709a
mov dword [edi + 0x198], ecx
mov dword [edi + 0x7cf8], ebx
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x4670a9
mov dword [edi + 0x84], eax
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x4670b8
mov dword [edi + 0x88], eax
mov eax, dword [edi + 0xd58]
fild dword [edi + 0xd58]
test eax, eax
jge 0x4670ce
fadd dword [0x6116a8]
mov ecx, dword [edi + 0x198]
add ecx, 1
test ecx, ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
jge 0x4670e9
fadd dword [0x6116a8]
fdivp st(1)
mov eax, dword [edi + 0x7cf8]
add eax, eax
add eax, eax
add eax, eax
push ebx
push ebx
push edi
push 0x467800
push ebx
push ebx
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fst dword [edi + 0x74]
fimul dword [eax + 0x62c600]
fidiv dword [eax + 0x62c604]
fstp dword [edi + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x64
mov dword [edi + 0x7cfc], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x174], ebx
jne 0x4671c4
cmp dword [edi + 0xe0], ebx
je 0x4671cf
lea esi, [esp + 0x18]
call fcn.00405a20
mov eax, esi
call fcn.00405b70
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00405b10
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00405b40
mov ecx, eax
lea edx, [esi + esi*2]
lea esi, [ebp + edx*8]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + esi*2 + 0x88]
cmp dword [edi + ecx*4], 2
lea esi, [edi + ecx*4]
jne 0x4671ab
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x40
mov ecx, edi
call eax
mov byte [edi + 0x820], 1
cmp dword [esi], 1
jne 0x4671cf
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x80
mov ecx, edi
mov byte [edi + 0x820], bl
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
push 0x10
mov ecx, edi
call eax
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x17]
mov dword [esp + 0x40], 0xffffffff
call fcn.00405f90
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret