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

Disassembly:
push 0xffffffffffffffff
push 0x658808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x58]
call fcn.0051d780
mov ebp, dword [esp + 0xd4]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0xc8], ebx
mov ecx, pe_nt_image_headers32
mov edi, 0x6b8a90
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
mov edi, 0x6b8690
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
cmp byte [eax + 0x6c], bl
jne 0x5160ef
cmp dword [esp + 0x70], 8
jb 0x5167a2
mov ecx, dword [esp + 0x5c]
push ecx
jmp 0x51679a
mov edx, dword [ebp]
mov eax, dword [edx + 0x58]
mov ecx, ebp
call eax
mov eax, dword [esp + 0x6c]
xor esi, esi
test eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
jbe 0x51669a
jmp 0x516119
mov esi, dword [esp + 0x30]
cmp ebx, eax
jbe 0x516122
call fcn.0062472f
mov eax, dword [esp + 0x5c]
mov edi, 8
cmp dword [esp + 0x70], edi
jae 0x516135
lea eax, [esp + 0x5c]
movzx ecx, word [eax + ebx*2]
push ecx
mov eax, ebp
call fcn.00594040
movzx edx, ax
mov eax, dword [esp + 0x6c]
lea ecx, [eax - 1]
cmp ebx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
jae 0x516189
lea edx, [ebx + 1]
cmp edx, eax
jbe 0x516167
call fcn.0062472f
cmp dword [esp + 0x70], edi
mov eax, dword [esp + 0x5c]
jae 0x516175
lea eax, [esp + 0x5c]
movzx eax, word [eax + ebx*2 + 2]
push eax
mov eax, ebp
call fcn.00594040
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0x34]
mov edi, dword [eax]
lea ecx, [esi*8]
sub ecx, esi
mov dword [esp + 0x34], edx
lea edx, [ecx*8 + 0x6ba910]
mov dword [esp + 0x48], edx
lea ebx, [ebx]
mov eax, dword [ebp + 0x34]
lea esi, [ebp + 0x30]
cmp esi, esi
mov dword [esp + 0x90], eax
je 0x5161c6
call fcn.0062472f
cmp edi, dword [esp + 0x90]
je 0x51667f
cmp edi, dword [esi + 4]
jne 0x5161dd
call fcn.0062472f
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [edi + 0xc]
call fcn.0058f380
fld qword [ebp + 0x40]
mov esi, dword [edi + 0xc]
fst qword [esp + 0x4c]
mov ebx, eax
mov eax, dword [esi + 0xb8]
test eax, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
je 0x516215
fild dword [ebp + 0x18]
fidiv dword [esp + 0x14]
fmulp st(1)
fst qword [esp + 0x4c]
fld qword [0x668940]
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x5162d0
mov edx, dword [ebx + 0x24]
fstp st(0)
mov eax, esi
mov ecx, dword [eax + 0xa8]
mov ebp, dword [eax + 0xa4]
sub ecx, dword [eax + 0xbc]
add ebp, dword [ebx + 0x10]
add ecx, dword [ebx + 0x14]
add ebp, dword [esp + 0x28]
cmp word [esp + 0x24], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
je 0x5162c3
mov eax, dword [esi + 0xac]
mov dword [esp + 0x18], eax
lea esi, [ebx + 0x18]
lea ebx, [esp + 0x24]
lea eax, [esp + 0x7c]
call fcn.00517b30
mov ebx, dword [esp + 0x7c]
test ebx, ebx
mov ecx, dword [esi + 4]
mov dword [esp + 0x98], ecx
je 0x51628b
cmp ebx, esi
je 0x516290
call fcn.0062472f
mov esi, dword [esp + 0x80]
cmp esi, dword [esp + 0x98]
je 0x5163ad
test ebx, ebx
jne 0x5162ad
call fcn.0062472f
cmp esi, dword [ebx + 4]
jne 0x5162b7
call fcn.0062472f
mov edx, dword [esi + 0x10]
add dword [esp + 0x18], edx
jmp 0x5163ad
mov dword [esp + 0x18], 0
jmp 0x5163b1
mov eax, dword [esi + 0xa4]
add eax, dword [ebx + 0x10]
sub esp, 8
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmulp st(1)
fstp qword [esp]
call fcn.00644360
call fcn.00643d70
mov ebp, eax
add ebp, dword [esp + 0x30]
mov eax, esi
mov ecx, dword [eax + 0xbc]
sub ecx, dword [eax + 0xa8]
sub ecx, dword [ebx + 0x14]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fmul qword [esp + 0x54]
fstp qword [esp]
call fcn.00644360
add esp, 8
call fcn.00643d70
fild dword [ebx + 0x24]
neg eax
mov dword [esp + 0x1c], eax
fmul qword [esp + 0x4c]
call fcn.00643d70
cmp word [esp + 0x24], 0
mov dword [esp + 0x14], eax
je 0x5162c3
mov edx, dword [esi + 0xac]
lea esi, [ebx + 0x18]
lea ebx, [esp + 0x24]
lea eax, [esp + 0x74]
mov dword [esp + 0x18], edx
call fcn.00517b30
mov ebx, dword [esp + 0x74]
test ebx, ebx
mov eax, dword [esi + 4]
mov dword [esp + 0x88], eax
je 0x516378
cmp ebx, esi
je 0x51637d
call fcn.0062472f
mov esi, dword [esp + 0x78]
cmp esi, dword [esp + 0x88]
je 0x5163ad
test ebx, ebx
jne 0x516393
call fcn.0062472f
cmp esi, dword [ebx + 4]
jne 0x51639d
call fcn.0062472f
fild dword [esi + 0x10]
fmul qword [esp + 0x4c]
call fcn.00643d70
add dword [esp + 0x18], eax
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x38]
call fcn.0056a330
mov ecx, dword [esp + 0xdc]
mov eax, dword [ecx]
mov esi, dword [edi + 0xc]
mov ecx, dword [esi + 0x58]
imul ecx, eax
mov dword [esp + 0x10], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esi + 0x68]
cmp eax, 0xff
jge 0x516411
mov ecx, dword [esi + 0x58]
imul ecx, dword [esp + 0x10]
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esi + 0x68]
mov dword [esp + 0x38], eax
jmp 0x516419
mov dword [esp + 0x38], 0xff
mov ecx, dword [esp + 0xdc]
mov eax, dword [ecx + 4]
mov esi, dword [edi + 0xc]
mov ecx, dword [esi + 0x5c]
imul ecx, eax
mov dword [esp + 0x10], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esi + 0x6c]
cmp eax, 0xff
jge 0x516471
mov ecx, dword [esi + 0x5c]
imul ecx, dword [esp + 0x10]
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esi + 0x6c]
mov dword [esp + 0x3c], eax
jmp 0x516479
mov dword [esp + 0x3c], 0xff
mov ecx, dword [esp + 0xdc]
mov esi, dword [edi + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [esi + 0x60]
imul ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esi + 0x70]
cmp eax, 0xff
jge 0x5164cf
mov edx, dword [esp + 0xdc]
mov ecx, dword [esi + 0x60]
imul ecx, dword [edx + 8]
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, dword [esi + 0x70]
jmp 0x5164d4
mov ecx, 0xff
mov eax, dword [edi + 0xc]
mov esi, dword [eax + 0x64]
mov edx, dword [esp + 0xdc]
mov edx, dword [edx + 0xc]
imul esi, edx
mov dword [esp + 0x10], edx
mov eax, 0x80808081
imul esi
mov eax, dword [edi + 0xc]
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
add esi, dword [eax + 0x74]
cmp esi, 0xff
jge 0x51652f
mov esi, dword [eax + 0x64]
imul esi, dword [esp + 0x10]
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [edi + 0xc]
add eax, dword [edx + 0x74]
jmp 0x516534
mov eax, 0xff
mov edx, dword [edi + 0xc]
mov ebx, dword [ebx + 0x28]
add ebx, dword [edx + 0xd0]
mov edx, dword [esp + 0x48]
cmp edx, 0x6f2910
mov dword [esp + 0x10], ebx
jge 0x516674
add dword [esp + 0x30], 1
mov esi, edx
add edx, 0x38
mov dword [esp + 0x48], edx
mov edx, dword [edi + 0x10]
mov dword [esi], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
mov dword [esi + 8], eax
lea ebx, [edi + 0x18]
push ecx
mov eax, ebx
mov dword [esi + 4], ebp
call fcn.00517ba0
mov edx, dword [eax]
lea eax, [esp + 0x20]
push eax
mov eax, ebx
mov dword [esi + 0xc], edx
call fcn.00517ba0
mov ecx, dword [eax + 4]
lea edx, [esp + 0x20]
push edx
mov eax, ebx
mov dword [esi + 0x10], ecx
call fcn.00517ba0
mov eax, dword [eax + 8]
lea ecx, [esp + 0x20]
mov dword [esi + 0x14], eax
push ecx
mov eax, ebx
call fcn.00517ba0
mov edx, dword [eax + 0xc]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0xa0]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0xc]
mov al, byte [edx + 0xd4]
mov byte [esi + 0x30], al
mov eax, dword [esp + 0x10]
add eax, 0x80
test eax, eax
mov dword [esi + 0x34], 0
jle 0x516602
cmp eax, 0xff
jge 0x516610
xor ecx, ecx
test eax, eax
setle cl
sub ecx, 1
and ecx, eax
jmp 0x516615
mov ecx, 0xff
mov edx, dword [ecx*4 + 0x6b8a90]
test edx, edx
lea eax, [ecx*4 + 0x6b8a90]
jne 0x516630
mov dword [ecx*4 + 0x6b8690], esi
jmp 0x516633
mov dword [edx + 0x34], esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [eax], esi
lea eax, [ecx + edx]
add eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x34]
jle 0x51664e
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xd4]
add eax, 0x30
cmp edi, dword [eax + 4]
jne 0x516662
call fcn.0062472f
mov edi, dword [edi]
mov ebp, dword [esp + 0xd4]
mov ebx, dword [esp + 0x2c]
jmp 0x5161b0
mov ebp, dword [esp + 0xd4]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x6c]
add ebx, 1
cmp ebx, eax
mov dword [esp + 0x2c], ebx
jb 0x516115
mov eax, 0x6b8690
mov dword [esp + 0x14], eax
mov edi, dword [eax]
test edi, edi
je 0x51677c
lea ecx, [ecx]
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
mov esi, dword [esp + 0xd0]
mov ebx, dword [esi + 0x44]
je 0x5166c4
mov ebx, eax
mov ebp, dword [edi]
test ebp, ebp
je 0x51676d
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
call fcn.005a9a10
fild dword [edi + 4]
fild dword [esp + 0x40]
mov ecx, dword [esp + 0xd8]
fld qword [0x6885c0]
mov edx, eax
fmul st(1), st(0)
fxch st(2)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fadd dword [esp + 0xa4]
fstp dword [esp + 0xa4]
fild dword [edi + 8]
fild dword [esp + 0x44]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fadd dword [esp + 0xb0]
fstp dword [esp + 0xb0]
call fcn.00517070
push ebx
lea edx, [edi + 0x20]
push edx
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0xa8]
push ecx
lea ebx, [esp + 0x48]
mov eax, ebp
call fcn.005168a0
add esp, 0x10
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x5166b0
mov eax, dword [esp + 0x14]
add eax, 4
cmp eax, 0x6b8a90
mov dword [esp + 0x14], eax
jl 0x5166a3
cmp dword [esp + 0x70], 8
jb 0x5167a2
mov edx, dword [esp + 0x5c]
push edx
call fcn.0062414c
add esp, 4
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xbc
ret