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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp edx, 2
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], esi
jl 0x100574e7
cmp edx, 0x40
jg 0x100574e7
mov ecx, dword [ebp + 0x10]
fld qword [ecx + 8]
fsub qword [ecx]
fld st(0)
fmul st(1)
fcomp qword [0x1005a1c8]
fnstsw ax
test ah, 1
fstp st(0)
je 0x10057023
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x18], 2
mov eax, dword [esp + 0x18]
mov edx, esi
mov dword [ecx], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, esi
jne 0x1005703e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
fld qword [eax + edx*8 - 8]
fstp qword [esp + 0x4c]
fld qword [eax + ecx*8]
fstp qword [esp + 0x54]
jmp 0x1005705c
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], ecx
lea ecx, [edx - 1]
mov dword [esp + 0x30], 0xa2879f2e
mov dword [esp + 0x5c], ecx
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x34], 0xd47d42ae
cmp edi, ecx
mov dword [esp + 0x1c], edi
jge 0x100574ef
inc edi
mov ebx, 0xfffffff8
shl edx, 3
lea ecx, [eax + edi*8]
sub ebx, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x64], ebx
jmp 0x100570a8
mov ebx, dword [esp + 0x64]
fld qword [ecx - 8]
fcomp qword [ecx]
fnstsw ax
test ah, 0x40
jne 0x100574af
fld qword [ecx]
fcomp qword [esp + 0x4c]
fnstsw ax
test ah, 1
jne 0x100574af
fld qword [ecx - 8]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 0x41
je 0x100574af
add ebx, ecx
mov ecx, dword [esp + 0x3c]
mov eax, ebx
xor esi, esi
sub eax, ecx
mov ecx, dword [ebp + 0x18]
xor edx, edx
fld qword [eax + ecx + 8]
fcom qword [0x1005a1d8]
lea ecx, [eax + ecx + 8]
fnstsw ax
test ah, 0x40
je 0x10057106
mov edx, 1
cmp dword [ebp + 8], 1
jle 0x1005714b
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x60], eax
fld qword [ecx + 8]
add ecx, 8
fmul st(1)
fcomp qword [0x1005a1d8]
fnstsw ax
test ah, 1
je 0x1005712a
inc esi
fld qword [ecx]
fcomp qword [0x1005a1d8]
fnstsw ax
test ah, 0x40
je 0x1005713c
inc edx
jmp 0x10057140
fstp st(0)
fld qword [ecx]
mov eax, dword [esp + 0x60]
dec eax
mov dword [esp + 0x60], eax
jne 0x10057114
mov ecx, dword [esp + 0x14]
fstp st(0)
fld qword [ecx - 8]
fcomp qword [esp + 0x4c]
fnstsw ax
test ah, 0x41
jne 0x10057168
fld qword [ecx - 8]
fstp qword [esp + 0x40]
jmp 0x1005717c
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], eax
fld qword [ecx]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 1
je 0x10057191
fld qword [ecx]
fstp qword [esp + 0x20]
jmp 0x100571a1
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
cmp edx, dword [ebp + 8]
jne 0x100571f2
mov edx, dword [ebp + 0x1c]
mov ecx, dword [esp + 0xc]
cmp ecx, edx
jge 0x100571c9
fld qword [esp + 0x40]
mov eax, dword [ebp + 0x24]
fstp qword [eax + ecx*8]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x100571c9
mov dword [eax + ecx*4], 1
inc ecx
cmp ecx, edx
jge 0x100571d8
fld qword [esp + 0x20]
mov edx, dword [ebp + 0x24]
fstp qword [edx + ecx*8]
mov eax, dword [esp + 0x20]
inc ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jmp 0x100574af
test esi, esi
jne 0x100571fe
test edx, edx
je 0x100574af
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
mov eax, ebx
sub eax, edx
mov edx, esi
sub edx, ecx
inc edx
cmp edx, edi
jge 0x1005723c
mov ecx, dword [ebp + 0x14]
lea eax, [eax + ecx + 8]
mov ecx, edi
sub ecx, edx
mov esi, eax
shl ecx, 1
and ecx, 0x3ffffffe
lea edi, [esp + 0x478]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
lea ecx, [esi + eax + 1]
cmp edi, ecx
jge 0x1005726b
lea ecx, [edi + eax]
mov eax, ecx
sub ecx, edi
sub eax, esi
mov esi, dword [esp + 0x14]
shl ecx, 1
lea eax, [esp + eax*8 + 0x470]
and ecx, 0x3ffffffe
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
sub ebx, ecx
cmp edx, edi
jge 0x10057292
mov ecx, dword [ebp + 0x18]
lea esi, [ebx + ecx + 8]
mov ecx, edi
sub ecx, edx
lea edi, [esp + 0x78]
shl ecx, 1
and ecx, 0x3ffffffe
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x78]
push 0
lea eax, [esp + 0x47c]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
push 0xffffffffffffffff
call fcn.10057ca0
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x40]
add esp, 0x1c
lea ecx, [esp + 0x78]
lea edx, [esp + 0x478]
push 0
push ecx
mov ecx, dword [esp + 0x28]
push edx
push esi
push eax
push ecx
push 1
call fcn.10057ca0
fld qword [esp + 0x94]
fld qword [esp + 0x94]
fcomp qword [0x1005a1d8]
add esp, 0x1c
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x10], ecx
fnstsw ax
test ah, 0x40
je 0x10057308
mov ebx, 1
cmp esi, 1
jle 0x10057503
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x80]
fld qword [ecx]
fmul st(1)
fcomp qword [0x1005a1d8]
fnstsw ax
test ah, 1
je 0x10057331
inc dword [esp + 0x10]
fld qword [ecx]
fcomp qword [0x1005a1d8]
fnstsw ax
test ah, 0x40
je 0x10057343
inc ebx
jmp 0x10057347
fstp st(0)
fld qword [ecx]
add ecx, 8
dec edx
jne 0x1005731c
mov ecx, dword [esp + 0x10]
fstp st(0)
test ecx, ecx
jne 0x1005735f
test ebx, ebx
je 0x100574af
cmp ecx, 1
jg 0x100573b7
test ebx, ebx
jg 0x100573b7
lea edx, [esp + 0x278]
lea eax, [esp + 0x68]
push edx
lea ecx, [esp + 0x7c]
push eax
push ecx
push esi
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0x3ff00000
call fcn.10056690
add esp, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], 1
jmp 0x100573d6
lea edx, [esp + 0x2c]
lea eax, [esp + 0x278]
push edx
lea ecx, [esp + 0x7c]
push eax
push ecx
push esi
call fcn.10056990
add esp, 0x10
mov dword [esp + 0x18], eax
fld qword [0x1005a1e0]
fsub qword [esp + 0x278]
fld qword [esp + 0x278]
fmul qword [esp + 0x20]
fxch st(1)
fmul qword [esp + 0x40]
faddp st(1)
fcom qword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x1005742d
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0x1c]
cmp ecx, eax
jge 0x10057422
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
fld st(0)
test eax, eax
fstp qword [edx + ecx*8]
je 0x10057422
mov dword [eax + ecx*4], 0
fstp qword [esp + 0x30]
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x10057433
mov ecx, dword [esp + 0xc]
fstp st(0)
mov eax, dword [esp + 0x2c]
cmp eax, 1
jle 0x100574af
mov edx, 1
cmp eax, edx
jle 0x100574a3
mov esi, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x24]
lea eax, [esp + 0x280]
lea esi, [esi + ecx*4 + 4]
mov ecx, dword [esp + 0xc]
lea ecx, [ebx + ecx*8 + 8]
mov ebx, dword [ebp + 0x28]
fld qword [eax]
fld qword [0x1005a1e0]
fsub st(1)
fxch st(1)
fmul qword [esp + 0x20]
fxch st(1)
test ebx, ebx
fst qword [esp + 0x30]
fmul qword [esp + 0x40]
faddp st(1)
fst qword [ecx - 8]
je 0x1005748b
mov dword [esi - 4], 0
fstp qword [esp + 0x30]
inc edx
add esi, 4
add eax, 8
add ecx, 8
cmp edx, dword [esp + 0x2c]
jl 0x10057461
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
lea eax, [ecx + edx - 1]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
inc eax
add ecx, 8
inc edi
cmp eax, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
jl 0x100570a4
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x18], 1
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
jmp 0x10057353