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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
imul eax, eax, 0x544
mov edx, dword [edi + 0x24]
lea ebx, [eax + edi + 0x2c]
mov eax, dword [edi + 0x28]
mov dword [esp + 0x78], ecx
mov ecx, dword [edi + 0xabc]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x48], eax
lea eax, [eax + edx*4]
mov dword [esp + 0x74], eax
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
xor esi, esi
add ecx, edx
push 0x2c
lea edx, [esp + 0x80]
shr ecx, 3
push esi
push edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x64], ecx
call fcn.00695690
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [esp + 0x98], 0x7d00
mov byte [esp + 0x7c], 0
test eax, eax
jge 0x65dc0c
neg eax
mov dword [ebx], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x1c]
mov edi, dword [edi + 0x18]
lea ecx, [edi + edi*4]
lea ecx, [eax + ecx*8]
cmp dword [ebp + 8], esi
jne 0x65dc47
cmp eax, ecx
jae 0x65dc65
jmp 0x65dc30
movsx edx, word [eax + 0xc]
mov dword [eax + 0x18], edx
movsx edx, word [eax + 0xe]
mov dword [eax + 0x1c], edx
add eax, 0x28
cmp eax, ecx
jb 0x65dc30
jmp 0x65dc65
cmp eax, ecx
jae 0x65dc65
jmp 0x65dc50
movsx edx, word [eax + 0xe]
mov dword [eax + 0x18], edx
movsx edx, word [eax + 0xc]
mov dword [eax + 0x1c], edx
add eax, 0x28
cmp eax, ecx
jb 0x65dc50
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x48], eax
jae 0x65e1a4
mov ecx, dword [esp + 0x48]
mov ebx, dword [ecx]
mov ecx, dword [ebx + 0x24]
mov cl, byte [ecx + 3]
xor edi, edi
mov edx, 0x7d00
mov eax, 0xffff8300
test cl, cl
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffff8300
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], eax
movsx ecx, cl
jge 0x65dcd8
neg ecx
mov edx, dword [esp + 0x6c]
cmp ecx, edx
jne 0x65dd12
mov cl, byte [ebx + 3]
test cl, cl
movsx ecx, cl
jge 0x65dcec
neg ecx
cmp ecx, edx
jne 0x65dd12
mov dword [esp + 0x40], ebx
mov ebx, dword [ebx + 0x24]
mov cl, byte [ebx + 3]
test cl, cl
movsx ecx, cl
jge 0x65dd03
neg ecx
cmp ecx, edx
jne 0x65dd0f
cmp ebx, dword [esp + 0x40]
jne 0x65dcf4
jmp 0x65dd12
mov ebx, dword [ebx + 0x20]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x1f], 0
jmp 0x65dd20
cmp dword [esp + 0x38], 0
je 0x65e041
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [esp + 0x10]
jge 0x65dd38
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0xc]
jle 0x65dd42
mov dword [esp + 0xc], ecx
mov ecx, dword [ebx + 0x1c]
cmp ecx, dword [esp + 0x20]
jge 0x65dd56
movzx edx, word [ebx]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], edx
cmp ecx, eax
jle 0x65dd63
movzx edx, word [ebx]
mov eax, ecx
mov dword [esp + 0x24], edx
test byte [ebx], 3
jne 0x65dd7c
cmp ecx, dword [esp + 0x18]
jge 0x65dd72
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x14]
jle 0x65dd7c
mov dword [esp + 0x14], ecx
movsx ecx, byte [ebx + 3]
cmp ecx, dword [esp + 0x50]
jne 0x65dd90
cmp ebx, dword [esp + 0x40]
jne 0x65e057
test edi, edi
je 0x65dfaa
mov ecx, dword [edi + 0x28]
cmp dword [esi + 0x24], ecx
jne 0x65dfaa
mov dl, byte [ecx + 2]
cmp dl, byte [ebx + 2]
jne 0x65de67
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
cmp ecx, edx
jge 0x65ddc2
mov edx, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0xc]
cmp ecx, esi
jle 0x65ddd4
mov esi, ecx
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esp + 0x20]
jge 0x65ddeb
mov dword [esp + 0x20], ecx
movzx ecx, word [esp + 0x68]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jle 0x65ddfe
mov eax, ecx
movzx ecx, word [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x64]
cmp ecx, dword [esp + 0x18]
jge 0x65de0c
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x60]
cmp ecx, dword [esp + 0x14]
jle 0x65de1a
mov dword [esp + 0x14], ecx
add esi, edx
mov dl, byte [esp + 0x24]
or dl, byte [esp + 0x2c]
sar esi, 1
mov dword [edi + 0x28], ebx
mov word [edi + 2], si
test dl, 3
je 0x65de45
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x58]
jge 0x65de45
or byte [edi], 1
jmp 0x65de48
and byte [edi], 0xfe
mov ecx, dword [esp + 0x20]
mov edx, eax
sub edx, ecx
mov word [edi + 6], cx
mov ecx, dword [esp + 0x54]
mov word [edi + 8], ax
mov word [edi + 0xa], dx
dec dword [ecx]
jmp 0x65e037
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
sub ecx, edx
jns 0x65de79
mov ecx, edx
sub ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov ecx, eax
sub ecx, edx
jns 0x65de8b
mov ecx, edx
sub ecx, eax
cmp dword [esp + 0x28], ecx
jle 0x65decb
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
cmp ecx, edx
jge 0x65dea3
mov edx, ecx
mov dword [esp + 0x34], edx
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
cmp esi, ecx
jle 0x65deb5
mov ecx, esi
mov dword [esp + 0x30], ecx
add ecx, edx
sar ecx, 1
mov word [edi + 2], cx
mov ecx, dword [esp + 0x54]
mov dword [edi + 0x28], ebx
dec dword [ecx]
jmp 0x65e037
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x10]
jge 0x65ded9
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
cmp edx, ecx
jle 0x65deeb
mov ecx, edx
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x10]
add ecx, edx
sar ecx, 1
mov dword [esi + 0x28], ebx
mov word [esi + 2], cx
mov cl, byte [esp + 0x24]
or cl, byte [esp + 0x2c]
test cl, 3
je 0x65df18
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x58]
jge 0x65df18
or byte [esi], 1
mov ecx, dword [esp + 0x20]
mov word [esi + 6], cx
mov word [esi + 8], ax
mov dx, ax
sub dx, word [esi + 6]
mov dword [esp + 0x44], ecx
mov word [esi + 0xa], dx
movq xmm0, qword [esi]
movzx ecx, word [esp + 0x2c]
movq qword [edi], xmm0
movq xmm0, qword [esi + 8]
movq qword [edi + 8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
movq xmm0, qword [esi + 0x18]
movq qword [edi + 0x18], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x20], xmm0
mov edx, dword [esi + 0x28]
mov dword [edi + 0x28], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x30], edx
movzx edx, word [esp + 0x24]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x54]
dec dword [ecx]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], edx
jmp 0x65e037
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea edi, [ecx + edx]
sub ecx, edx
mov edx, dword [esp + 0x2c]
sar ecx, 1
sar edi, 1
mov dword [esi + 0x28], ebx
mov word [esi + 2], di
mov word [esi + 4], cx
mov cl, byte [esp + 0x24]
or cl, dl
test cl, 3
je 0x65dfe6
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x58]
jge 0x65dfe6
or byte [esi], 1
mov ecx, dword [esp + 0x20]
mov word [esi + 6], cx
mov word [esi + 8], ax
mov di, ax
sub di, word [esi + 6]
mov dword [esp + 0x44], ecx
movzx ecx, word [esp + 0x24]
mov word [esi + 0xa], di
movzx edx, dx
mov edi, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ecx
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], esi
cmp ebx, dword [esp + 0x40]
jne 0x65e057
cmp byte [esp + 0x1f], 0
jne 0x65e18f
mov byte [esp + 0x1f], 1
cmp dword [esp + 0x38], 0
jne 0x65e187
mov cl, byte [ebx + 3]
test cl, cl
movsx ecx, cl
mov dword [esp + 0x70], ecx
jge 0x65e072
neg ecx
cmp ecx, dword [esp + 0x6c]
je 0x65e081
cmp ebx, dword [ebx + 0x24]
jne 0x65e187
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov dword [esp + 0x58], edx
call fcn.0065c4a0
add esp, 8
mov dword [esp + 0x5c], eax
test eax, eax
jne 0x65e223
mov esi, dword [esp + 0x28]
movq xmm0, qword [esp + 0x7c]
mov al, byte [esp + 0x50]
movq qword [esi], xmm0
movq xmm0, qword [esp + 0x84]
movq qword [esi + 8], xmm0
movq xmm0, qword [esp + 0x8c]
movq qword [esi + 0x10], xmm0
movq xmm0, qword [esp + 0x94]
movq qword [esi + 0x18], xmm0
movq xmm0, qword [esp + 0x9c]
movq qword [esi + 0x20], xmm0
mov byte [esi + 1], al
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
test edi, edi
je 0x65e105
lea edi, [esi - 0x2c]
movzx ecx, word [ebx]
mov eax, dword [ebx + 0x18]
movzx edx, cx
mov dword [esp + 0x24], edx
movzx edx, dx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edx
test cl, 3
je 0x65e13f
mov dword [esp + 0x18], 0x7d00
mov dword [esp + 0x14], 0xffff8300
jmp 0x65e149
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], 1
cmp ebx, dword [ebx + 0x24]
jne 0x65e187
mov cx, word [esp + 0xc]
mov word [esi + 2], cx
test byte [ebx], 3
je 0x65e167
or byte [esi], 1
mov dx, word [ebx + 0x1c]
mov word [esi + 6], dx
mov cx, word [ebx + 0x1c]
xor edx, edx
mov word [esi + 8], cx
mov word [esi + 0xa], dx
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], esi
mov ebx, dword [ebx + 0x20]
jmp 0x65dd20
mov eax, dword [esp + 0x48]
add eax, 4
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x74]
jb 0x65dc73
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
imul edx, edx, 0x2c
add edx, eax
cmp eax, edx
jae 0x65e21f
sub edx, eax
lea ecx, [eax + 0xa]
dec edx
mov eax, 0xba2e8ba3
mul edx
shr edx, 5
inc edx
mov edi, dword [ecx + 0x1a]
mov ebx, dword [ecx + 0x1e]
mov eax, dword [edi + 0x1c]
mov esi, dword [ebx + 0x1c]
cmp eax, esi
mov edi, dword [edi + 0x24]
mov edi, dword [edi + 0x1c]
jge 0x65e1fb
cmp edi, eax
jge 0x65e1e8
sub eax, edi
sar eax, 1
add word [ecx], ax
mov ebx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
cmp eax, esi
jle 0x65e217
sub eax, esi
sar eax, 1
add word [ecx], ax
jmp 0x65e217
cmp edi, eax
jle 0x65e206
sub edi, eax
sar edi, 1
add word [ecx], di
mov ebx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
cmp eax, esi
jge 0x65e217
sub esi, eax
sar esi, 1
add word [ecx], si
add ecx, 0x2c
sub edx, 1
jne 0x65e1c7
mov eax, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret