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

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x90
mov ebp, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
mov byte [esp + 8], 0
movsx edx, word [ebp + 0x5c]
mov esi, ecx
mov eax, dword [edx*4 + 0x92d4c8]
mov dword [esp + 4], eax
mov eax, edx
sub edx, 0xa1
cmp edx, 1
ja case.0x515d1b.162
jmp dword [edx*4 + 0x692984]
mov word [esi + 0x380], 0xb
lea eax, [esp + 0x48]
push 0xb
push ebp
push eax
call fcn.005164d0
fld dword [esp + 0x54]
fstp dword [ebx]
fld dword [esp + 0x58]
add esp, 0xc
mov al, 1
fstp dword [ebx + 4]
fld dword [esp + 0x50]
fstp dword [ebx + 8]
add esp, 0x90
pop ebp
pop edi
pop esi
pop ebx
ret 8
fld dword [0x692840]
fstp dword [esp + 0xc]
fld dword [0x692840]
fstp dword [esp + 0x10]
fld dword [0x692840]
fstp dword [esp + 0x14]
fld dword [0x692840]
fstp dword [esp + 0x18]
fld dword [0x692840]
fstp dword [esp + 0x1c]
fld dword [0x692840]
fstp dword [esp + 0x20]
cmp dword [ebp + 0x29c], 5
jne 0x515e90
cmp dword [ebp + 0x1ac], 0
jne 0x515e15
movzx eax, byte [ebp + 0x1ce]
and eax, 2
jne 0x515e15
mov ecx, ebp
mov edi, dword [ecx]
push 0
push 0x10
call dword [edi + 0x8c]
test al, al
je 0x515e15
lea eax, [esp + 0x54]
push 0x10
push ebp
push eax
call fcn.005164d0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
fld dword [esp + 0x60]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
lea eax, [esi + 0x34]
add esp, 0xc
fsub dword [eax]
mov byte [esp + 8], 1
fstp dword [esp + 0x14]
fld dword [esp + 0x28]
fsub dword [eax + 4]
fstp dword [esp + 0x18]
cmp dword [ebp + 0x1ac], 0
jne 0x515eff
movzx eax, byte [ebp + 0x1ce]
and eax, 8
jne 0x515eff
mov ecx, ebp
mov edi, dword [ecx]
push 0
push 0xc
call dword [edi + 0x8c]
test al, al
je 0x515eff
lea eax, [esp + 0x60]
push 0xc
push ebp
push eax
call fcn.005164d0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
fld dword [esp + 0x6c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
lea eax, [esi + 0x34]
add esp, 0xc
fsub dword [eax]
fstp dword [esp + 0x1c]
fld dword [esp + 0x34]
fsub dword [eax + 4]
fstp dword [esp + 0x20]
jmp 0x515efa
cmp dword [ebp + 0x1ac], 0
jne 0x515eff
movzx eax, byte [ebp + 0x1ce]
and eax, 4
jne 0x515eff
mov ecx, ebp
mov edi, dword [ecx]
push 0
push 0xb
call dword [edi + 0x8c]
test al, al
je 0x515eff
lea eax, [esp + 0x6c]
push 0xb
push ebp
push eax
call fcn.005164d0
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x80]
fld dword [esp + 0x78]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
lea eax, [esi + 0x34]
add esp, 0xc
fsub dword [eax]
fstp dword [esp + 0xc]
fld dword [esp + 0x40]
fsub dword [eax + 4]
fstp dword [esp + 0x10]
mov byte [esp + 8], 1
mov eax, dword [esp + 4]
cmp byte [eax + 0x48], 4
jne 0x51600e
cmp dword [ebp + 0x1b0], 0
jne 0x515f85
movzx eax, byte [ebp + 0x1ce]
and eax, 2
jne 0x515f85
mov ecx, ebp
mov edi, dword [ecx]
push 0
push 0x10
call dword [edi + 0x8c]
test al, al
je 0x515f85
lea eax, [esp + 0x78]
push 0x10
push ebp
push eax
call fcn.005164d0
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
fld dword [esp + 0x84]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
lea eax, [esi + 0x34]
add esp, 0xc
fsub dword [eax]
mov byte [esp + 8], 1
fstp dword [esp + 0x14]
fld dword [esp + 0x28]
fsub dword [eax + 4]
fstp dword [esp + 0x18]
cmp dword [ebp + 0x1b4], 0
jne 0x516000
movzx eax, byte [ebp + 0x1ce]
and eax, 8
jne 0x516000
mov ecx, ebp
mov edi, dword [ecx]
push 0
push 0xc
call dword [edi + 0x8c]
test al, al
je 0x516000
lea eax, [esp + 0x84]
push 0xc
push ebp
push eax
call fcn.005164d0
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x98]
fld dword [esp + 0x90]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
lea eax, [esi + 0x34]
add esp, 0xc
fsub dword [eax]
mov byte [esp + 8], 1
fstp dword [esp + 0x1c]
fld dword [esp + 0x34]
fsub dword [eax + 4]
fstp dword [esp + 0x20]
cmp byte [esp + 8], 0
jne 0x51600e
mov ecx, ebp
call fcn.005b7b10
fldz
fldz
fld dword [esp + 0xc]
fstp st(2)
fld dword [esp + 0x10]
fstp st(1)
fld dword [esp + 0x3c]
fstp dword [ebx]
fld dword [esp + 0x40]
fstp dword [ebx + 4]
fld dword [esp + 0x44]
fstp dword [ebx + 8]
mov word [esi + 0x380], 0xb
fld dword [esp + 0x10]
fmul st(0)
fld dword [esp + 0xc]
fmul st(0)
faddp st(1)
fld dword [esp + 0x18]
fmul st(0)
fld dword [esp + 0x14]
fmul st(0)
faddp st(1)
fcompp
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51608c
mov word [esi + 0x380], 0x10
fld dword [esp + 0x14]
fstp st(2)
fld dword [esp + 0x18]
fstp st(1)
fld dword [esp + 0x24]
fstp dword [ebx]
fld dword [esp + 0x28]
fstp dword [ebx + 4]
fld dword [esp + 0x2c]
fstp dword [ebx + 8]
fld st(0)
fmul st(0)
fld st(2)
fmul st(0)
faddp st(1)
fld dword [esp + 0x20]
fmul st(0)
fld dword [esp + 0x1c]
fmul st(0)
faddp st(1)
fcompp
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x5160cd
mov word [esi + 0x380], 0xc
fld dword [esp + 0x30]
fstp dword [ebx]
fld dword [esp + 0x34]
fstp dword [ebx + 4]
fld dword [esp + 0x38]
fstp dword [ebx + 8]
fcompp
mov al, byte [esp + 8]
add esp, 0x90
pop ebp
pop edi
pop esi
pop ebx
ret 8