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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov ebx, dword [0x4270ec]
test ebx, ebx
jle 0x402290
mov dword [esp + 0x2c], 0
xor ecx, ecx
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x30], 0
mov esi, dword [0x427060]
mov eax, dword [0x4270e4]
jmp 0x401d3f
test edx, edx
je 0x402270
cmp dword [eax + 8], 7
jne 0x402290
cmp dword [eax + 0xc], 2
jne 0x402290
mov edx, dword [eax + 0x10]
add edx, esi
mov dword [esp + 0x2c], edx
add ecx, 1
add eax, 0x14
cmp ebx, ecx
je 0x401d78
mov edx, dword [eax]
cmp edx, 2
je 0x402258
jbe 0x401d10
cmp edx, 3
jne 0x401d35
cmp dword [eax + 8], 7
jne 0x402290
cmp dword [eax + 0xc], 4
jne 0x402290
mov ebp, dword [eax + 0x10]
add ecx, 1
add eax, 0x14
add ebp, esi
cmp ebx, ecx
jne 0x401d3f
lea esi, [esi]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
test eax, eax
sete al
test edx, edx
sete dl
or al, dl
jne 0x402290
test edi, edi
je 0x402292
test ebp, ebp
je 0x402292
mov edx, dword [0x427130]
lea ebx, [edx + edx*2]
mov dword [esp + 0x1c], edx
cmp ebx, 0x1fffffff
ja 0x41c02a
shl ebx, 2
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._calloc
mov dword [esp + 0x44], eax
test eax, eax
je sym.fixtangents____clone_.cold_
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._calloc
mov dword [esp + 0x48], eax
test eax, eax
je sym.fixtangents____clone_.cold_
mov eax, dword [0x427098]
mov edx, dword [esp + 0x1c]
test eax, eax
jle 0x402121
mov esi, dword [0x427090]
lea eax, [eax + eax*2]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edi
lea eax, [esi + eax*4]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x94]
mov dword [esp + 0x50], eax
nop
mov edi, dword [esi]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esi + 4]
lea edx, [edi + edi*2]
shl edx, 2
mov dword [esp + 0x24], ebx
lea eax, [ebp + edx]
mov ecx, dword [eax]
mov dword [esp + 0x7c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
fld dword [esp + 0x7c]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
lea eax, [ebx + ebx*2]
mov ebx, ebp
shl eax, 2
lea ecx, [ebp + eax]
mov ebp, dword [ecx]
mov dword [esp + 0x88], ebp
mov ebp, dword [ecx + 4]
mov ecx, dword [ecx + 8]
fld dword [esp + 0x88]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ecx
mov ecx, dword [esi + 8]
fsub st(1)
fld dword [esp + 0x80]
fld dword [esp + 0x8c]
lea ebp, [ecx + ecx*2]
mov dword [esp + 0x28], ecx
lea ecx, [ebp*4]
mov ebp, ebx
add ebp, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x50]
fsub st(1)
mov ebx, dword [ebp]
mov dword [ecx], ebx
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
fstp dword [esp + 0x1c]
fld dword [esp + 0x84]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
fld dword [esp + 0x90]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
fsub st(1)
fld dword [esp + 0x94]
lea edi, [ecx + edi*8]
mov ebp, dword [edi]
mov edi, dword [edi + 4]
lea ebx, [ecx + ebx*8]
fsubrp st(5)
fxch st(2)
mov dword [esp + 0x68], edi
mov edi, dword [ebx]
fsubr dword [esp + 0x98]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x70], ebx
lea ecx, [ecx + edi*8]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
fstp dword [esp + 0x20]
fld dword [esp + 0x9c]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ecx
fsubrp st(1)
fld dword [esp + 0x64]
fld dword [esp + 0x6c]
fsub st(1)
fld dword [esp + 0x68]
fld dword [esp + 0x70]
fsub st(1)
fxch st(3)
fsubr dword [esp + 0x74]
fxch st(1)
fsubr dword [esp + 0x78]
fxch st(7)
fst dword [esp + 0x3c]
fmul st(3)
fxch st(6)
fst dword [esp + 0x38]
fmul st(7)
fsubp st(6)
fxch st(5)
fstp dword [esp + 0x34]
fld dword [esp + 0x20]
fmul st(2)
fld dword [esp + 0x1c]
fmul st(7)
fsubp st(1)
fstp dword [esp + 0x24]
fxch st(1)
fmul st(2)
fxch st(5)
fmul st(3)
fsubp st(5)
fxch st(4)
fstp dword [esp + 0x28]
fld dword [esp + 0x3c]
fmul st(4)
fld dword [esp + 0x38]
fmul st(4)
fsubp st(1)
fld dword [esp + 0x20]
fmul st(5)
fld dword [esp + 0x1c]
fld st(0)
fmul st(6)
fsubp st(2)
fxch st(6)
fmul st(3)
fxch st(5)
fmul st(4)
fsubp st(5)
fld dword [esp + 0x20]
fmul st(4)
fxch st(6)
fmul st(3)
fsubp st(6)
fld dword [esp + 0x28]
fmul st(1)
fld dword [esp + 0x24]
fmul st(6)
fsubp st(1)
fmulp st(6)
fld dword [esp + 0x38]
fmulp st(3)
fxch st(3)
fmul dword [esp + 0x3c]
fsubp st(2)
fld dword [esp + 0x34]
fmul st(4)
fld dword [esp + 0x28]
fmul st(2)
fsubp st(1)
fmulp st(2)
fxch st(1)
faddp st(4)
fld dword [esp + 0x1c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul dword [esp + 0x20]
fsubp st(1)
fld dword [esp + 0x24]
fmul st(2)
fld dword [esp + 0x34]
fld st(0)
fmul st(5)
fsubp st(2)
fxch st(2)
fmulp st(1)
faddp st(5)
fldz
fcompi st(5)
fstp st(4)
jbe 0x402060
fxch st(3)
fchs
fstp dword [esp + 0x34]
fld dword [esp + 0x24]
fchs
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fchs
fstp dword [esp + 0x28]
fxch st(2)
fchs
fxch st(2)
fchs
fxch st(1)
fchs
fxch st(2)
jmp 0x402066
fstp st(3)
fxch st(1)
fxch st(2)
mov edi, dword [esp + 0x44]
fld dword [esp + 0x34]
add esi, 0xc
mov ebx, dword [esp + 0x48]
lea ecx, [edi + edx]
fld dword [ecx]
add edx, ebx
fadd st(1)
fstp dword [ecx]
fld dword [esp + 0x24]
fld dword [ecx + 4]
fadd st(1)
fstp dword [ecx + 4]
fld dword [esp + 0x28]
fld dword [ecx + 8]
fadd st(1)
fstp dword [ecx + 8]
fld dword [edx]
mov ecx, dword [esp + 0x40]
fadd st(4)
fstp dword [edx]
fld dword [edx + 4]
fadd st(5)
fstp dword [edx + 4]
fld dword [edx + 8]
fadd st(6)
fstp dword [edx + 8]
lea edx, [edi + eax]
add eax, ebx
fld dword [edx]
fadd st(3)
fstp dword [edx]
fld dword [edx + 4]
fadd st(2)
fstp dword [edx + 4]
fld dword [edx + 8]
fadd st(1)
fstp dword [edx + 8]
fld dword [eax]
lea edx, [ebx + ecx]
fadd st(4)
fstp dword [eax]
fld dword [eax + 4]
fadd st(5)
fstp dword [eax + 4]
fld dword [eax + 8]
fadd st(6)
fstp dword [eax + 8]
fxch st(2)
lea eax, [edi + ecx]
fadd dword [eax]
fstp dword [eax]
fadd dword [eax + 4]
fstp dword [eax + 4]
fadd dword [eax + 8]
fstp dword [eax + 8]
fadd dword [edx]
fstp dword [edx]
fadd dword [edx + 4]
fstp dword [edx + 4]
fadd dword [edx + 8]
fstp dword [edx + 8]
cmp dword [esp + 0x4c], esi
jne 0x401e30
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
test edx, edx
jle 0x40222d
mov esi, edi
shl edx, 4
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
add edx, ebp
lea eax, [esp + 0x94]
nop
mov ecx, dword [esi]
fld dword [ebx]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
fld dword [esp + 0x94]
fld dword [ebx + 4]
fld dword [esp + 0x98]
fld dword [ebx + 8]
fld dword [esp + 0x9c]
fld st(5)
fmul st(5)
fld st(4)
fmul st(4)
faddp st(1)
fld st(2)
fmul st(2)
faddp st(1)
fld st(5)
fmul st(1)
fsubr st(7)
fstp dword [esp + 0x24]
fld st(3)
fmul st(1)
fsubr st(5)
fstp dword [esp + 0x1c]
fmul st(1)
fsubr st(2)
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fld st(0)
fmulp st(1)
fld dword [esp + 0x1c]
fmul st(0)
faddp st(1)
fld dword [esp + 0x20]
fmul st(0)
faddp st(1)
fldz
fucompi st(1)
ja 0x4022c0
fsqrt
fld1
fdivrp st(1)
fld dword [esp + 0x24]
fmul st(1)
fstp dword [ebp]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [ebp + 4]
fmul dword [esp + 0x20]
fstp dword [ebp + 8]
fld st(2)
fmul st(2)
fld st(4)
fmul st(2)
fsubp st(1)
fmul dword [edi]
fxch st(1)
fmul st(6)
fxch st(2)
fmul st(5)
fsubp st(2)
fxch st(1)
fmul dword [edi + 4]
faddp st(1)
fxch st(3)
fmulp st(2)
fmulp st(3)
fsubrp st(2)
fxch st(1)
fmul dword [edi + 8]
faddp st(1)
fldz
fcompi st(1)
fstp st(0)
ja 0x4022a0
mov dword [ebp + 0xc], 0x3f800000
add ebp, 0x10
add esi, 0xc
add ebx, 0xc
add edi, 0xc
cmp edx, ebp
jne 0x402140
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sym._free
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sym._free
add esp, 0xac
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [eax + 8], 7
jne 0x402290
cmp dword [eax + 0xc], 3
jne 0x402290
mov edi, dword [eax + 0x10]
add edi, esi
jmp 0x401d35
cmp dword [eax + 8], 7
jne 0x402290
cmp dword [eax + 0xc], 3
jne 0x402290
mov edx, dword [eax + 0x10]
add edx, esi
mov dword [esp + 0x30], edx
jmp 0x401d35
xor eax, eax
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 0xc], 0xbf800000
add ebp, 0x10
add esi, 0xc
add ebx, 0xc
add edi, 0xc
cmp ebp, edx
jne 0x402140
jmp 0x40222d
fxch st(1)
fstp dword [esp + 0x3c]
fxch st(1)
fstp dword [esp + 0x38]
fxch st(1)
fstp dword [esp + 0x34]
fxch st(1)
fstp dword [esp + 0x30]
fxch st(1)
fstp dword [esp + 0x2c]
fxch st(1)
fstp dword [esp + 0x28]
fstp dword [esp]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], edx
call dbg.sqrtf
mov eax, dword [esp + 0x4c]
fld dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
fld dword [esp + 0x38]
fld dword [esp + 0x34]
fld dword [esp + 0x30]
fld dword [esp + 0x2c]
fld dword [esp + 0x28]
fxch st(6)
fxch st(1)
fxch st(5)
fxch st(1)
fxch st(2)
fxch st(4)
fxch st(2)
jmp 0x4021bd
call sym.___cxa_throw_bad_array_new_length