Function at 0x45ff50
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov dword [0x5b3200], eax
mov eax, dword [esp + 0x18]
mov dword [0x5b325c], eax
mov dword [0x5b3258], edx
mov edx, dword [esp + 0x20]
mov dword [0x5b3248], ecx
mov ecx, dword [esp + 0x1c]
mov dword [0x5b3254], edx
mov dword [0x5b3250], 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 [0x5b3204], ebx
mov eax, dword [ecx + 0xc]
mov ebp, dword [ecx + 4]
cdq
sub eax, edx
sar eax, 1
add eax, ebp
mov dword [0x5b3208], 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 [0x5b3228], 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 [0x5b3210], ebp
mov eax, dword [ecx]
test eax, eax
mov dword [0x5b3218], eax
mov edx, dword [ecx + 4]
mov dword [0x5b321c], edx
mov edx, dword [ecx + 8]
mov dword [0x5b3220], edx
mov ecx, dword [ecx + 0xc]
mov dword [0x5b3224], ecx
jge 0x460027
mov ecx, edx
add ecx, eax
mov dword [0x5b3218], 0
mov eax, dword [0x5b3218]
mov dword [0x5b3220], ecx
mov ecx, dword [0x5b321c]
test ecx, ecx
jge 0x460041
add dword [0x5b3224], ecx
mov dword [0x5b321c], 0
mov edx, dword [esp + 0x74]
mov ecx, dword [edx]
mov edx, dword [0x5b3220]
add edx, eax
cmp edx, ecx
jle 0x46005b
sub ecx, eax
mov dword [0x5b3220], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [0x5b321c]
mov edx, dword [0x5b3224]
mov eax, dword [eax + 4]
add edx, ecx
cmp edx, eax
jle 0x46007b
sub eax, ecx
mov dword [0x5b3224], eax
mov eax, dword [0x5b3220]
test eax, eax
jle 0x46050c
mov eax, dword [0x5b3224]
test eax, eax
jle 0x46050c
mov eax, dword [esi]
test eax, eax
mov dword [0x5b3230], eax
mov ecx, dword [esi + 4]
mov dword [0x5b3234], ecx
mov edx, dword [esi + 8]
mov dword [0x5b3238], edx
mov esi, dword [esi + 0xc]
mov dword [0x5b323c], esi
jge 0x4600d2
add edx, eax
mov dword [0x5b3230], 0
mov eax, dword [0x5b3230]
mov dword [0x5b3238], edx
test ecx, ecx
jge 0x4600e8
add esi, ecx
mov dword [0x5b323c], esi
mov dword [0x5b3234], 0
mov ecx, dword [esp + 0x7c]
mov ecx, dword [ecx]
add edx, eax
cmp edx, ecx
jle 0x4600fc
sub ecx, eax
mov dword [0x5b3238], ecx
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 4]
mov ecx, dword [0x5b3234]
lea edx, [esi + ecx]
cmp edx, eax
jle 0x46011a
sub eax, ecx
mov esi, eax
mov dword [0x5b323c], esi
mov eax, dword [0x5b3238]
test eax, eax
jle 0x46050c
test esi, esi
jle 0x46050c
fld qword [0x49f520]
fdiv qword [esp + 0x84]
call fcn.00464204
mov ecx, eax
sub edi, dword [0x5b3230]
imul edi, ecx
mov eax, ecx
cdq
shl ebx, 0xe
sub eax, edx
sub ebx, edi
mov edi, dword [0x5b3218]
sar eax, 1
mov edx, edi
lea eax, [ebx + eax - 0x2000]
shl edx, 0xe
cmp eax, edx
mov dword [0x5b3240], ecx
mov dword [0x5b320c], eax
jge 0x46019f
inc dword [0x5b3230]
mov ebx, dword [0x5b3238]
dec ebx
add eax, ecx
test ebx, ebx
mov dword [0x5b3238], ebx
jle 0x4604ee
cmp eax, edx
jl 0x460179
mov dword [0x5b320c], eax
mov ebx, dword [0x5b3220]
mov edx, dword [0x5b3238]
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 0x4601dc
test edx, edx
mov dword [0x5b3238], edx
jle 0x46050c
dec edx
mov ebx, edx
imul ebx, ecx
add ebx, eax
cmp ebx, edi
jge 0x4601c2
fld qword [0x49f520]
fdiv qword [esp + 0x8c]
call fcn.00464204
mov edi, dword [0x5b3234]
mov ecx, eax
mov eax, dword [0x5b3208]
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 [0x5b321c]
mov edx, ebx
shl edx, 0xe
cmp eax, edx
mov dword [0x5b3244], ecx
mov dword [0x5b3214], eax
jge 0x460389
inc edi
dec esi
xor ebp, ebp
add eax, ecx
cmp esi, ebp
jle 0x4604fb
cmp eax, edx
jl 0x460233
mov dword [0x5b3214], eax
mov dword [0x5b323c], esi
mov dword [0x5b3234], edi
mov edi, dword [0x5b3224]
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 0x460293
mov esi, edx
cmp esi, ebp
mov dword [0x5b323c], esi
jle 0x46050c
lea edx, [esi - 1]
mov ebx, edx
imul ebx, ecx
add ebx, eax
cmp ebx, edi
jge 0x460275
cmp dword [0x5b3224], 0x64
jl 0x4604d4
call fcn.0045e330
cmp eax, 8
jl 0x460390
mov esi, dword [0x5b323c]
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 [0x49f220]
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.00460520
push 0
push 0
call fcn.00465d04
add esp, 0x18
push 2
push eax
mov dword [edi], eax
call ebp
add esi, 8
add edi, 4
dec ebx
jne 0x460330
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x18]
push eax
push 8
call dword [0x49f1e0]
mov ebx, dword [0x49f18c]
lea esi, [esp + 0x10]
mov edi, 8
mov ecx, dword [esi]
push ecx
call ebx
add esi, 4
dec edi
jne 0x460376
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
xor ebp, ebp
jmp 0x460256
cmp eax, 4
jl 0x46043c
mov esi, dword [0x5b323c]
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 [0x49f220]
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.00460520
push 0
push 0
call fcn.00465d04
add esp, 0x18
push 2
push eax
mov dword [edi], eax
call ebp
add esi, 8
add edi, 4
dec ebx
jne 0x4603e3
push 0xffffffffffffffff
push 1
lea edx, [esp + 0x18]
push edx
push 4
call dword [0x49f1e0]
mov ebx, dword [0x49f18c]
lea esi, [esp + 0x10]
mov edi, 4
mov eax, dword [esi]
push eax
call ebx
add esi, 4
dec edi
jne 0x460429
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
cmp eax, 2
jl 0x4604ce
mov ecx, dword [0x5b323c]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], ebp
mov ebp, dword [0x49f220]
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.00460520
push 0
push 0
call fcn.00465d04
add esp, 0x18
push 2
push eax
mov dword [edi], eax
call ebp
add esi, 8
add edi, 4
dec ebx
jne 0x460475
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x18]
push ecx
push 2
call dword [0x49f1e0]
mov ebx, dword [0x49f18c]
lea esi, [esp + 0x10]
mov edi, 2
mov edx, dword [esi]
push edx
call ebx
add esi, 4
dec edi
jne 0x4604bb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov esi, dword [0x5b323c]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], esi
call fcn.00460520
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
pop edi
pop esi
pop ebp
mov dword [0x5b320c], eax
pop ebx
add esp, 0x60
ret
mov dword [0x5b3214], eax
mov dword [0x5b323c], esi
mov dword [0x5b3234], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret