Function at 0x597480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623873
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x69bd40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.SpherePackFactory.0
mov dword [ebp - 4], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
movss xmm0, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movss dword [esi + 0x34], xmm0
movss xmm0, dword [ebp + 0x10]
movss dword [esi + 0x38], xmm0
movss xmm0, dword [ebp + 0x14]
lea ebx, [eax*4]
push 0x18
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
movss dword [esi + 0x3c], xmm0
call fcn.0059df22
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov byte [ebp - 4], 2
mov edx, 4
test edi, edi
je 0x597568
xor ecx, ecx
mov dword [edi], vtable.SpherePackFifo.0
mov eax, ebx
mov dword [edi + 4], 0
mul edx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
seto cl
mov dword [edi + 0x10], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0059e15e
add esp, 4
mov dword [edi + 0x14], eax
jmp 0x59756a
xor edi, edi
push 0x18
mov byte [ebp - 4], 1
mov dword [esi + 0x2c], edi
call fcn.0059df22
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x5975c6
xor ecx, ecx
mov dword [edi], vtable.SpherePackFifo.0
mov eax, ebx
mov dword [edi + 4], 0
mov edx, 4
mov dword [edi + 8], 0
mul edx
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059e15e
add esp, 4
mov dword [edi + 0x14], eax
jmp 0x5975c8
xor edi, edi
mov dword [esi + 0x30], edi
mov ecx, dword [esi + 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x5975f2
cmp dword [ecx - 4], 0
lea eax, [ecx - 4]
je 0x5975e7
mov eax, dword [ecx]
push 3
call dword [eax]
jmp 0x5975f2
push 4
push eax
call fcn.0059e167
add esp, 8
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov eax, ebx
mov dword [ebp + 0xc], ebx
mov edx, 0x50
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0059e15e
add esp, 4
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x597649
push 0x597840
push 0x5973f0
push dword [ebp - 0x10]
mov dword [eax], ebx
lea ebx, [eax + 4]
push 0x50
push ebx
mov dword [ebp + 8], ebx
call fcn.0059dfd0
jmp 0x59764e
xor ebx, ebx
mov dword [ebp + 8], ebx
mov dword [esi + 0x18], ebx
xor edi, edi
mov dword [esi + 0x20], ebx
mov ebx, dword [esi + 0x10]
dec ebx
mov dword [esi + 0x1c], 0
test ebx, ebx
jle 0x597697
mov ecx, dword [esi + 0x18]
lea edx, [edi + edi*4]
shl edx, 4
lea eax, [ecx + 0x50]
add eax, edx
mov dword [edx + ecx + 0x18], eax
mov ecx, dword [esi + 0x18]
test edi, edi
jne 0x597684
mov dword [edx + ecx + 0x1c], edi
jmp 0x59768d
lea eax, [ecx - 0x50]
add eax, edx
mov dword [edx + ecx + 0x1c], eax
inc edi
cmp edi, ebx
jl 0x597665
mov eax, dword [esi + 0x18]
jmp 0x59769a
mov eax, dword [ebp + 8]
lea edx, [ebx + ebx*4]
shl edx, 4
mov dword [edx + eax + 0x18], 0
mov ecx, dword [esi + 0x18]
lea eax, [ecx - 0x50]
add eax, edx
mov dword [edx + ecx + 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x14], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x5976fa
mov eax, dword [ecx + 0x18]
mov edx, ecx
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x1c], ecx
test eax, eax
je 0x5976e7
mov dword [eax + 0x1c], ecx
mov edx, dword [esi + 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 0x1c], 0
inc dword [esi + 0x24]
dec dword [esi + 0x28]
mov dword [esi + 4], ecx
mov byte [ecx + 0x4c], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x48], esi
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0x4ac80000
mov dword [ecx + 0x14], 0x561c4000
mov eax, dword [esi + 4]
or dword [eax + 0x38], 0xb
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x597791
mov eax, dword [ecx + 0x18]
mov edx, ecx
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x1c], ecx
test eax, eax
je 0x59777e
mov dword [eax + 0x1c], ecx
mov edx, dword [esi + 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 0x1c], 0
inc dword [esi + 0x24]
dec dword [esi + 0x28]
mov dword [esi + 8], ecx
mov byte [ecx + 0x4c], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x48], esi
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0x49c80000
mov dword [ecx + 0x14], 0x541c4000
mov eax, dword [esi + 8]
or dword [eax + 0x38], 0xd
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10