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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [esp + 0xbc]
push esi
push edi
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 4]
shr eax, 0x1d
and al, 1
mov dword [esp + 0x28], 0
test ecx, ecx
mov byte [esp + 0x24], al
jle 0x478faf
mov edx, dword [esp + 0xc8]
add esi, 0x50
sub edx, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], edx
mov ecx, dword [esi]
test ecx, 0x40000000
jne 0x478f90
shr ecx, 0x1f
and cl, 1
test al, al
je 0x478ce4
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x478cdd
mov edx, dword [esp + 0x24]
push edx
push ecx
mov ecx, dword [esp + 0xd0]
push edi
shl eax, 4
lea edx, [eax + ecx]
mov ecx, dword [esp + 0xd0]
add eax, ecx
push edx
push eax
jmp 0x478cec
mov eax, dword [esp + 0x24]
push eax
jmp 0x478ce6
push 0
push ecx
add edx, ebx
push edi
push edx
push ebx
call fcn.004793f0
mov eax, dword [esi]
add esp, 0x14
test eax, 0x10000000
je 0x478d2c
lea eax, [esi + 0xc]
mov ecx, edi
push eax
call fcn.00479da0
lea eax, [esi + 0xc]
lea ecx, [edi + 0x10]
push eax
call fcn.00479da0
lea eax, [esi + 0xc]
lea ecx, [edi + 0x20]
push eax
call fcn.00479da0
lea eax, [esi + 0xc]
lea ecx, [edi + 0x30]
push eax
call fcn.00479da0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x478f88
mov esi, dword [esi - 0x4c]
lea ecx, [esp + 0x14]
call fcn.00402a70
fld dword [edi]
fmul dword [esi]
fld dword [esi + 0x30]
fmul dword [edi + 0xc]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
faddp st(1)
fld dword [edi + 8]
fmul dword [esi + 0x20]
faddp st(1)
fld dword [edi + 4]
fmul dword [esi + 0x10]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [edi + 8]
fmul dword [esi + 0x24]
fld dword [edi]
fmul dword [esi + 4]
faddp st(1)
fld dword [edi + 4]
fmul dword [esi + 0x14]
faddp st(1)
fld dword [esi + 0x34]
fmul dword [edi + 0xc]
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [edi + 4]
fmul dword [esi + 0x18]
fld dword [esi + 0x38]
fmul dword [edi + 0xc]
faddp st(1)
fld dword [edi + 8]
fmul dword [esi + 0x28]
faddp st(1)
fld dword [esi + 8]
fmul dword [edi]
faddp st(1)
fstp dword [esp + 0x20]
fld dword [edi + 8]
fmul dword [esi + 0x2c]
fld dword [edi]
fmul dword [esi + 0xc]
faddp st(1)
fld dword [esi + 0x3c]
fmul dword [edi + 0xc]
faddp st(1)
fld dword [esi + 0x1c]
fmul dword [edi + 4]
faddp st(1)
fstp dword [esp + 0x24]
call fcn.00499d60
fld dword [edi + 0x18]
fmul dword [esi + 0x20]
fld dword [esi + 0x10]
fmul dword [edi + 0x14]
lea ecx, [edi + 0x10]
faddp st(1)
fld dword [esi + 0x30]
fmul dword [edi + 0x1c]
faddp st(1)
fld dword [esi]
fmul dword [ecx]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [edi + 0x1c]
fmul dword [esi + 0x34]
fld dword [edi + 0x18]
fmul dword [esi + 0x24]
faddp st(1)
fld dword [esi + 4]
fmul dword [ecx]
faddp st(1)
fld dword [esi + 0x14]
fmul dword [edi + 0x14]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esi + 8]
fmul dword [ecx]
fld dword [esi + 0x18]
fmul dword [edi + 0x14]
lea edx, [esp + 0x14]
push edx
faddp st(1)
fld dword [edi + 0x1c]
fmul dword [esi + 0x38]
faddp st(1)
fld dword [edi + 0x18]
fmul dword [esi + 0x28]
faddp st(1)
fstp dword [esp + 0x20]
fld dword [edi + 0x1c]
fmul dword [esi + 0x3c]
fld dword [edi + 0x18]
fmul dword [esi + 0x2c]
faddp st(1)
fld dword [esi + 0x1c]
fmul dword [edi + 0x14]
faddp st(1)
fld dword [esi + 0xc]
fmul dword [ecx]
faddp st(1)
fstp dword [esp + 0x24]
call fcn.00499d60
fld dword [esi + 0x30]
fmul dword [edi + 0x2c]
fld dword [edi + 0x24]
fmul dword [esi + 0x10]
lea ecx, [edi + 0x20]
lea eax, [esp + 0x14]
push eax
faddp st(1)
fld dword [esi + 0x20]
fmul dword [edi + 0x28]
faddp st(1)
fld dword [ecx]
fmul dword [esi]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [edi + 0x2c]
fmul dword [esi + 0x34]
fld dword [edi + 0x28]
fmul dword [esi + 0x24]
faddp st(1)
fld dword [edi + 0x24]
fmul dword [esi + 0x14]
faddp st(1)
fld dword [esi + 4]
fmul dword [ecx]
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [edi + 0x24]
fmul dword [esi + 0x18]
fld dword [esi + 8]
fmul dword [ecx]
faddp st(1)
fld dword [edi + 0x2c]
fmul dword [esi + 0x38]
faddp st(1)
fld dword [edi + 0x28]
fmul dword [esi + 0x28]
faddp st(1)
fstp dword [esp + 0x20]
fld dword [esi + 0x3c]
fmul dword [edi + 0x2c]
fld dword [esi + 0x2c]
fmul dword [edi + 0x28]
faddp st(1)
fld dword [esi + 0x1c]
fmul dword [edi + 0x24]
faddp st(1)
fld dword [ecx]
fmul dword [esi + 0xc]
faddp st(1)
fstp dword [esp + 0x24]
call fcn.00499d60
fld dword [edi + 0x30]
fmul dword [esi]
lea ecx, [edi + 0x30]
fld dword [esi + 0x10]
fmul dword [edi + 0x34]
lea edx, [esp + 0x14]
push edx
faddp st(1)
fld dword [esi + 0x30]
fmul dword [edi + 0x3c]
faddp st(1)
fld dword [esi + 0x20]
fmul dword [edi + 0x38]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esi + 4]
fmul dword [ecx]
fld dword [edi + 0x3c]
fmul dword [esi + 0x34]
faddp st(1)
fld dword [edi + 0x38]
fmul dword [esi + 0x24]
faddp st(1)
fld dword [edi + 0x34]
fmul dword [esi + 0x14]
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esi + 0x38]
fmul dword [edi + 0x3c]
fld dword [esi + 0x28]
fmul dword [edi + 0x38]
faddp st(1)
fld dword [esi + 8]
fmul dword [ecx]
faddp st(1)
fld dword [esi + 0x18]
fmul dword [edi + 0x34]
faddp st(1)
fstp dword [esp + 0x20]
fld dword [esi + 0x1c]
fmul dword [edi + 0x34]
fld dword [ecx]
fmul dword [esi + 0xc]
faddp st(1)
fld dword [esi + 0x3c]
fmul dword [edi + 0x3c]
faddp st(1)
fld dword [esi + 0x2c]
fmul dword [edi + 0x38]
faddp st(1)
fstp dword [esp + 0x24]
call fcn.00499d60
mov esi, dword [esp + 0x10]
mov al, byte [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add edi, 0x40
add esi, 0x6c
add ebx, 0x10
inc ecx
mov dword [esp + 0x10], esi
cmp ecx, dword [ebp + 0x10]
mov dword [esp + 0x28], ecx
jl 0x478c9c
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x479375
mov esi, dword [ebp + 0x1c]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x3f800000
jle 0x479375
add esi, 0x40
mov al, byte [esi - 0x38]
test al, al
je 0x479178
fld dword [esi - 0x14]
fadd dword [esi - 4]
fstp dword [esi - 4]
fld dword [esi - 0x10]
fadd dword [esi]
fstp dword [esi]
fld dword [esi - 0xc]
fadd dword [esi + 4]
fstp dword [esi + 4]
fld dword [esi - 8]
fadd dword [esi + 8]
fstp dword [esi + 8]
fld dword [esi - 4]
call fcn.005749d0
and eax, 0xfff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esi - 4]
fld dword [esi]
call fcn.005749d0
and eax, 0xfff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esi]
fld dword [esi + 4]
call fcn.005749d0
and eax, 0xfff
push ecx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esi + 4]
fld dword [0x58aa18]
fmul dword [esi - 4]
fmul dword [0x58aa1c]
fstp dword [esp]
call fcn.00402d10
fabs
fstp dword [esp + 0x18]
fld dword [0x58aa18]
fmul dword [esi]
fmul dword [0x58aa1c]
fstp dword [esp]
call fcn.00402d10
fabs
fstp dword [esp + 0x1c]
fld dword [0x58aa18]
fmul dword [esi + 4]
fmul dword [0x58aa1c]
fstp dword [esp]
call fcn.00402d10
fabs
fstp dword [esp + 0x20]
mov dword [esp + 0x24], 0x3f800000
sub esp, 0xc
fld dword [esi - 0x18]
fsub dword [esi - 0x28]
lea edi, [esi - 0x34]
lea ecx, [esp + 0x60]
fstp dword [esp + 0xc]
fld dword [esi - 0x1c]
fsub dword [esi - 0x2c]
fstp dword [esp + 8]
fld dword [esi - 0x20]
fsub dword [esi - 0x30]
fstp dword [esp + 4]
fld dword [esi - 0x24]
fsub dword [edi]
fstp dword [esp]
call fcn.0045dab0
fld dword [esp + 0x50]
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul dword [esp + 0x54]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul dword [esp + 0x58]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul dword [esp + 0x5c]
fstp dword [esp + 0x20]
push edi
lea ecx, [esp + 0x18]
call fcn.0041fc50
mov ecx, dword [esi - 0x3c]
lea eax, [esp + 0x14]
push eax
call fcn.00479e70
mov al, byte [esi + 0xc]
test al, al
je 0x47926c
lea ecx, [esi + 0x30]
lea edi, [esi + 0x40]
push ecx
mov ecx, edi
call fcn.0041fc50
fld dword [edi]
call fcn.005749d0
and eax, 0xfff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [edi]
fld dword [esi + 0x44]
call fcn.005749d0
and eax, 0xfff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esi + 0x44]
fld dword [esi + 0x48]
call fcn.005749d0
and eax, 0xfff
push ecx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esi + 0x48]
fld dword [0x58aa18]
fmul dword [edi]
fmul dword [0x58aa1c]
fstp dword [esp]
call fcn.00402d10
fabs
fstp dword [esp + 0x34]
fld dword [0x58aa18]
fmul dword [esi + 0x44]
fmul dword [0x58aa1c]
fstp dword [esp]
call fcn.00402d10
fabs
fstp dword [esp + 0x38]
fld dword [0x58aa18]
fmul dword [esi + 0x48]
fmul dword [0x58aa1c]
fstp dword [esp]
call fcn.00402d10
lea edi, [esi + 0x10]
lea edx, [esi + 0x20]
push edi
lea eax, [esp + 0x68]
fabs
fstp dword [esp + 0x40]
push edx
push eax
mov dword [esp + 0x4c], 0x3f800000
call fcn.00404c70
add esp, 0x10
lea ecx, [esp + 0x30]
push eax
call fcn.00479da0
push edi
lea ecx, [esp + 0x34]
call fcn.0041fc50
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi - 0x3c]
call fcn.00403740
mov al, byte [esi + 0x50]
test al, al
je 0x479363
lea edi, [esi + 0x74]
lea edx, [esi + 0x84]
push edx
mov ecx, edi
call fcn.0041fc50
fld dword [edi]
call fcn.005749d0
and eax, 0xfff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [edi]
fld dword [esi + 0x78]
call fcn.005749d0
and eax, 0xfff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esi + 0x78]
fld dword [esi + 0x7c]
call fcn.005749d0
and eax, 0xfff
push ecx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esi + 0x7c]
fld dword [0x58aa18]
fmul dword [edi]
fmul dword [0x58aa1c]
fstp dword [esp]
call fcn.00402d10
fabs
fstp dword [esp + 0x44]
fld dword [0x58aa18]
fmul dword [esi + 0x78]
fmul dword [0x58aa1c]
fstp dword [esp]
call fcn.00402d10
fabs
fstp dword [esp + 0x48]
fld dword [0x58aa18]
fmul dword [esi + 0x7c]
fmul dword [0x58aa1c]
fstp dword [esp]
call fcn.00402d10
lea edi, [esi + 0x54]
lea eax, [esi + 0x64]
push edi
lea ecx, [esp + 0x78]
fabs
fstp dword [esp + 0x50]
push eax
push ecx
mov dword [esp + 0x5c], 0x3f800000
call fcn.00404c70
add esp, 0x10
lea ecx, [esp + 0x40]
push eax
call fcn.00479da0
push edi
lea ecx, [esp + 0x44]
call fcn.0041fc50
mov ecx, dword [esi - 0x3c]
lea edx, [esp + 0x40]
push edx
call fcn.00479ed0
mov eax, dword [ebp + 0x18]
add esi, 0xd4
inc ebx
cmp ebx, eax
jl 0x47902a
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 4]
xor ebx, ebx
test ecx, ecx
jle 0x4793d8
lea edi, [eax + 0x50]
mov eax, dword [edi]
test eax, 0x40000000
jne 0x4793ca
test eax, 0x20000000
je 0x4793a2
lea eax, [edi + 0xc]
mov ecx, esi
push eax
call fcn.00479ed0
lea ecx, [edi - 0x44]
push esi
lea edx, [esp + 0x84]
push ecx
push edx
call fcn.004592d0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00403a00
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
add esi, 0x40
add edi, 0x6c
inc ebx
cmp ebx, eax
jl 0x479387
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 8