Function at 0x4643f0
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov dword [0x5ba8f0], eax
mov eax, dword [esp + 0x18]
mov dword [0x5ba94c], eax
mov dword [0x5ba948], edx
mov edx, dword [esp + 0x20]
mov dword [0x5ba938], ecx
mov ecx, dword [esp + 0x1c]
mov dword [0x5ba944], edx
mov dword [0x5ba940], ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 8]
cdq
sub eax, edx
sub esp, 0x60
push ebx
mov ebx, eax
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov edi, dword [ecx]
sar ebx, 1
add ebx, edi
mov dword [0x5ba8f4], ebx
mov eax, dword [ecx + 0xc]
mov ebp, dword [ecx + 4]
cdq
sub eax, edx
sar eax, 1
add eax, ebp
mov dword [0x5ba8f8], eax
mov eax, dword [esi + 8]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esi]
sar edi, 1
add edi, eax
mov dword [0x5ba918], edi
mov eax, dword [esi + 0xc]
cdq
sub eax, edx
mov edx, dword [esi + 4]
mov ebp, eax
sar ebp, 1
add ebp, edx
mov dword [0x5ba900], ebp
mov eax, dword [ecx]
test eax, eax
mov dword [0x5ba908], eax
mov edx, dword [ecx + 4]
mov dword [0x5ba90c], edx
mov edx, dword [ecx + 8]
mov dword [0x5ba910], edx
mov ecx, dword [ecx + 0xc]
mov dword [0x5ba914], ecx
jge 0x4644c7
mov ecx, edx
add ecx, eax
mov dword [0x5ba908], 0
mov eax, dword [0x5ba908]
mov dword [0x5ba910], ecx
mov ecx, dword [0x5ba90c]
test ecx, ecx
jge 0x4644e1
add dword [0x5ba914], ecx
mov dword [0x5ba90c], 0
mov edx, dword [esp + 0x74]
mov ecx, dword [edx]
mov edx, dword [0x5ba910]
add edx, eax
cmp edx, ecx
jle 0x4644fb
sub ecx, eax
mov dword [0x5ba910], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [0x5ba90c]
mov edx, dword [0x5ba914]
mov eax, dword [eax + 4]
add edx, ecx
cmp edx, eax
jle 0x46451b
sub eax, ecx
mov dword [0x5ba914], eax
mov eax, dword [0x5ba910]
test eax, eax
jle 0x4649ac
mov eax, dword [0x5ba914]
test eax, eax
jle 0x4649ac
mov eax, dword [esi]
test eax, eax
mov dword [0x5ba920], eax
mov ecx, dword [esi + 4]
mov dword [0x5ba924], ecx
mov edx, dword [esi + 8]
mov dword [0x5ba928], edx
mov esi, dword [esi + 0xc]
mov dword [0x5ba92c], esi
jge 0x464572
add edx, eax
mov dword [0x5ba920], 0
mov eax, dword [0x5ba920]
mov dword [0x5ba928], edx
test ecx, ecx
jge 0x464588
add esi, ecx
mov dword [0x5ba92c], esi
mov dword [0x5ba924], 0
mov ecx, dword [esp + 0x7c]
mov ecx, dword [ecx]
add edx, eax
cmp edx, ecx
jle 0x46459c
sub ecx, eax
mov dword [0x5ba928], ecx
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 4]
mov ecx, dword [0x5ba924]
lea edx, [esi + ecx]
cmp edx, eax
jle 0x4645ba
sub eax, ecx
mov esi, eax
mov dword [0x5ba92c], esi
mov eax, dword [0x5ba928]
test eax, eax
jle 0x4649ac
test esi, esi
jle 0x4649ac
fld qword [0x4a5660]
fdiv qword [esp + 0x84]
call fcn.004682e4
mov ecx, eax
sub edi, dword [0x5ba920]
imul edi, ecx
mov eax, ecx
cdq
shl ebx, 0xe
sub eax, edx
sub ebx, edi
mov edi, dword [0x5ba908]
sar eax, 1
mov edx, edi
lea eax, [ebx + eax - 0x2000]
shl edx, 0xe
cmp eax, edx
mov dword [0x5ba930], ecx
mov dword [0x5ba8fc], eax
jge 0x46463f
inc dword [0x5ba920]
mov ebx, dword [0x5ba928]
dec ebx
add eax, ecx
test ebx, ebx
mov dword [0x5ba928], ebx
jle 0x46498e
cmp eax, edx
jl 0x464619
mov dword [0x5ba8fc], eax
mov ebx, dword [0x5ba910]
mov edx, dword [0x5ba928]
add ebx, edi
shl ebx, 0xe
lea edi, [ebx - 0x4000]
dec edx
mov ebx, edx
imul ebx, ecx
add ebx, eax
cmp ebx, edi
jl 0x46467c
test edx, edx
mov dword [0x5ba928], edx
jle 0x4649ac
dec edx
mov ebx, edx
imul ebx, ecx
add ebx, eax
cmp ebx, edi
jge 0x464662
fld qword [0x4a5660]
fdiv qword [esp + 0x8c]
call fcn.004682e4
mov edi, dword [0x5ba924]
mov ecx, eax
mov eax, dword [0x5ba8f8]
shl eax, 0xe
sub ebp, edi
mov ebx, eax
imul ebp, ecx
mov eax, ecx
cdq
sub eax, edx
sub ebx, ebp
sar eax, 1
lea eax, [ebx + eax - 0x2000]
mov ebx, dword [0x5ba90c]
mov edx, ebx
shl edx, 0xe
cmp eax, edx
mov dword [0x5ba934], ecx
mov dword [0x5ba904], eax
jge 0x464829
inc edi
dec esi
xor ebp, ebp
add eax, ecx
cmp esi, ebp
jle 0x46499b
cmp eax, edx
jl 0x4646d3
mov dword [0x5ba904], eax
mov dword [0x5ba92c], esi
mov dword [0x5ba924], edi
mov edi, dword [0x5ba914]
add edi, ebx
lea edx, [esi - 1]
mov ebx, edx
imul ebx, ecx
shl edi, 0xe
add edi, 0xffffc000
add ebx, eax
cmp ebx, edi
jl 0x464733
mov esi, edx
cmp esi, ebp
mov dword [0x5ba92c], esi
jle 0x4649ac
lea edx, [esi - 1]
mov ebx, edx
imul ebx, ecx
add ebx, eax
cmp ebx, edi
jge 0x464715
cmp dword [0x5ba914], 0x64
jl 0x464974
call fcn.00459900
cmp eax, 8
jl 0x464830
mov esi, dword [0x5ba92c]
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
lea ecx, [eax + eax]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
lea ecx, [eax + eax*2]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
lea ecx, [eax*4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
lea ecx, [eax + eax*4]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
lea ecx, [eax + eax*2]
shl ecx, 1
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
lea ecx, [eax*8]
sub ecx, eax
mov dword [esp + 0x30], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
lea edi, [esp + 0x10]
lea esi, [esp + 0x30]
mov ebx, 8
push 0
push 0
push esi
push fcn.004649c0
push 0
push 0
call fcn.0046a69a
add esp, 0x18
push 2
push eax
mov dword [edi], eax
call ebp
add esi, 8
add edi, 4
dec ebx
jne 0x4647d0
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x10]
mov edi, 8
mov ecx, dword [esi]
push ecx
call ebx
add esi, 4
dec edi
jne 0x464816
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
xor ebp, ebp
jmp 0x4646f6
cmp eax, 4
jl 0x4648dc
mov esi, dword [0x5ba92c]
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + eax]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [eax + eax*2]
mov dword [esp + 0x30], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea edi, [esp + 0x10]
lea esi, [esp + 0x30]
mov ebx, 4
push 0
push 0
push esi
push fcn.004649c0
push 0
push 0
call fcn.0046a69a
add esp, 0x18
push 2
push eax
mov dword [edi], eax
call ebp
add esi, 8
add edi, 4
dec ebx
jne 0x464883
push 0xffffffffffffffff
push 1
lea edx, [esp + 0x18]
push edx
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x10]
mov edi, 4
mov eax, dword [esi]
push eax
call ebx
add esi, 4
dec edi
jne 0x4648c9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
cmp eax, 2
jl 0x46496e
mov ecx, dword [0x5ba92c]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
lea edi, [esp + 0x10]
lea esi, [esp + 0x30]
mov ebx, 2
push 0
push 0
push esi
push fcn.004649c0
push 0
push 0
call fcn.0046a69a
add esp, 0x18
push 2
push eax
mov dword [edi], eax
call ebp
add esi, 8
add edi, 4
dec ebx
jne 0x464915
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x18]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x10]
mov edi, 2
mov edx, dword [esi]
push edx
call ebx
add esi, 4
dec edi
jne 0x46495b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov esi, dword [0x5ba92c]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], esi
call fcn.004649c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
pop edi
pop esi
pop ebp
mov dword [0x5ba8fc], eax
pop ebx
add esp, 0x60
ret
mov dword [0x5ba904], eax
mov dword [0x5ba92c], esi
mov dword [0x5ba924], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret