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

Disassembly:
sub esp, 0xc0
push ebp
mov ebp, ecx
xor eax, eax
xor ecx, ecx
mov al, byte [ebp + 7]
mov cl, byte [ebp + 9]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x34]
fild dword [esp + 8]
mov dword [esp + 8], ecx
push edi
xor edi, edi
fmul dword [0x58b680]
cmp eax, edi
fmul dword [0x58930c]
fstp dword [esp + 0x68]
fild dword [esp + 0xc]
mov dword [esp + 0xc], edi
fmul dword [0x58b688]
fmul dword [0x58930c]
fstp dword [esp + 0x70]
jbe 0x51f2fd
mov eax, 0xffffffe8
lea edx, [ebp + 0x14]
push ebx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jmp 0x51f0bf
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
jge 0x51f0c9
mov esi, dword [esp + 0x1c]
jmp 0x51f0ce
mov esi, dword [ebp + 0x2c]
add esi, eax
mov ecx, dword [esi + 8]
lea edx, [esp + 0x80]
push edx
mov eax, dword [ecx]
call dword [eax]
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 2]
mov cl, byte [esi + 1]
mov dword [esp + 0x10], eax
xor edx, edx
fild dword [esp + 0x10]
mov dl, byte [esi]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x6c], 0x3f800000
lea eax, [esp + 0x28]
fmul dword [0x58b688]
fld dword [esp + 0x88]
fmul dword [0x58930c]
mov ecx, 4
faddp st(1)
fsub dword [esp + 0x78]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fmul dword [0x58b684]
fild dword [esp + 0x10]
fmul dword [0x58b680]
fld dword [esp + 0x80]
fmul dword [0x58930c]
faddp st(1)
fsub dword [esp + 0x70]
fstp dword [esp + 0x60]
fstp dword [esp + 0x64]
fstp dword [esp + 0x68]
mov dword [eax - 8], edi
mov dword [eax - 4], edi
mov dword [eax], edi
mov dword [eax + 4], 0x3f800000
add eax, 0x10
dec ecx
jne 0x51f158
lea eax, [esp + 0x60]
lea ecx, [esp + 0x50]
push eax
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x3f800000
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0x3f800000
call fcn.00499d60
fld dword [0x58b5e0]
fmul dword [esp + 0xe4]
lea edi, [esp + 0x90]
mov ebx, 4
fmul dword [0x5892f8]
fstp dword [esp + 0x10]
mov ecx, edi
call fcn.00402a70
add edi, 0x10
dec ebx
jne 0x51f21e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.004032d0
add esp, 8
lea ecx, [esp + 0x20]
push eax
call fcn.00403b00
fld dword [esp + 0x50]
fadd dword [esp + 0xd4]
lea eax, [esp + 0x50]
push 1
push eax
fstp dword [esp + 0x58]
fld dword [esp + 0x5c]
fadd dword [esp + 0xe0]
fstp dword [esp + 0x5c]
fld dword [esp + 0x60]
fadd dword [esp + 0xe4]
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fadd dword [esp + 0xe8]
fstp dword [esp + 0x64]
mov ecx, dword [esi + 8]
call fcn.0052bb30
mov ecx, eax
call fcn.0052bc90
xor ecx, ecx
mov cl, byte [esi + 3]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 8]
fild dword [esp + 0x10]
fmul dword [0x58ac64]
fadd dword [esp + 0xe4]
fstp dword [esp + 0x10]
mov edx, dword [esp + 0x10]
push edx
call fcn.0052bb30
mov ecx, eax
call fcn.0052bd00
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, 0xc
add esi, ecx
add edx, ecx
mov ecx, dword [ebp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
jb 0x51f0b9
pop esi
pop ebx
pop edi
pop ebp
add esp, 0xc0
ret 0x14