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

Disassembly:
sub esp, 0x5c
push ebp
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.00516e00
mov eax, dword [esp + 0x78]
mov ecx, dword [0x69fdfc]
add esp, 8
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x70], edx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x70]
mov esi, dword [ecx]
fdivr dword [0x58b454]
mov eax, dword [esi + 0x60]
mov edx, dword [eax + 0x10]
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x70], eax
fst dword [esp + 0xc]
fild dword [esp + 0x1c]
fdivr dword [0x58b454]
fst dword [esp + 0x14]
fmul dword [0x58b4ec]
fstp dword [esp + 0x18]
fmul dword [0x58b4ec]
fstp dword [esp + 0x10]
call fcn.004b80b0
fstp dword [esp + 0x24]
fld dword [esi + 0x80]
fdivr dword [0x58b454]
mov eax, dword [esp + 0x88]
test eax, eax
fstp dword [esp + 0x20]
jne 0x5174bd
mov byte [0x5f8e24], 0
mov ecx, dword [esp + 0x6c]
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x88], ebp
test ecx, ecx
mov dword [esp + 0x1c], eax
jbe 0x5176f3
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x7c]
push edi
lea edi, [ecx + 4]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x7c], edx
lea esi, [ecx + 0x18]
mov ecx, dword [esp + 0x70]
mov al, byte [eax + ecx]
mov cl, byte [0x5f8e24]
cmp al, cl
je 0x5176d2
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x30], edx
add ecx, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x54]
add ecx, ebx
cmp ebx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
jge 0x5176d2
test ecx, ecx
jle 0x5176d2
cmp edx, dword [esp + 0x78]
jge 0x5176d2
mov ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x5176d2
mov ebp, dword [esp + 0x64]
xor edx, edx
movsx ecx, al
sub ecx, 0x20
mov eax, ecx
div ebp
mov edx, eax
imul edx, ebp
sub ecx, edx
mov edx, dword [esp + 0x5c]
imul ecx, dword [esp + 0x58]
imul edx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], ecx
add eax, ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
add eax, edx
test ebx, ebx
mov dword [esp + 0x4c], eax
jge 0x5175a4
sub edx, ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x3c]
dec eax
cmp ebp, eax
jle 0x5175c7
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
sub edx, ebp
mov ebp, dword [esp + 0x10]
lea edx, [edx + ebp - 1]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x7c]
test edx, edx
jge 0x5175dd
sub ecx, edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], ecx
mov ebp, dword [esp + 0x78]
lea eax, [ebp - 1]
cmp dword [esp + 0x38], eax
jle 0x5175fa
sub ecx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
lea ecx, [ecx + ebp - 1]
mov dword [esp + 0x48], ecx
fild dword [esp + 0x40]
lea eax, [esi - 0x10]
mov ecx, 4
fmul dword [esp + 0x1c]
fadd dword [esp + 0x20]
fst dword [esi - 4]
fild dword [esp + 0x44]
fmul dword [esp + 0x14]
fadd dword [esp + 0x18]
fst dword [esi]
fxch st(1)
fstp dword [esi + 0x18]
fild dword [esp + 0x4c]
fmul dword [esp + 0x14]
fadd dword [esp + 0x18]
fst dword [esi + 0x1c]
fild dword [esp + 0x48]
fmul dword [esp + 0x1c]
fadd dword [esp + 0x20]
fst dword [esi + 0x34]
fxch st(1)
fstp dword [esi + 0x38]
fstp dword [esi + 0x50]
fstp dword [esi + 0x54]
fild dword [esp + 0x30]
fst dword [esi - 0x18]
fild dword [esp + 0x34]
fst dword [esi - 0x14]
fxch st(1)
fstp dword [esi + 4]
fild dword [esp + 0x3c]
fst dword [esi + 8]
fild dword [esp + 0x38]
fst dword [esi + 0x20]
fxch st(1)
fstp dword [esi + 0x24]
fstp dword [esi + 0x3c]
fstp dword [esi + 0x40]
mov ebp, dword [esp + 0x28]
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x2c]
mov dword [eax], ebp
add eax, 0x1c
dec ecx
jne 0x517679
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
add esi, 0x70
lea eax, [eax + ebp*4]
mov word [edi - 4], ax
mov word [edi + 2], ax
lea ecx, [eax + 1]
mov word [edi - 2], cx
lea ecx, [eax + 2]
add eax, 3
inc ebp
mov word [edi], cx
mov word [edi + 4], cx
mov word [edi + 6], ax
mov dword [esp + 0x90], ebp
add edi, 0xc
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esp + 0x74]
inc eax
mov dword [esp + 0x7c], edx
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x5174fa
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x5c
ret