Function at 0x467030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d64a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edi
call fcn.00466e00
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.0045e710
mov ecx, ebx
mov edx, ebp
call fcn.004a7b80
add esp, 8
call fcn.004d8fd9
mov ecx, dword [eax + 4]
call fcn.004d436d
xor ebx, ebx
mov dword [esp + 0x40], ebx
cmp dword [edi + 0xde8], ebx
jne 0x4670d5
lea ecx, [esp + 0x17]
mov dword [esp + 0x40], 0xffffffff
call fcn.00405e40
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 0x4673ff
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 0x467117
push eax
call esi
mov dword [edi + 0x7cfc], ebx
mov eax, dword [edi + 0x7d00]
cmp eax, ebx
je 0x46712a
push eax
call esi
mov dword [edi + 0x7d00], ebx
mov eax, dword [edi + 0x7d40]
cmp eax, ebx
je 0x46713d
push eax
call esi
mov dword [edi + 0x7d40], ebx
mov eax, dword [edi + 0x7d44]
cmp eax, ebx
je 0x467150
push eax
call esi
mov dword [edi + 0x7d44], ebx
mov eax, dword [edi + 0x7d48]
cmp eax, ebx
je 0x467163
push eax
call esi
mov dword [edi + 0x7d48], ebx
mov eax, dword [edi + 0x7d4c]
cmp eax, ebx
je 0x467176
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 0x4673ff
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 0x4671ba
mov ecx, dword [edi + 0x1a0]
mov dword [edi + 0x8c], ecx
jmp 0x4671c0
mov dword [edi + 0x8c], eax
cmp dword [edi + 0x8c], 1
mov ecx, dword [edi + 0x1bc]
mov edx, 0x120
jne 0x467224
cmp ecx, 1
mov dword [edi + 0xd58], 0x1e
jne 0x46720e
cmp dword [edi + 0x1c4], 2
mov dword [edi + 0x84], 0x280
jne 0x467202
mov dword [edi + 0x88], 0xf0
jmp 0x467262
mov dword [edi + 0x88], 0x1e0
jmp 0x467262
mov dword [edi + 0x84], 0x140
mov dword [edi + 0x88], 0xf0
jmp 0x467262
cmp ecx, 1
mov dword [edi + 0xd58], 0x19
jne 0x467252
cmp dword [edi + 0x1c4], 2
mov dword [edi + 0x84], 0x2c0
je 0x46725c
mov dword [edi + 0x88], 0x240
jmp 0x467262
mov dword [edi + 0x84], 0x160
mov dword [edi + 0x88], edx
mov eax, dword [edi + 8]
cmp dword [eax + 0x4c], ebx
je 0x467289
cmp ecx, 1
mov eax, dword [eax + 0x50]
jne 0x467295
cmp dword [edi + 0x88], edx
ja 0x467280
lea eax, [eax + eax + 1]
jmp 0x467295
lea eax, [eax*4 + 3]
jmp 0x467295
cmp ecx, 1
jne 0x467293
mov eax, dword [eax + 0x50]
jmp 0x467295
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
jne 0x4672be
mov ecx, dword [edi + 0x19c]
cmp ecx, eax
jbe 0x4672aa
mov eax, ecx
mov edx, dword [edi + 0x824]
mov dword [edi + 0x198], eax
mov dword [edi + 0x7cf8], edx
jmp 0x4672ca
mov dword [edi + 0x198], ecx
mov dword [edi + 0x7cf8], ebx
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x4672d9
mov dword [edi + 0x84], eax
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x4672e8
mov dword [edi + 0x88], eax
mov eax, dword [edi + 0xd58]
fild dword [edi + 0xd58]
test eax, eax
jge 0x4672fe
fadd dword [0x610ebc]
mov ecx, dword [edi + 0x198]
add ecx, 1
test ecx, ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
jge 0x467319
fadd dword [0x610ebc]
fdivp st(1)
mov eax, dword [edi + 0x7cf8]
add eax, eax
add eax, eax
add eax, eax
push ebx
push ebx
push edi
push 0x467a30
push ebx
push ebx
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fst dword [edi + 0x74]
fimul dword [eax + 0x62b620]
fidiv dword [eax + 0x62b624]
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 0x4673f4
cmp dword [edi + 0xe0], ebx
je 0x4673ff
lea esi, [esp + 0x18]
call fcn.00405920
mov eax, esi
call fcn.00405a70
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00405a10
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00405a40
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 0x4673db
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 0x4673ff
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.00405e40
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