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

Disassembly:
sub esp, 0xe8
push ebx
push esi
push edi
mov esi, ecx
lea edi, [esp + 0x60]
mov ebx, 3
mov ecx, edi
call fcn.00402a70
add edi, 0x14
dec ebx
jne 0x505e34
mov al, byte [esi + 0x48]
test al, al
jne 0x505e58
fld dword [0x58930c]
pop edi
pop esi
pop ebx
add esp, 0xe8
ret
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x38]
mov ebx, dword [esi + 0x44]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x3c]
push ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x24], ecx
xor esi, esi
lea edi, [esp + 0x6c]
mov al, byte [ebp + 0xa]
mov ecx, dword [ebp + 0xc]
test al, al
je 0x505e96
lea edx, [ecx + ebx*8]
movzx ax, byte [edx + esi + 4]
jmp 0x505ea1
lea eax, [ebx + ebx*2]
lea edx, [esi + eax*2]
mov ax, word [ecx + edx*2 + 4]
mov edx, dword [ebp + 0x30]
and eax, 0xffff
shl eax, 4
mov eax, dword [eax + edx + 0xc]
mov dword [esp + esi*4 + 0x14], eax
mov al, byte [ebp + 0xa]
test al, al
je 0x505ec6
lea ecx, [ecx + ebx*8]
movzx ax, byte [ecx + esi + 4]
jmp 0x505ed1
lea edx, [ebx + ebx*2]
lea eax, [esi + edx*2]
mov ax, word [ecx + eax*2 + 4]
mov ecx, dword [esp + 0x4c]
and eax, 0xffff
push eax
lea eax, [esp + 0x58]
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
fld dword [esp + 0x54]
fsub dword [esp + 0x48]
xor ecx, ecx
xor edx, edx
mov cl, byte [esp + esi*4 + 0x16]
mov dl, byte [esp + esi*4 + 0x15]
xor eax, eax
add ecx, edx
fstp dword [edi - 8]
fld dword [esp + 0x58]
fsub dword [esp + 0x50]
mov al, byte [esp + esi*4 + 0x14]
mov dword [edi + 4], 0x3f800000
add ecx, eax
inc esi
mov dword [esp + 0x10], ecx
fstp dword [edi - 4]
fld dword [esp + 0x5c]
fsub dword [esp + 0x24]
add edi, 0x14
cmp esi, 3
fstp dword [edi - 0x14]
fild dword [esp + 0x10]
fmul dword [0x58b5ac]
fstp dword [edi - 0xc]
jb 0x505e81
lea ecx, [esp + 0x14]
lea edx, [esp + 0x64]
push ecx
push edx
lea ecx, [esp + 0xe0]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x3f800000
call fcn.00401dc0
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x78]
push eax
push ecx
lea ecx, [esp + 0xc0]
call fcn.00401dc0
lea edx, [esp + 0xb4]
push 0
lea eax, [esp + 0xb4]
push edx
lea ecx, [esp + 0xa8]
push eax
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0xc8]
push edx
lea ecx, [esp + 0xec]
push eax
push ecx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0x3f800000
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0x3f800000
call fcn.00401950
fld dword [esp + 0x54]
fsub dword [esp + 0x94]
fld dword [esp + 0x58]
fsub dword [esp + 0x98]
fld dword [esp + 0x5c]
fsub dword [esp + 0x9c]
add esp, 0x1c
lea ecx, [esp + 0x28]
fstp dword [esp + 0x5c]
fld dword [esp + 0x44]
fsub dword [esp + 0x84]
mov edx, dword [esp + 0x5c]
fstp dword [esp + 0x60]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x30], edx
fxch st(1)
fstp dword [esp + 0x28]
mov dword [esp + 0x34], eax
fstp dword [esp + 0x2c]
call fcn.00403940
fstp dword [esp + 0x10]
fld dword [esp + 0x98]
fsub dword [esp + 0x84]
sub esp, 0x10
lea ecx, [esp + 0x24]
fstp dword [esp + 0xc]
fld dword [esp + 0xa4]
fsub dword [esp + 0x90]
fstp dword [esp + 8]
fld dword [esp + 0xa0]
fsub dword [esp + 0x8c]
fstp dword [esp + 4]
fld dword [esp + 0x9c]
fsub dword [esp + 0x88]
fstp dword [esp]
call fcn.0045dab0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.00403940
fld dword [esp + 0x10]
fsqrt
lea ecx, [esp + 0x64]
fxch st(1)
fsqrt
fxch st(1)
fxch st(1)
fdivp st(1)
fld dword [esp + 0x9c]
fsub dword [esp + 0x88]
fmulp st(1)
fadd dword [esp + 0x88]
fstp dword [esp + 0x24]
call fcn.00403940
fstp dword [esp + 0x10]
fld dword [esp + 0x44]
fsub dword [esp + 0x70]
sub esp, 0x10
lea ecx, [esp + 0x24]
fstp dword [esp + 0xc]
fld dword [esp + 0x50]
fsub dword [esp + 0x7c]
fstp dword [esp + 8]
fld dword [esp + 0x4c]
fsub dword [esp + 0x78]
fstp dword [esp + 4]
fld dword [esp + 0x48]
fsub dword [esp + 0x74]
fstp dword [esp]
call fcn.0045dab0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], edx
call fcn.00403940
fld dword [esp + 0x10]
fsqrt
pop ebp
pop edi
pop esi
pop ebx
fxch st(1)
fsqrt
fxch st(1)
fxch st(1)
fdivp st(1)
fld dword [esp + 0x14]
fsub dword [esp + 0x64]
fmulp st(1)
fadd dword [esp + 0x64]
add esp, 0xe8
ret