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

Disassembly:
push ebp
push edi
push esi
mov esi, ecx
push ebx
add esp, 0xffffff80
mov ecx, dword [esp + 0x98]
mov ebp, dword [esp + 0x94]
lea ebx, [ecx + 7]
imul ecx, esi
mov edi, ebx
shr edi, 3
mov dword [esp + 8], edi
add ecx, 7
mov esi, ecx
shr esi, 3
mov dword [esp + 0xc], esi
test ebp, ebp
je 0x660e8a02
lea ebp, [esi + 1]
shr ebx, 5
shr ecx, 5
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], ebp
mov ebp, eax
lea eax, [edx + 1]
shl ebx, 2
mov dword [esp], eax
mov eax, edi
lea edi, [edi + 1]
mov dword [esp + 0x50], edi
add edi, edx
mov dword [esp + 0x28], edi
mov edi, dword [esp]
mov dword [esp + 0x34], ebx
add edi, esi
sub esi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edi
lea edi, [ebp + eax]
mov dword [esp + 0x2c], edi
lea edi, [edx + 2]
mov dword [esp + 0x20], edi
lea edi, [ebx + 1]
add ebx, 2
mov dword [esp + 0x48], ebx
mov ebx, esi
mov dword [esp + 0x58], esi
and esi, 0xfffffffc
mov edx, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
mov esi, eax
add esi, edx
mov dword [esp + 0x40], edi
mov edi, dword [esp]
lea edx, [esi + 1]
mov dword [esp + 0x68], esi
add esi, 2
mov dword [esp + 0x6c], esi
sub esi, eax
mov dword [esp + 0x7c], esi
lea esi, [ecx*4]
lea ecx, [esi + 1]
mov dword [esp + 0x64], edx
sub edx, eax
sub eax, 1
mov dword [esp + 0x4c], ecx
lea ecx, [esi + 2]
mov dword [esp + 0x38], eax
lea eax, [ebx - 1]
mov dword [esp + 0x70], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x44], eax
lea esi, [esi]
cmp byte [edi - 1], 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ebp
ja case.default.0x660e8716
movzx eax, byte [edi - 1]
jmp dword [eax*4 + 0x661e10a0]
test ecx, ecx
je 0x660e8e40
mov ebx, dword [esp + 8]
xor eax, eax
test ebx, ebx
je 0x660e8754
mov ebx, dword [esp + 8]
lea esi, [esi]
lea esi, [esi]
movzx edx, byte [ecx + eax]
shr dl, 1
add dl, byte [edi + eax]
mov byte [ebp + eax], dl
add eax, 1
cmp ebx, eax
jne 0x660e8740
mov eax, dword [esp + 8]
mov esi, dword [esp + 0xc]
cmp eax, esi
jae 0x660e89d0
mov esi, ebp
mov edx, eax
sub esi, eax
lea esi, [esi]
movzx eax, byte [esi + edx]
movzx ebx, byte [ecx + edx]
add eax, ebx
sar eax, 1
add al, byte [edi + edx]
mov byte [ebp + edx], al
add edx, 1
cmp dword [esp + 0xc], edx
jne 0x660e8770
jmp 0x660e89d0
test ecx, ecx
je 0x660e8dc0
mov esi, dword [esp + 0xc]
test esi, esi
je 0x660e89d0
lea edx, [ecx + 1]
mov eax, ebp
sub eax, edx
cmp eax, 2
mov eax, ebp
seta dl
sub eax, dword [esp + 0x20]
cmp eax, 2
seta al
and eax, edx
lea edx, [esi - 1]
cmp edx, 3
seta dl
test al, dl
je 0x660e8f78
mov eax, ecx
or eax, edi
or eax, ebp
test al, 3
jne 0x660e8f78
mov esi, dword [esp + 0x3c]
xor edx, edx
lea esi, [esi]
mov ebx, dword [ecx + edx]
mov eax, dword [edi + edx]
and ebx, 0x7f7f7f7f
and eax, 0x7f7f7f7f
add ebx, eax
mov eax, dword [edi + edx]
xor eax, dword [ecx + edx]
and eax, 0x80808080
xor eax, ebx
mov dword [ebp + edx], eax
add edx, 4
cmp esi, edx
jne 0x660e87f0
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x3c]
cmp ebx, esi
je 0x660e89d0
movzx eax, byte [edi + esi]
add al, byte [ecx + esi]
mov byte [ebp + esi], al
mov esi, dword [esp + 0x4c]
cmp ebx, esi
je 0x660e89d0
movzx eax, byte [edi + esi]
add al, byte [ecx + esi]
mov byte [ebp + esi], al
mov esi, dword [esp + 0x54]
cmp ebx, esi
je 0x660e89d0
movzx eax, byte [ecx + esi]
add al, byte [edi + esi]
mov byte [ebp + esi], al
jmp 0x660e89d0
mov esi, dword [esp + 8]
test esi, esi
je 0x660e88f7
mov eax, ebp
or eax, edi
test al, 3
mov eax, ebp
sete dl
sub eax, dword [esp + 0x20]
cmp eax, 2
seta al
test dl, al
je 0x660e8f58
cmp dword [esp + 0x38], 3
jbe 0x660e8f58
mov eax, dword [esp + 0x34]
mov edx, ebp
lea ecx, [eax + edi]
mov eax, edi
lea esi, [esi]
nop
mov ebx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ebx
cmp ecx, eax
jne 0x660e88b0
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x34]
cmp ecx, esi
je 0x660e88f7
movzx eax, byte [edi + esi]
mov byte [ebp + esi], al
mov esi, ecx
mov ecx, dword [esp + 0x40]
cmp esi, ecx
je 0x660e88f7
movzx eax, byte [edi + ecx]
mov byte [ebp + ecx], al
mov eax, dword [esp + 0x48]
cmp esi, eax
je 0x660e88f7
mov esi, eax
movzx eax, byte [edi + eax]
mov byte [ebp + esi], al
mov esi, dword [esp + 0xc]
cmp dword [esp + 8], esi
jae 0x660e89d0
cmp dword [esp + 0x38], 2
mov ebx, dword [esp + 0x28]
seta dl
cmp dword [esp + 0x44], 3
mov esi, dword [esp + 0x2c]
seta al
and eax, edx
mov edx, ebx
or edx, ebp
or edx, esi
and edx, 3
sete dl
test al, dl
je 0x660e8f00
mov eax, dword [esp + 0x50]
lea edx, [edi + eax]
mov eax, esi
sub eax, edx
cmp eax, 2
jbe 0x660e8f00
mov dword [esp], edi
mov edi, dword [esp + 0x60]
xor edx, edx
mov ecx, dword [ebp + edx]
mov eax, dword [ebx + edx]
and ecx, 0x7f7f7f7f
and eax, 0x7f7f7f7f
add ecx, eax
mov eax, dword [ebx + edx]
xor eax, dword [ebp + edx]
and eax, 0x80808080
xor eax, ecx
mov dword [esi + edx], eax
add edx, 4
cmp edx, edi
jne 0x660e8950
mov edi, dword [esp]
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x58], eax
je 0x660e89d0
mov esi, dword [esp + 0x68]
movzx eax, byte [ebp + eax]
mov ecx, dword [esp + 0xc]
add al, byte [edi + esi]
mov byte [ebp + esi], al
mov esi, dword [esp + 0x64]
cmp ecx, esi
jbe 0x660e89d0
mov ebx, dword [esp + 0x70]
movzx eax, byte [edi + esi]
add al, byte [ebp + ebx]
mov byte [ebp + esi], al
mov esi, dword [esp + 0x6c]
cmp ecx, esi
jbe 0x660e89d0
mov ecx, dword [esp + 0x7c]
movzx eax, byte [edi + esi]
add al, byte [ebp + ecx]
mov byte [ebp + esi], al
lea esi, [esi]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
add dword [esp + 0x10], 1
mov esi, dword [esp + 0x10]
add dword [esp + 0x28], eax
add ebp, edx
add edi, eax
add dword [esp + 0x14], eax
add dword [esp + 0x2c], edx
add dword [esp + 0x20], eax
cmp dword [esp + 0x94], esi
jne 0x660e8700
xor eax, eax
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0xc]
test esi, esi
je 0x660e89d0
mov eax, ebp
or eax, edi
test al, 3
mov eax, ebp
sete dl
sub eax, dword [esp + 0x20]
cmp eax, 2
seta al
test dl, al
je 0x660e8f30
lea eax, [esi - 1]
cmp eax, 3
jbe 0x660e8f30
mov eax, dword [esp + 0x3c]
mov edx, edi
lea ecx, [eax + ebp]
mov eax, ebp
lea esi, [esi]
mov ebx, dword [edx]
add eax, 4
add edx, 4
mov dword [eax - 4], ebx
cmp eax, ecx
jne 0x660e8a50
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x3c]
cmp ecx, esi
je 0x660e89d0
movzx eax, byte [edi + esi]
mov byte [ebp + esi], al
mov esi, ecx
mov ecx, dword [esp + 0x4c]
cmp esi, ecx
je 0x660e89d0
movzx eax, byte [edi + ecx]
mov byte [ebp + ecx], al
mov eax, dword [esp + 0x54]
cmp esi, eax
je 0x660e89d0
mov esi, eax
movzx eax, byte [edi + eax]
mov byte [ebp + esi], al
jmp 0x660e89d0
test ecx, ecx
je 0x660e8c48
mov edx, dword [esp + 8]
test edx, edx
je 0x660e8b70
lea edx, [ecx + 1]
mov eax, ebp
sub eax, edx
cmp eax, 2
mov eax, ebp
seta dl
sub eax, dword [esp + 0x20]
cmp eax, 2
seta al
and eax, edx
cmp dword [esp + 0x38], 3
seta dl
test al, dl
je 0x660e8fa0
mov eax, ecx
or eax, edi
or eax, ebp
test al, 3
jne 0x660e8fa0
mov esi, dword [esp + 0x34]
xor edx, edx
lea esi, [esi]
nop
mov ebx, dword [ecx + edx]
mov eax, dword [edi + edx]
and ebx, 0x7f7f7f7f
and eax, 0x7f7f7f7f
add ebx, eax
mov eax, dword [edi + edx]
xor eax, dword [ecx + edx]
and eax, 0x80808080
xor eax, ebx
mov dword [ebp + edx], eax
add edx, 4
cmp edx, esi
jne 0x660e8b08
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0x34]
cmp ebx, esi
je 0x660e8b70
movzx eax, byte [ecx + esi]
add al, byte [edi + esi]
mov byte [ebp + esi], al
mov esi, dword [esp + 0x40]
cmp ebx, esi
je 0x660e8b70
movzx eax, byte [edi + esi]
add al, byte [ecx + esi]
mov byte [ebp + esi], al
mov esi, dword [esp + 0x48]
cmp ebx, esi
je 0x660e8b70
movzx eax, byte [ecx + esi]
add al, byte [edi + esi]
mov byte [ebp + esi], al
mov esi, dword [esp + 0xc]
cmp dword [esp + 8], esi
jae 0x660e89d0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x78], edi
mov esi, ebp
mov dword [esp + 0x74], ebp
mov ebp, ecx
mov dword [esp], eax
lea esi, [esi]
mov eax, dword [esp]
movzx ebx, byte [ebp]
movzx eax, byte [eax]
mov ecx, ebx
mov byte [esp + 0x25], al
mov eax, dword [esp + 8]
movzx edi, byte [ebp + eax]
mov eax, edi
mov dword [esp + 0x1c], edi
sub edi, ebx
mov edx, edi
sar edi, 0x1f
mov byte [esp + 0x27], al
movzx eax, byte [esi]
xor edx, edi
sub edx, edi
mov byte [esp + 0x26], al
mov dword [esp + 4], edx
mov edx, eax
sub edx, ebx
mov edi, edx
sar edi, 0x1f
xor edx, edi
sub edx, edi
mov edi, dword [esp + 4]
cmp dx, di
cmovle edi, edx
add eax, dword [esp + 0x1c]
sub eax, ebx
sub eax, ebx
mov ebx, eax
sar ebx, 0x1f
xor eax, ebx
sub eax, ebx
cmp di, ax
jg 0x660e8c12
cmp dx, word [esp + 4]
movzx eax, byte [esp + 0x27]
movzx edx, byte [esp + 0x26]
cmovge eax, edx
mov ecx, eax
mov eax, dword [esp + 8]
add cl, byte [esp + 0x25]
add ebp, 1
add esi, 1
add dword [esp], 1
mov byte [esi + eax - 1], cl
mov eax, dword [esp]
cmp eax, dword [esp + 0x14]
jne 0x660e8b98
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
jmp 0x660e89d0
mov eax, dword [esp + 8]
test eax, eax
je 0x660e8ccb
mov eax, edi
or eax, ebp
test al, 3
mov eax, ebp
sete dl
sub eax, dword [esp + 0x20]
cmp eax, 2
seta al
test dl, al
je 0x660e9035
cmp dword [esp + 0x38], 3
jbe 0x660e9035
mov eax, dword [esp + 0x34]
mov edx, ebp
lea ecx, [eax + edi]
mov eax, edi
lea esi, [esi]
nop
mov ebx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ebx
cmp eax, ecx
jne 0x660e8c88
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x34]
cmp esi, ecx
je 0x660e8ccb
movzx eax, byte [edi + ecx]
mov byte [ebp + ecx], al
mov ecx, dword [esp + 0x40]
cmp esi, ecx
je 0x660e8ccb
movzx eax, byte [edi + ecx]
mov byte [ebp + ecx], al
mov ecx, dword [esp + 0x48]
cmp esi, ecx
je 0x660e8ccb
movzx eax, byte [edi + ecx]
mov byte [ebp + ecx], al
mov ecx, dword [esp + 0xc]
cmp dword [esp + 8], ecx
jae 0x660e89d0
cmp dword [esp + 0x44], 3
mov ebx, dword [esp + 0x28]
seta dl
cmp dword [esp + 0x38], 2
mov esi, dword [esp + 0x2c]
seta al
and eax, edx
mov edx, ebx
or edx, ebp
or edx, esi
and edx, 3
sete dl
test al, dl
je 0x660e8fc7
mov eax, dword [esp + 0x50]
lea edx, [edi + eax]
mov eax, esi
sub eax, edx
cmp eax, 2
jbe 0x660e8fc7
mov dword [esp], edi
mov edi, dword [esp + 0x60]
xor edx, edx
lea esi, [esi]
mov ecx, dword [ebp + edx]
mov eax, dword [ebx + edx]
and ecx, 0x7f7f7f7f
and eax, 0x7f7f7f7f
add ecx, eax
mov eax, dword [ebx + edx]
xor eax, dword [ebp + edx]
and eax, 0x80808080
xor eax, ecx
mov dword [esi + edx], eax
add edx, 4
cmp edx, edi
jne 0x660e8d28
mov edi, dword [esp]
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x58], ecx
je 0x660e89d0
mov esi, dword [esp + 0x68]
movzx eax, byte [edi + esi]
add al, byte [ebp + ecx]
mov byte [ebp + esi], al
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x64]
cmp ecx, esi
jbe 0x660e89d0
mov ebx, dword [esp + 0x70]
movzx eax, byte [edi + esi]
add al, byte [ebp + ebx]
mov byte [ebp + esi], al
mov esi, dword [esp + 0x6c]
cmp ecx, esi
jbe 0x660e89d0
mov eax, dword [esp + 0x7c]
movzx eax, byte [ebp + eax]
add al, byte [edi + esi]
mov byte [ebp + esi], al
jmp 0x660e89d0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x660e89d0
mov eax, edi
or eax, ebp
test al, 3
mov eax, ebp
sete dl
sub eax, dword [esp + 0x20]
cmp eax, 2
seta al
test dl, al
je 0x660e9015
lea eax, [ecx - 1]
cmp eax, 3
jbe 0x660e9015
mov eax, dword [esp + 0x3c]
mov edx, ebp
lea ecx, [eax + edi]
mov eax, edi
mov ebx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ebx
cmp ecx, eax
jne 0x660e8e00
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
cmp esi, ecx
je 0x660e89d0
movzx eax, byte [edi + ecx]
mov byte [ebp + ecx], al
mov ecx, dword [esp + 0x4c]
cmp esi, ecx
jne 0x660e8a85
jmp 0x660e89d0
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x660e8ec3
mov eax, edi
or eax, ebp
test al, 3
mov eax, ebp
sete dl
sub eax, dword [esp + 0x20]
cmp eax, 2
seta al
test dl, al
je 0x660e8ff1
cmp dword [esp + 0x38], 3
jbe 0x660e8ff1
mov eax, dword [esp + 0x34]
mov edx, ebp
lea ecx, [eax + edi]
mov eax, edi
lea esi, [esi]
nop
mov ebx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ebx
cmp ecx, eax
jne 0x660e8e80
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x34]
cmp ecx, esi
je 0x660e8ec3
movzx eax, byte [edi + esi]
mov byte [ebp + esi], al
mov esi, dword [esp + 0x40]
cmp ecx, esi
je 0x660e8ec3
movzx eax, byte [edi + esi]
mov byte [ebp + esi], al
mov esi, dword [esp + 0x48]
cmp ecx, esi
je 0x660e8ec3
movzx eax, byte [edi + esi]
mov byte [ebp + esi], al
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp ebx, eax
jae 0x660e89d0
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov ecx, ebp
lea esi, [esi]
movzx eax, byte [ecx]
add edx, 1
add ecx, 1
shr al, 1
add al, byte [edx - 1]
mov byte [ecx + ebx - 1], al
cmp edx, esi
jne 0x660e8ee0
jmp 0x660e89d0
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 8]
mov edx, ebp
mov esi, dword [esp + 0x14]
nop
movzx ecx, byte [eax]
add eax, 1
add cl, byte [edx]
add edx, 1
mov byte [edx + ebx - 1], cl
cmp eax, esi
jne 0x660e8f10
jmp 0x660e89d0
mov ebx, dword [esp + 0x14]
mov edx, ebp
mov eax, edi
lea esi, [esi]
nop
movzx ecx, byte [eax]
add eax, 1
add edx, 1
mov byte [edx - 1], cl
cmp eax, ebx
jne 0x660e8f40
jmp 0x660e89d0
mov ebx, dword [esp + 0x28]
mov edx, ebp
mov eax, edi
movzx ecx, byte [eax]
add eax, 1
add edx, 1
mov byte [edx - 1], cl
cmp eax, ebx
jne 0x660e8f60
jmp 0x660e88f7
mov ebx, dword [esp + 0xc]
xor eax, eax
nop
movzx edx, byte [ecx + eax]
add dl, byte [edi + eax]
mov byte [ebp + eax], dl
add eax, 1
cmp ebx, eax
jne 0x660e8f80
jmp 0x660e89d0
mov ebx, dword [esp + 8]
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, byte [ecx + eax]
add dl, byte [edi + eax]
mov byte [ebp + eax], dl
add eax, 1
cmp ebx, eax
jne 0x660e8fb0
jmp 0x660e8b70
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 8]
mov edx, ebp
mov esi, dword [esp + 0x14]
lea esi, [esi]
movzx ecx, byte [edx]
add eax, 1
add cl, byte [eax - 1]
add edx, 1
mov byte [edx + ebx - 1], cl
cmp eax, esi
jne 0x660e8fd8
jmp 0x660e89d0
mov ebx, dword [esp + 0x28]
mov edx, ebp
mov eax, edi
lea esi, [esi]
movzx ecx, byte [eax]
add eax, 1
add edx, 1
mov byte [edx - 1], cl
cmp eax, ebx
jne 0x660e9000
jmp 0x660e8ec3
mov ebx, dword [esp + 0x14]
mov edx, ebp
mov eax, edi
lea esi, [esi]
movzx ecx, byte [eax]
add eax, 1
add edx, 1
mov byte [edx - 1], cl
cmp eax, ebx
jne 0x660e9020
jmp 0x660e89d0
mov ebx, dword [esp + 0x28]
mov edx, ebp
mov eax, edi
lea esi, [esi]
movzx ecx, byte [eax]
add eax, 1
add edx, 1
mov byte [edx - 1], cl
cmp eax, ebx
jne 0x660e9040
jmp 0x660e8ccb
mov eax, 0x24
jmp 0x660e8a04