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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d7978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [ecx + 0x18]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x3ff80000
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x3ff80000
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
call fcn.004b8b40
fcom qword [0x5e2798]
fnstsw ax
test ah, 1
jne 0x51e3d4
fcomp qword [0x5e2858]
fnstsw ax
test ah, 1
je 0x51e3d6
lea ecx, [ebp + 0x10]
push ecx
mov ecx, edi
call fcn.004b8ae0
fcom qword [0x5e2790]
fnstsw ax
test ah, 0x41
jne 0x51e3e7
fcom qword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x51e3c1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
fstp qword [esp + 0x1c]
mov ebx, esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov esi, edi
jmp 0x51e3d6
fcom qword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x51e3d4
fstp qword [esp + 0x24]
mov ebx, edi
jmp 0x51e3d6
fstp st(0)
mov ecx, dword [esp + 0x30]
mov edi, dword [edi + 0x5c]
cmp edi, dword [ecx + 0x18]
je 0x51e3ee
jmp 0x51e35b
fstp st(0)
jmp 0x51e7ca
test esi, esi
je 0x51e7ca
test ebx, ebx
je 0x51e7ca
cmp esi, ebx
je 0x51e7ca
lea edx, [ebp + 0x10]
mov ecx, esi
push edx
call fcn.004b8b40
fst qword [esp + 0x34]
fmul qword [esi + 0x18]
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
fadd qword [esi]
fstp qword [esp + 0x54]
fld qword [esp + 0x38]
fmul qword [esi + 0x20]
fadd qword [esi + 8]
fstp qword [esp + 0x5c]
call fcn.004b8b40
fst qword [esp + 0x3c]
fmul qword [ebx + 0x18]
mov edi, dword [ebp + 0x20]
lea eax, [esp + 0x50]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
fadd qword [ebx]
mov edx, dword [edi + 8]
fstp qword [esp + 0x60]
fld qword [esp + 0x3c]
fmul qword [ebx + 0x20]
fadd qword [ebx + 8]
fstp qword [esp + 0x68]
test edx, edx
mov dword [esp + 0x10], 0
jle 0x51e4b4
mov ecx, dword [edi + 4]
fld qword [ecx]
fsub qword [eax]
fld qword [ecx + 8]
fsub qword [eax + 8]
fld st(1)
fmul st(2)
fld st(1)
fmul st(2)
faddp st(1)
fcomp qword [0x5e2858]
fnstsw ax
fstp st(0)
test ah, 1
fstp st(0)
jne 0x51e7ca
mov eax, dword [esp + 0x10]
add ecx, 0x10
inc eax
mov dword [esp + 0x10], eax
cmp eax, edx
mov eax, dword [esp + 0x14]
jl 0x51e477
mov ecx, dword [esp + 0x1c]
add eax, 0x10
inc ecx
mov dword [esp + 0x14], eax
cmp ecx, 2
mov dword [esp + 0x1c], ecx
jl 0x51e468
mov dword [esp + 0x10], esi
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x51e542
xor esi, esi
mov edx, dword [edi + 4]
mov ecx, esi
add ecx, edx
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004b8ae0
fcomp qword [0x5e2788]
fnstsw ax
test ah, 1
je 0x51e52b
mov ecx, dword [edi + 4]
mov edx, esi
add edx, ecx
mov ecx, dword [esp + 0x10]
push edx
call fcn.004b8b40
fcom qword [0x5e2798]
fnstsw ax
test ah, 1
jne 0x51e529
fcomp qword [0x5e2858]
fnstsw ax
test ah, 0x41
jne 0x51e53e
jmp 0x51e52b
fstp st(0)
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 8]
inc eax
add esi, 0x10
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x51e4de
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x5c]
mov dword [esp + 0x10], eax
cmp dword [eax + 0x60], ebx
jne 0x51e4cd
lea ecx, [esp + 0x60]
lea edx, [esp + 0x50]
push ecx
lea eax, [ebp + 0x10]
push edx
push eax
call fcn.0056bec0
fcomp qword [0x5e2798]
add esp, 0xc
fnstsw ax
test ah, 1
je 0x51e59b
fld qword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
fstp qword [esp + 0x34]
mov dword [esp + 0x48], ebx
mov ebx, esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x70]
call fcn.004ccd50
lea eax, [esp + 0x60]
lea ecx, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0xa8], 0
call fcn.004b8810
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [ebx]
push eax
push ecx
push edx
lea ecx, [esp + 0x80]
call fcn.004b8b00
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
fstp qword [esp + 0x1c]
push eax
push ecx
push 0
push 0
mov ecx, ebx
call fcn.004b8800
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
fstp qword [esp + 0x14]
push 0x3ff00000
push 0
push edx
push eax
mov ecx, esi
call fcn.004b8800
fadd qword [esp + 0x14]
mov esi, dword [esi + 0x5c]
cmp esi, ebx
fstp qword [esp + 0x14]
je 0x51e678
fld qword [esp + 0x14]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
fadd qword [esi + 0x10]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
fstp qword [esp + 0x24]
lea ecx, [esp + 0x80]
call fcn.004b8b00
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x51e671
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
lea ecx, [esp + 0x80]
call fcn.004b8b00
fstp qword [esp + 0x1c]
mov esi, dword [esi + 0x5c]
cmp esi, ebx
jne 0x51e621
fld qword [esp + 0x14]
fcomp qword [0x5e2858]
fnstsw ax
test ah, 1
jne 0x51e7b6
fld qword [esp + 0x1c]
fcomp qword [0x5e27e0]
fnstsw ax
test ah, 1
jne 0x51e7b6
fld qword [esp + 0x1c]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 1
je 0x51e6ff
fld qword [esp + 0x14]
fmul qword [0x5e27e0]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x4c]
sub esp, 8
fstp qword [esp]
push ecx
push edx
push eax
call fcn.0051e280
fld qword [esp + 0x2c]
fmul qword [0x5ebbc0]
mov edx, dword [esp + 0x50]
add esp, 0x18
lea ecx, [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x34]
push ecx
sub esp, 8
fstp qword [esp]
push edx
push eax
jmp 0x51e75f
fld qword [ebp + 8]
fdiv qword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x4c]
sub esp, 8
fstp qword [esp + 0x28]
fld qword [0x5e2858]
fsub qword [esp + 0x28]
fmul qword [esp + 0x20]
fmul qword [0x5e2790]
fstp qword [esp]
push edx
push eax
push ecx
call fcn.0051e280
fld qword [esp + 0x34]
fmul qword [esp + 0x2c]
add esp, 0x18
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x38]
push edx
sub esp, 8
fstp qword [esp]
push eax
push ecx
push esi
call fcn.0051e280
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
add esp, 0x18
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
push esi
call fcn.0051e120
lea ecx, [esp + 0x70]
mov bl, al
mov dword [esp + 0xa0], 0xffffffff
call fcn.0042bd50
mov al, bl
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
lea ecx, [esp + 0x70]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x98]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c