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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov eax, dword [ebp + 0x10]
mov esi, dword [edx - 4]
sub edx, 4
sub eax, 0
mov dword [esp + 0xc], edx
je 0x51581e
dec eax
jne 0x515921
mov eax, dword [esi + 0x70]
mov ecx, dword [edi + 0x70]
cmp ecx, eax
jl 0x515907
jne 0x515921
fld qword [edi + 0x78]
fcomp qword [0x4d50e8]
fnstsw ax
test ah, 1
je 0x5157a0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
add eax, 8
xor ecx, ecx
xor edx, edx
mov eax, dword [eax]
mov ebx, dword [eax - 8]
test ebx, ebx
jbe 0x51577c
movsx ebx, byte [eax + ecx]
add edx, ebx
mov ebx, dword [eax - 8]
inc ecx
cmp ecx, ebx
jb 0x51576e
mov eax, edx
xor edx, edx
mov ecx, 0x2710
mov dword [esp + 0x14], 0
div ecx
mov dword [esp + 0x10], edx
fild qword [esp + 0x10]
fmul qword [0x4d50e0]
fstp qword [edi + 0x78]
fld qword [esi + 0x78]
fcomp qword [0x4d50e8]
mov eax, dword [edi + 0x7c]
mov edx, dword [edi + 0x78]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
fnstsw ax
test ah, 1
je 0x515807
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
add eax, 8
xor ecx, ecx
xor edx, edx
mov eax, dword [eax]
mov ebx, dword [eax - 8]
test ebx, ebx
jbe 0x5157e3
movsx ebx, byte [eax + ecx]
add edx, ebx
mov ebx, dword [eax - 8]
inc ecx
cmp ecx, ebx
jb 0x5157d5
mov eax, edx
xor edx, edx
mov ecx, 0x2710
mov dword [esp + 0x1c], 0
div ecx
mov dword [esp + 0x18], edx
fild qword [esp + 0x18]
fmul qword [0x4d50e0]
fstp qword [esi + 0x78]
fld qword [esi + 0x78]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x51592a
jmp 0x515900
mov eax, dword [esi + 0x70]
mov ecx, dword [edi + 0x70]
cmp ecx, eax
jg 0x515907
jne 0x515921
fld qword [edi + 0x78]
fcomp qword [0x4d50e8]
fnstsw ax
test ah, 1
je 0x51588b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
add eax, 8
xor ecx, ecx
xor edx, edx
mov eax, dword [eax]
mov ebx, dword [eax - 8]
test ebx, ebx
jbe 0x515867
movsx ebx, byte [eax + ecx]
add edx, ebx
mov ebx, dword [eax - 8]
inc ecx
cmp ecx, ebx
jb 0x515859
mov eax, edx
xor edx, edx
mov ecx, 0x2710
mov dword [esp + 0x2c], 0
div ecx
mov dword [esp + 0x28], edx
fild qword [esp + 0x28]
fmul qword [0x4d50e0]
fstp qword [edi + 0x78]
fld qword [esi + 0x78]
fcomp qword [0x4d50e8]
mov eax, dword [edi + 0x7c]
mov edx, dword [edi + 0x78]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
fnstsw ax
test ah, 1
je 0x5158f2
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
add eax, 8
xor ecx, ecx
xor edx, edx
mov eax, dword [eax]
mov ebx, dword [eax - 8]
test ebx, ebx
jbe 0x5158ce
movsx ebx, byte [eax + ecx]
add edx, ebx
mov ebx, dword [eax - 8]
inc ecx
cmp ecx, ebx
jb 0x5158c0
mov eax, edx
xor edx, edx
mov ecx, 0x2710
mov dword [esp + 0x34], 0
div ecx
mov dword [esp + 0x30], edx
fild qword [esp + 0x30]
fmul qword [0x4d50e0]
fstp qword [esi + 0x78]
fld qword [esi + 0x78]
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 1
je 0x515915
mov edx, dword [esp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebx], eax
mov ebx, edx
mov dword [ebp + 8], ebx
jmp 0x515716
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov dword [edx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret