Function at 0x455500
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov dword [0x57edd8], eax
mov eax, dword [esp + 0x18]
mov dword [0x57ee34], eax
mov dword [0x57ee30], edx
mov edx, dword [esp + 0x20]
mov dword [0x57ee20], ecx
mov ecx, dword [esp + 0x1c]
mov dword [0x57ee2c], edx
mov dword [0x57ee28], ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 8]
cdq
sub eax, edx
sub esp, 0x30
push ebx
mov ebx, eax
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, dword [ecx]
sar ebx, 1
add ebx, edi
mov dword [0x57eddc], ebx
mov eax, dword [ecx + 0xc]
mov ebp, dword [ecx + 4]
cdq
sub eax, edx
sar eax, 1
add eax, ebp
mov dword [0x57ede0], 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 [0x57ee00], 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 [0x57ede8], ebp
mov eax, dword [ecx]
test eax, eax
mov dword [0x57edf0], eax
mov edx, dword [ecx + 4]
mov dword [0x57edf4], edx
mov edx, dword [ecx + 8]
mov dword [0x57edf8], edx
mov ecx, dword [ecx + 0xc]
mov dword [0x57edfc], ecx
jge 0x4555d7
mov ecx, edx
add ecx, eax
mov dword [0x57edf0], 0
mov eax, dword [0x57edf0]
mov dword [0x57edf8], ecx
mov ecx, dword [0x57edf4]
test ecx, ecx
jge 0x4555f1
add dword [0x57edfc], ecx
mov dword [0x57edf4], 0
mov edx, dword [esp + 0x44]
mov ecx, dword [edx]
mov edx, dword [0x57edf8]
add edx, eax
cmp edx, ecx
jle 0x45560b
sub ecx, eax
mov dword [0x57edf8], ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [0x57edf4]
mov edx, dword [0x57edfc]
mov eax, dword [eax + 4]
add edx, ecx
cmp edx, eax
jle 0x45562b
sub eax, ecx
mov dword [0x57edfc], eax
mov eax, dword [0x57edf8]
test eax, eax
jle 0x4559ce
mov eax, dword [0x57edfc]
test eax, eax
jle 0x4559ce
mov eax, dword [esi]
test eax, eax
mov dword [0x57ee08], eax
mov ecx, dword [esi + 4]
mov dword [0x57ee0c], ecx
mov edx, dword [esi + 8]
mov dword [0x57ee10], edx
mov esi, dword [esi + 0xc]
mov dword [0x57ee14], esi
jge 0x455682
add edx, eax
mov dword [0x57ee08], 0
mov eax, dword [0x57ee08]
mov dword [0x57ee10], edx
test ecx, ecx
jge 0x455698
add esi, ecx
mov dword [0x57ee14], esi
mov dword [0x57ee0c], 0
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx]
add edx, eax
cmp edx, ecx
jle 0x4556ac
sub ecx, eax
mov dword [0x57ee10], ecx
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
mov ecx, dword [0x57ee0c]
lea edx, [esi + ecx]
cmp edx, eax
jle 0x4556ca
sub eax, ecx
mov esi, eax
mov dword [0x57ee14], esi
mov eax, dword [0x57ee10]
test eax, eax
jle 0x4559ce
test esi, esi
jle 0x4559ce
fld qword [0x482520]
fdiv qword [esp + 0x54]
call fcn.00458bf0
mov ecx, eax
sub edi, dword [0x57ee08]
imul edi, ecx
mov eax, ecx
cdq
shl ebx, 0xe
sub eax, edx
sub ebx, edi
mov edi, dword [0x57edf0]
sar eax, 1
mov edx, edi
lea eax, [ebx + eax - 0x2000]
shl edx, 0xe
cmp eax, edx
mov dword [0x57ee18], ecx
mov dword [0x57ede4], eax
jge 0x45574c
inc dword [0x57ee08]
mov ebx, dword [0x57ee10]
dec ebx
add eax, ecx
test ebx, ebx
mov dword [0x57ee10], ebx
jle 0x4559b0
cmp eax, edx
jl 0x455726
mov dword [0x57ede4], eax
mov ebx, dword [0x57edf8]
mov edx, dword [0x57ee10]
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 0x455789
test edx, edx
mov dword [0x57ee10], edx
jle 0x4559ce
dec edx
mov ebx, edx
imul ebx, ecx
add ebx, eax
cmp ebx, edi
jge 0x45576f
fld qword [0x482520]
fdiv qword [esp + 0x5c]
call fcn.00458bf0
mov edi, dword [0x57ee0c]
mov ecx, eax
mov eax, dword [0x57ede0]
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 [0x57edf4]
mov edx, ebx
shl edx, 0xe
cmp eax, edx
mov dword [0x57ee1c], ecx
mov dword [0x57edec], eax
jge 0x4557fa
inc edi
dec esi
add eax, ecx
test esi, esi
jle 0x4559bd
cmp eax, edx
jl 0x4557d9
mov dword [0x57edec], eax
mov dword [0x57ee14], esi
mov dword [0x57ee0c], edi
mov ebp, dword [0x57edfc]
lea edi, [ebx + ebp]
lea edx, [esi - 1]
mov ebx, edx
imul ebx, ecx
shl edi, 0xe
add edi, 0xffffc000
add ebx, eax
cmp ebx, edi
jl 0x455838
mov esi, edx
test esi, esi
mov dword [0x57ee14], esi
jle 0x4559ce
lea edx, [esi - 1]
mov ebx, edx
imul ebx, ecx
add ebx, eax
cmp ebx, edi
jge 0x45581a
cmp ebp, 0x64
jl 0x455992
call fcn.00453400
cmp eax, 4
jl 0x4558f6
mov esi, dword [0x57ee14]
mov ebp, dword [0x482208]
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + eax]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [eax + eax*2]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea edi, [esp + 0x10]
lea esi, [esp + 0x20]
mov ebx, 4
push 0
push 0
push esi
push fcn.00455010
push 0
push 0
call fcn.00459ec2
add esp, 0x18
push 1
push eax
mov dword [edi], eax
call ebp
add esi, 8
add edi, 4
dec ebx
jne 0x45589d
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x18]
push eax
push 4
call dword [0x48220c]
mov ebx, dword [0x482134]
lea esi, [esp + 0x10]
mov edi, 4
mov ecx, dword [esi]
push ecx
call ebx
add esi, 4
dec edi
jne 0x4558e3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
cmp eax, 2
jl 0x45598c
mov ecx, dword [0x57ee14]
mov ebp, dword [0x482208]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
lea edi, [esp + 0x10]
lea esi, [esp + 0x20]
mov ebx, 2
push 0
push 0
push esi
push fcn.00455010
push 0
push 0
call fcn.00459ec2
add esp, 0x18
push 1
push eax
mov dword [edi], eax
call ebp
add esi, 8
add edi, 4
dec ebx
jne 0x455933
push 0xffffffffffffffff
push 1
lea edx, [esp + 0x18]
push edx
push 2
call dword [0x48220c]
mov ebx, dword [0x482134]
lea esi, [esp + 0x10]
mov edi, 2
mov eax, dword [esi]
push eax
call ebx
add esi, 4
dec edi
jne 0x455979
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov esi, dword [0x57ee14]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], esi
call fcn.00455010
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
pop edi
pop esi
pop ebp
mov dword [0x57ede4], eax
pop ebx
add esp, 0x30
ret
mov dword [0x57edec], eax
mov dword [0x57ee14], esi
mov dword [0x57ee0c], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret