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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x5857cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
imul eax, eax, 0xb8
push eax
mov dword [ebp - 0x44], esi
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
call fcn.00514680
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
cmp dword [esi + 0x20], eax
jle 0x51c36f
push ebx
push edi
mov dword [ebp - 0x4c], eax
jmp 0x51be26
mov esi, ecx
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
mov edi, dword [ecx + 0x1c]
fld dword [edi + 8]
mov edi, dword [edx + 0x1c]
mov ebx, dword [edx + 0x18]
fstp dword [ebp - 0x3c]
fld dword [edi + 8]
mov edi, dword [ecx + 0x18]
fstp dword [ebp - 0x2c]
add eax, 0x38
fld dword [edx + 0x20]
mov dword [ebp - 0x24], ecx
fmul dword [ecx + 0x20]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], eax
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
call fcn.0052170c
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
fstp dword [ebp - 0x20]
fld dword [edx + 0x24]
fstp dword [ebp - 0x30]
fld dword [eax + 0x24]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
fld dword [ebp - 0x30]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x51be98
fstp st(0)
jmp 0x51be9a
fstp st(1)
mov ecx, dword [edi + 0x48]
fstp dword [ebp - 0x24]
fld dword [edi + 0x50]
mov edx, dword [edi + 0x4c]
mov eax, dword [ebx + 0x48]
fstp dword [ebp - 0x30]
fld dword [ebx + 0x50]
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebx + 0x4c]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x2c]
push ecx
fstp dword [esp]
mov dword [ebp - 0x94], edx
fld dword [ebp - 0x3c]
lea edx, [ebx + 0xc]
push edx
push ecx
mov dword [ebp - 0x90], eax
fstp dword [esp]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0x34]
lea eax, [edi + 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0051d3a0
fld dword [ebp - 0x20]
mov esi, dword [esi + 0x1c]
add esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xb4], eax
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x70], edx
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x74], ecx
mov edx, dword [eax + 0x3c]
fstp dword [esi + 0xa8]
fld dword [ebp - 0x24]
mov dword [esi + 0xb0], edx
cmp dword [esi + 0xb0], 0
fstp dword [esi + 0xac]
mov ecx, dword [eax + 0x28]
fld dword [ebp - 0x2c]
fadd dword [ebp - 0x3c]
mov dword [esi + 0x60], ecx
mov edx, dword [eax + 0x2c]
mov dword [esi + 0x64], edx
mov ecx, dword [eax + 0x30]
mov dword [esi + 0x68], ecx
mov edx, dword [eax + 0x34]
fstp dword [esi + 0xa4]
mov dword [esi + 0x6c], edx
mov ecx, dword [eax + 0x38]
mov dword [esi + 0xa0], ecx
mov dword [ebp - 0x2c], 0
jle 0x51c1e2
fld dword [ebp - 0x30]
lea edx, [eax + 0xc]
fchs
lea ecx, [esi + 0x14]
fstp dword [ebp - 0x40]
fld dword [ebp - 0x28]
fchs
fstp dword [ebp - 0x38]
fld dword [ebp - 0x94]
fld dword [ebp - 0x98]
fld1
fld dword [edx - 4]
fstp dword [ecx + 4]
fld dword [edx]
fstp dword [ecx + 8]
mov eax, dword [edx - 0xc]
mov dword [ecx - 0x14], eax
mov eax, dword [edx - 8]
mov dword [ecx - 0x10], eax
mov eax, dword [ebp - 0x2c]
fld dword [ebp + eax*8 - 0x14]
fsub dword [edi + 0x34]
fstp dword [ebp - 0x64]
fld dword [ebp + eax*8 - 0x10]
mov eax, dword [ebp - 0x64]
fsub dword [edi + 0x38]
mov dword [ecx - 0xc], eax
fstp dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
mov dword [ecx - 8], eax
mov eax, dword [ebp - 0x2c]
fld dword [ebp + eax*8 - 0x14]
fsub dword [ebx + 0x34]
fstp dword [ebp - 0xa0]
fld dword [ebp + eax*8 - 0x10]
mov eax, dword [ebp - 0xa0]
fsub dword [ebx + 0x38]
mov dword [ecx - 4], eax
fstp dword [ebp - 0x9c]
mov eax, dword [ebp - 0x9c]
mov dword [ecx], eax
fld dword [ecx - 0xc]
fmul dword [esi + 0x74]
fld dword [esi + 0x70]
fmul dword [ecx - 8]
fsubp st(1)
fstp dword [ebp - 0x24]
fld dword [ecx - 4]
fmul dword [esi + 0x74]
fld dword [esi + 0x70]
fmul dword [ecx]
fsubp st(1)
fstp dword [ebp - 0x34]
fld dword [ebp - 0x24]
fmul st(0), st(0)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x34]
fmul st(0), st(0)
fstp dword [ebp - 0x34]
fld dword [edi + 0x88]
fld dword [ebp - 0x24]
fld st(0)
fmulp st(2)
fld dword [ebx + 0x80]
fadd dword [edi + 0x80]
faddp st(2)
fld dword [ebx + 0x88]
fld dword [ebp - 0x34]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fdivr st(3)
fstp dword [ecx + 0xc]
fld dword [edi + 0x88]
fmul dword [edi + 0x7c]
fmulp st(1)
fld dword [ebx + 0x7c]
fmul dword [ebx + 0x88]
fmulp st(2)
faddp st(1)
fld dword [ebx + 0x80]
fmul dword [ebx + 0x7c]
fld dword [edi + 0x80]
fmul dword [edi + 0x7c]
faddp st(1)
fstp dword [ebp - 0x20]
fadd dword [ebp - 0x20]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fdivr st(1)
fstp dword [ecx + 0x14]
fld dword [esi + 0x74]
fstp dword [ebp - 0x54]
fld dword [esi + 0x70]
fmul qword [0x5472b8]
fstp dword [ebp - 0x50]
fld dword [ecx - 0xc]
fld dword [ebp - 0x50]
fld st(0)
fmulp st(2)
fld dword [ebp - 0x54]
fld st(0)
fmul dword [ecx - 8]
fsubp st(3)
fxch st(2)
fstp dword [ebp - 0x20]
fmul dword [ecx - 4]
fld dword [ecx]
fmulp st(2)
fsubrp st(1)
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x20]
fld dword [ebp - 0x3c]
fld st(1)
fmulp st(2)
fxch st(1)
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fmul dword [edi + 0x88]
fld dword [ebx + 0x80]
fadd dword [edi + 0x80]
faddp st(1)
fld st(1)
fmulp st(2)
fxch st(1)
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fmul dword [ebx + 0x88]
faddp st(1)
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fdivr st(1)
fstp dword [ecx + 0x10]
fldz
fstp dword [ecx + 0x18]
fld dword [ebp - 0x40]
fmul dword [ecx - 8]
fstp dword [ebp - 0x78]
fld dword [ecx - 0xc]
fmul dword [ebp - 0x30]
fstp dword [ebp - 0x74]
fld dword [ebp - 0x38]
fmul dword [ecx]
fstp dword [ebp - 0x80]
fld dword [ecx - 4]
fmul dword [ebp - 0x28]
fstp dword [ebp - 0x7c]
fld dword [ebp - 0x90]
fadd dword [ebp - 0x80]
fstp dword [ebp - 0x5c]
fld dword [ebp - 0x8c]
fadd dword [ebp - 0x7c]
fstp dword [ebp - 0x58]
fld dword [ebp - 0x5c]
fsub st(2)
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x58]
fsub st(3)
fstp dword [ebp - 0x68]
fld dword [ebp - 0x6c]
fsub dword [ebp - 0x78]
fstp dword [ebp - 0x88]
fld dword [ebp - 0x68]
fsub dword [ebp - 0x74]
fstp dword [ebp - 0x84]
fld dword [esi + 0x70]
fmul dword [ebp - 0x88]
fld dword [ebp - 0x84]
fmul dword [esi + 0x74]
faddp st(1)
fstp dword [ebp - 0x20]
fld dword [0x546990]
fld dword [ebp - 0x20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x51c1c1
fld dword [esi + 0xac]
fchs
fmulp st(1)
fstp dword [ecx + 0x18]
jmp 0x51c1c3
fstp st(0)
mov eax, dword [ebp - 0x2c]
inc eax
add edx, 0x14
add ecx, 0x30
mov dword [ebp - 0x2c], eax
cmp eax, dword [esi + 0xb0]
jl 0x51bf96
fstp st(0)
fstp st(1)
fstp st(0)
cmp dword [esi + 0xb0], 2
jne 0x51c340
fld dword [edi + 0x80]
fstp dword [ebp - 0x28]
fld dword [edi + 0x88]
fstp dword [ebp - 0x40]
fld dword [ebx + 0x80]
fstp dword [ebp - 0x20]
fld dword [ebx + 0x88]
fstp dword [ebp - 0x3c]
fld dword [esi + 8]
fmul dword [esi + 0x74]
fld dword [esi + 0xc]
fmul dword [esi + 0x70]
fsubp st(1)
fstp dword [ebp - 0x38]
fld dword [esi + 0x10]
fmul dword [esi + 0x74]
fld dword [esi + 0x14]
fmul dword [esi + 0x70]
fsubp st(1)
fstp dword [ebp - 0x30]
fld dword [esi + 0x38]
fmul dword [esi + 0x74]
fld dword [esi + 0x3c]
fmul dword [esi + 0x70]
fsubp st(1)
fstp dword [ebp - 0x34]
fld dword [esi + 0x40]
fmul dword [esi + 0x74]
fld dword [esi + 0x44]
fmul dword [esi + 0x70]
fsubp st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x38]
fld st(0)
fld dword [ebp - 0x40]
fld st(0)
fmulp st(2)
fld dword [ebp - 0x20]
fadd dword [ebp - 0x28]
fld dword [ebp - 0x30]
fld st(0)
fld dword [ebp - 0x3c]
fld st(0)
fmulp st(2)
fxch st(6)
fmul st(5)
fadd st(3)
fxch st(2)
fmul st(1)
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x38]
fld dword [ebp - 0x34]
fld st(0)
fmulp st(4)
fld st(0)
fmulp st(4)
fxch st(3)
fadd st(2)
fld dword [ebp - 0x24]
fld st(0)
fmulp st(7)
fld st(0)
fmulp st(7)
fxch st(1)
faddp st(6)
fxch st(5)
fstp dword [ebp - 0x20]
fxch st(2)
fmulp st(3)
faddp st(2)
fmulp st(2)
faddp st(1)
fstp dword [ebp - 0x40]
fld dword [ebp - 0x38]
fld st(0)
fld dword [ebp - 0x40]
fld st(0)
fld st(2)
fmulp st(3)
fld dword [ebp - 0x20]
fld st(0)
fmul st(5)
fld st(2)
fmulp st(3)
fsubrp st(2)
fxch st(1)
fmul qword [0x546980]
fstp dword [ebp - 0x38]
fld dword [ebp - 0x38]
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 0x41
jne 0x51c330
lea ecx, [esi + 0x88]
fxch st(2)
fstp dword [ecx]
lea edx, [ebp - 0xb0]
fxch st(1)
push edx
fst dword [ecx + 4]
fstp dword [esi + 0x90]
fstp dword [esi + 0x94]
call fcn.005186f0
mov ecx, dword [eax]
mov dword [esi + 0x78], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x7c], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x80], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x84], edx
jmp 0x51c340
fstp st(1)
mov dword [esi + 0xb0], 1
fstp st(1)
fstp st(0)
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
add dword [ebp - 0x4c], 0xb8
inc eax
mov dword [ebp - 0x48], eax
cmp eax, dword [ecx + 0x20]
jl 0x51be24
pop edi
pop ebx
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521458
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00521458
mov esp, ebp
pop ebp
ret 0x10