Function at 0x56f100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x230
mov al, byte [esp + 0x240]
test al, al
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x20], ebx
je 0x56f2be
mov edx, dword [ebx]
test edx, edx
mov dword [esp + 0x28], edx
jle 0x56f142
mov ecx, edx
mov esi, ecx
shr ecx, 2
xor eax, eax
lea edi, [esp + 0x100]
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
test edx, edx
jle 0x56f16e
mov ecx, dword [ebx + 4]
nop
lea esp, [esp]
cmp dword [esp + 0x244], ecx
je 0x56f166
inc eax
add ecx, 0x244
cmp eax, edx
jl 0x56f150
jmp 0x56f16e
mov byte [esp + eax + 0x100], 1
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x10]
add esi, eax
lea ebp, [esi + ecx]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebp
jmp 0x56f192
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp ebp, edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x24], edi
jle 0x56f2e0
lea ebp, [eax + ecx]
mov esi, eax
imul esi, esi, 0xffffffd0
mov ecx, ebp
imul ecx, ecx, 0xffffffb8
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ecx
jmp 0x56f1d0
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
lea esp, [esp]
cmp edi, eax
jge 0x56f1e3
mov eax, dword [ebx + 0xc]
mov ebp, dword [esp + 0x14]
add eax, ebp
test byte [eax + 0x2c], 1
jmp 0x56f1fb
cmp edi, ebp
jge 0x56f1f2
mov eax, dword [ebx + 0x14]
add eax, esi
test byte [eax + 0x2c], 1
jmp 0x56f1fb
mov eax, dword [ebx + 0x1c]
add eax, ecx
test byte [eax + 0x44], 1
jne 0x56f286
mov ebp, dword [eax + 4]
mov eax, dword [eax + 0xc]
xor edi, edi
test edx, edx
mov dword [esp + 0x1c], eax
jle 0x56f282
xor esi, esi
mov al, byte [esp + edi + 0x100]
test al, al
je 0x56f26f
mov ecx, dword [ebx + 4]
lea eax, [ecx + esi]
cmp ebp, eax
jne 0x56f22e
mov edx, dword [esp + 0x1c]
jmp 0x56f236
cmp dword [esp + 0x1c], eax
jne 0x56f26f
mov edx, ebp
xor eax, eax
cmp edx, ecx
je 0x56f251
mov ebx, dword [esp + 0x28]
inc eax
add ecx, 0x244
cmp eax, ebx
mov ebx, dword [esp + 0x20]
jl 0x56f238
jmp 0x56f26b
mov cl, byte [esp + eax + 0x100]
test cl, cl
lea eax, [esp + eax + 0x100]
jne 0x56f268
mov byte [esp + 0x13], 1
mov byte [eax], 1
mov edx, dword [esp + 0x28]
inc edi
add esi, 0x244
cmp edi, edx
jl 0x56f213
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
inc edi
add ecx, 0x48
add eax, 0x30
add esi, 0x30
cmp edi, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
jl 0x56f1c4
mov al, byte [esp + 0x13]
test al, al
jne 0x56f18a
jmp 0x56f2e0
mov ecx, dword [ebx]
test ecx, ecx
jle 0x56f2e0
mov edx, ecx
shr ecx, 2
mov eax, 0x1010101
lea edi, [esp + 0x100]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, edi
mov ebp, dword [esp + 0x244]
mov eax, dword [esp + 0x24c]
lea esi, [ebp + 4]
mov ecx, 6
lea edi, [esp + 0x138]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x16c]
call fcn.0056bd40
lea esi, [ebp + 0x1c]
mov ecx, 0x12
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xe8], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xf0], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xcc], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0xe4], ecx
lea ecx, [esp + 0x1f8]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0xf8], edx
push ecx
lea edx, [esp + 0xbc]
lea ecx, [esp + 0x16c]
mov dword [esp + 0x100], eax
call fcn.0056c740
mov ecx, dword [ebx]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x18], eax
jle 0x56f64a
mov ebp, dword [esp + 0x248]
mov dword [esp + 0x14], eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x100]
test cl, cl
je 0x56f62d
mov ebx, dword [ebx + 4]
add ebx, dword [esp + 0x14]
fld qword [ebx + 4]
lea edi, [ebx + 4]
fsub qword [esp + 0x138]
fld qword [edi + 8]
fsub qword [esp + 0x140]
fld qword [edi + 0x10]
fsub qword [esp + 0x148]
fld qword [esp + 0x70]
fmul st(1)
fld qword [esp + 0x58]
fmul st(3)
faddp st(1)
fld qword [esp + 0x40]
fmul st(4)
faddp st(1)
fstp qword [esp + 0x88]
fld qword [esp + 0x78]
fmul st(1)
fld qword [esp + 0x60]
fmul st(3)
faddp st(1)
fld st(3)
fmul qword [esp + 0x48]
faddp st(1)
fstp qword [esp + 0x90]
fld qword [esp + 0x80]
fmul st(1)
fld qword [esp + 0x68]
fmul st(3)
faddp st(1)
fld qword [esp + 0x50]
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fld qword [esp + 0x178]
fmul st(1)
fld qword [esp + 0x170]
fmul qword [esp + 0x90]
faddp st(1)
fld qword [esp + 0x168]
fmul qword [esp + 0x88]
faddp st(1)
fld qword [esp + 0x190]
fmul st(2)
fld qword [esp + 0x188]
fmul qword [esp + 0x90]
faddp st(1)
fld qword [esp + 0x180]
fmul qword [esp + 0x88]
faddp st(1)
fstp qword [esp + 0x158]
fld qword [esp + 0x1a8]
fmul st(2)
fld qword [esp + 0x1a0]
fmul qword [esp + 0x90]
faddp st(1)
fld qword [esp + 0x198]
fmul qword [esp + 0x88]
faddp st(1)
lea edx, [esp + 0x1b0]
mov ecx, 6
lea esi, [esp + 0x120]
fstp qword [esp + 0x160]
push edx
lea edx, [ebx + 0x1c]
fadd qword [ebp]
fstp qword [esp + 0x124]
fstp st(0)
fld qword [esp + 0x15c]
fadd qword [ebp + 8]
fstp qword [esp + 0x12c]
fld qword [esp + 0x164]
fadd qword [ebp + 0x10]
fstp qword [esp + 0x134]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1fc]
call fcn.0056c740
fld qword [esp + 0x1d8]
call fcn.00588570
fchs
fstp qword [esp + 0xa0]
fld qword [esp + 0x1d8]
fabs
fcomp qword [0x59e420]
fnstsw ax
test ah, 0x44
jnp 0x56f5e7
fld qword [esp + 0x1c0]
fld qword [esp + 0x1f0]
fpatan
fstp qword [esp + 0xa8]
fld qword [esp + 0x1c8]
fld qword [esp + 0x1d0]
fpatan
fstp qword [esp + 0xb0]
jmp 0x56f616
fld qword [esp + 0x1e0]
mov dword [esp + 0xb0], 0
fchs
mov dword [esp + 0xb4], 0
fld qword [esp + 0x1b0]
fpatan
fstp qword [esp + 0xa8]
lea eax, [esp + 0xa0]
push eax
mov ecx, ebx
call fcn.005691d0
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx]
inc eax
add edx, 0x244
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jl 0x56f420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret 0x10