Function at 0x59ca80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x784856
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
cmp dword [esi + 0xc], 0
jne 0x59cddc
mov ebp, dword [esp + 0x4c]
cmp ebp, 2
jl 0x59cddc
cmp dword [esp + 0x40], 0
je 0x59cddc
mov edi, dword [esp + 0x48]
test edi, edi
je 0x59cddc
cmp dword [esp + 0x44], 0
je 0x59cddc
xor ecx, ecx
mov eax, ebp
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063265d
mov ecx, eax
add esp, 4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], 0
test ecx, ecx
je 0x59cb20
push 0x10
mov ebx, 0x411ed0
mov eax, ebp
call fcn.004049e0
mov eax, dword [esp + 0x18]
jmp 0x59cb22
xor eax, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [esi + 0x14], eax
lea eax, [ebp - 1]
add eax, eax
xor ecx, ecx
mov dword [esp + 0x18], eax
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063265d
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], 1
test ecx, ecx
je 0x59cb77
mov eax, dword [esp + 0x18]
push 0x10
mov ebx, 0x411ed0
call fcn.004049e0
mov eax, dword [esp + 0x14]
jmp 0x59cb79
xor eax, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [esi + 0x10], eax
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063265d
add esp, 4
xor ecx, ecx
cmp ebp, 4
mov dword [esi], eax
mov dword [esi + 0xc], ebp
jl 0x59ccef
mov ebx, dword [esp + 0x40]
mov edx, 0x10
sub edx, ebx
mov dword [esp + 0x24], edx
lea eax, [ebx + 0x20]
mov edx, 0xffffffe0
sub edx, ebx
mov ebx, 4
sub ebx, edi
mov dword [esp + 0x28], ebx
add ebp, 0xfffffffc
mov ebx, 0xfffffff8
sub ebx, edi
shr ebp, 2
inc ebp
lea ecx, [edi + 8]
lea edi, [ebp*4]
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0x20
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edi
jmp 0x59cc14
mov edx, dword [esp + 0x1c]
mov ebx, dword [eax - 0x20]
lea edi, [edx + eax]
mov edx, dword [esi + 0x14]
mov dword [edx + edi], ebx
mov ebx, dword [eax - 0x1c]
mov dword [edx + edi + 4], ebx
mov ebx, dword [eax - 0x18]
mov dword [edx + edi + 8], ebx
mov ebx, dword [eax - 0x14]
mov dword [edx + edi + 0xc], ebx
fld dword [ecx - 8]
add edx, edi
mov edx, dword [esp + 0x20]
lea ebx, [edx + ecx]
mov edx, dword [esi]
fstp dword [ebx + edx]
mov edx, dword [esi + 0x14]
lea edx, [edi + edx + 0x10]
mov edi, dword [eax - 0x10]
mov dword [edx], edi
mov edi, dword [eax - 0xc]
mov dword [edx + 4], edi
mov edi, dword [eax - 8]
mov dword [edx + 8], edi
mov edi, dword [eax - 4]
mov dword [edx + 0xc], edi
fld dword [ecx - 4]
mov edx, dword [esi]
mov edi, dword [esp + 0x18]
fstp dword [ebx + edx + 4]
mov edx, dword [esi + 0x14]
mov ebx, dword [eax]
mov dword [edx + edi], ebx
mov ebx, dword [eax + 4]
mov dword [edx + edi + 4], ebx
mov ebx, dword [eax + 8]
mov dword [edx + edi + 8], ebx
mov ebx, dword [eax + 0xc]
add edx, edi
mov dword [edx + 0xc], ebx
fld dword [ecx]
mov edx, dword [esi]
mov ebx, dword [esp + 0x14]
fstp dword [ebx + edx]
mov ebx, dword [eax + 0x10]
mov edx, dword [esp + 0x24]
add dword [esp + 0x14], 0x10
add edx, eax
add edx, dword [esi + 0x14]
add edi, 0x40
mov dword [edx], ebx
mov ebx, dword [eax + 0x14]
mov dword [edx + 4], ebx
mov ebx, dword [eax + 0x18]
mov dword [edx + 8], ebx
mov ebx, dword [eax + 0x1c]
mov dword [edx + 0xc], ebx
fld dword [ecx + 4]
mov edx, dword [esp + 0x28]
mov ebx, dword [esi]
add edx, ecx
add eax, 0x40
fstp dword [edx + ebx]
add ecx, 0x10
sub ebp, 1
mov dword [esp + 0x18], edi
jne 0x59cc10
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x4c]
cmp ecx, ebp
jge 0x59cd38
mov edx, ecx
shl edx, 4
mov eax, dword [esi + 0x14]
mov ebx, dword [esp + 0x40]
mov ebx, dword [edx + ebx]
mov dword [eax + edx], ebx
mov ebx, dword [esp + 0x40]
mov ebx, dword [edx + ebx + 4]
add eax, edx
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x40]
mov ebx, dword [edx + ebx + 8]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x40]
mov ebx, dword [edx + ebx + 0xc]
mov dword [eax + 0xc], ebx
fld dword [edi + ecx*4]
mov eax, dword [esi]
fstp dword [eax + ecx*4]
inc ecx
add edx, 0x10
cmp ecx, ebp
jl 0x59ccf8
lea edx, [ebp + ebp - 2]
test edx, edx
jle 0x59cd6d
mov edi, dword [esp + 0x44]
xor ecx, ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [ecx + edi]
add eax, ecx
mov dword [eax], ebx
mov ebx, dword [ecx + edi + 4]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + edi + 8]
mov dword [eax + 8], ebx
mov ebx, dword [ecx + edi + 0xc]
add ecx, 0x10
sub edx, 1
mov dword [eax + 0xc], ebx
jne 0x59cd46
xor ecx, ecx
lea eax, [ebp - 1]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063265d
fldz
dec ebp
fstp dword [esi + 8]
add esp, 4
xor edi, edi
mov dword [esi + 4], eax
test ebp, ebp
jle 0x59cdc5
mov ebx, eax
fld1
sub esp, 8
fstp dword [esp + 4]
mov edx, edi
fldz
mov ecx, esi
fstp dword [esp]
call fcn.0059d1b0
fstp dword [ebx + edi*4]
mov ebx, dword [esi + 4]
fld dword [ebx + edi*4]
fadd dword [esi + 8]
inc edi
cmp edi, ebp
fstp dword [esi + 8]
jl 0x59cd9a
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10