Function at 0x45d5e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5151a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edi
call fcn.0045d3b0
lea eax, [edi + 0x19d0]
push eax
push ecx
mov esi, esp
mov eax, edi
lea ebx, [edi + 0x3ad0]
lea ebp, [edi + 0xdd0]
mov dword [esp + 0x28], esp
call fcn.00458d20
mov ecx, ebx
mov edx, ebp
call fcn.004a7990
add esp, 8
call fcn.004c6f68
mov ecx, dword [eax + 4]
call fcn.004c231a
xor ebx, ebx
mov dword [esp + 0x40], ebx
cmp dword [edi + 0xdc4], ebx
jne 0x45d685
lea ecx, [esp + 0x17]
mov dword [esp + 0x40], 0xffffffff
call fcn.00405f50
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 + 0x7d04]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x298], ebx
jne 0x45d976
mov eax, dword [edi + 0x7cf8]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [edi + 0x7d84], bl
mov dword [edi + 0x29c], ebx
je 0x45d6c7
push eax
call esi
mov dword [edi + 0x7cf8], ebx
mov eax, dword [edi + 0x7cfc]
cmp eax, ebx
je 0x45d6da
push eax
call esi
mov dword [edi + 0x7cfc], ebx
mov ecx, dword [edi + 0xd04]
push ecx
call dword [sym.imp.exp.dll_int___cdecl_JMVSDK_OpenChannel_int_]
add esp, 4
test eax, eax
jne 0x45d976
mov eax, dword [edi + 0xd04]
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 0x45d71e
mov ecx, dword [edi + 0x198]
mov dword [edi + 0x8c], ecx
jmp 0x45d724
mov dword [edi + 0x8c], eax
cmp dword [edi + 0x8c], 1
mov ecx, dword [edi + 0x1ac]
mov edx, pe_nt_image_headers32
jne 0x45d788
cmp ecx, 1
mov dword [edi + 0xd34], 0x1e
jne 0x45d772
cmp dword [edi + 0x1b4], 2
mov dword [edi + 0x84], 0x280
jne 0x45d766
mov dword [edi + 0x88], 0xf0
jmp 0x45d7c6
mov dword [edi + 0x88], 0x1e0
jmp 0x45d7c6
mov dword [edi + 0x84], 0x140
mov dword [edi + 0x88], 0xf0
jmp 0x45d7c6
cmp ecx, 1
mov dword [edi + 0xd34], 0x19
jne 0x45d7b6
cmp dword [edi + 0x1b4], 2
mov dword [edi + 0x84], 0x2c0
je 0x45d7c0
mov dword [edi + 0x88], 0x240
jmp 0x45d7c6
mov dword [edi + 0x84], 0x160
mov dword [edi + 0x88], edx
mov eax, dword [edi + 8]
cmp dword [eax + 0x4c], ebx
je 0x45d7ed
cmp ecx, 1
mov eax, dword [eax + 0x50]
jne 0x45d7f9
cmp dword [edi + 0x88], edx
ja 0x45d7e4
lea eax, [eax + eax + 1]
jmp 0x45d7f9
lea eax, [eax*4 + 3]
jmp 0x45d7f9
cmp ecx, 1
jne 0x45d7f7
mov eax, dword [eax + 0x50]
jmp 0x45d7f9
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
jne 0x45d822
mov ecx, dword [edi + 0x194]
cmp ecx, eax
jbe 0x45d80e
mov eax, ecx
mov edx, dword [edi + 0x810]
mov dword [edi + 0x190], eax
mov dword [edi + 0x7cf4], edx
jmp 0x45d82e
mov dword [edi + 0x190], ecx
mov dword [edi + 0x7cf4], ebx
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x45d83d
mov dword [edi + 0x84], eax
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x45d84c
mov dword [edi + 0x88], eax
mov eax, dword [edi + 0xd34]
fild dword [edi + 0xd34]
test eax, eax
jge 0x45d862
fadd dword [0x540f90]
mov ecx, dword [edi + 0x190]
add ecx, 1
test ecx, ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
jge 0x45d87d
fadd dword [0x540f90]
fdivp st(1)
mov eax, dword [edi + 0x7cf4]
add eax, eax
add eax, eax
add eax, eax
push ebx
push ebx
push edi
push 0x45de40
push ebx
push ebx
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fst dword [edi + 0x74]
fimul dword [eax + 0x558bd0]
fidiv dword [eax + 0x558bd4]
fstp dword [edi + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x64
mov dword [edi + 0x7cf8], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x16c], ebx
je 0x45d8e2
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x10
mov ecx, edi
call eax
mov byte [edi + 0x809], 1
jmp 0x45d976
cmp dword [edi + 0xd8], ebx
je 0x45d976
lea esi, [esp + 0x18]
call fcn.004058c0
mov eax, esi
call fcn.00405a10
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.004059b0
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.004059e0
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 + 0x82]
cmp dword [edi + ecx*4], 2
lea esi, [edi + ecx*4]
jne 0x45d952
mov edx, dword [edi]
mov eax, dword [edx + 0x44]
push 0x40
mov ecx, edi
call eax
mov byte [edi + 0x808], 1
cmp dword [esi], 1
jne 0x45d976
mov edx, dword [edi]
mov eax, dword [edx + 0x44]
push 0x80
mov ecx, edi
mov byte [edi + 0x808], bl
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
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.00405f50
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