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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x48
mov eax, dword [esp + 0x5c]
sub eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
sub eax, 1
mov dword [esp + 0x44], eax
je 0x6ca302be
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x34], 0
mov edi, dword [esp + 0x80]
lea edi, [edi + edi*2]
mov dword [esp + 0x40], edi
lea esi, [esi]
mov edx, dword [esp + 0x34]
mov edi, ebx
add edi, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], edi
add eax, dword [esp + 0x7c]
shr edx, 1
imul edx, dword [esp + 0x74]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov dword [esp + 0x3c], eax
add edi, edx
add edx, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
test edx, edx
je 0x6ca30190
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], 0
lea eax, [edi*4 + 0x6ca94f20]
movzx edi, byte [edi*4 + 0x6ca94f20]
movsx esi, word [eax + 4]
mov dword [esp + 0x24], esi
movsx esi, word [eax + 6]
mov dword [esp + 0x28], esi
movsx esi, word [eax + 8]
mov dword [esp + 0x2c], esi
movsx esi, word [eax + 0xa]
movsx eax, word [eax + 2]
mov dword [esp + 0x30], esi
mov dword [esp], eax
lea esi, [esi]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 4]
movzx edx, byte [esi]
movzx eax, byte [eax]
movzx ecx, byte [ecx]
add edx, 0xffffff80
imul ebx, edx
add eax, 0xffffff80
sub ecx, edi
imul edx, dword [esp + 0x2c]
imul ecx, dword [esp]
mov esi, ebx
mov ebx, dword [esp + 0x28]
imul ebx, eax
imul eax, dword [esp + 0x30]
add ebx, edx
lea edx, [esi + ecx + 0x2000]
sar edx, 6
movzx ebp, byte [edx + 0x6ca94ce0]
lea edx, [eax + ecx + 0x2000]
lea ecx, [ebx + ecx + 0x2000]
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl ebp, 0x18
shl edx, 8
shl ecx, 0x10
or edx, ebp
mov ebp, dword [esp + 0xc]
or edx, ecx
mov ecx, dword [esp + 4]
or dl, 0xff
mov dword [ebp], edx
movzx ecx, byte [ecx + 1]
sub ecx, edi
imul ecx, dword [esp]
lea edx, [esi + ecx + 0x2000]
sar edx, 6
movzx ebp, byte [edx + 0x6ca94ce0]
lea edx, [eax + ecx + 0x2000]
lea ecx, [ebx + ecx + 0x2000]
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl ebp, 0x18
shl edx, 8
shl ecx, 0x10
or edx, ebp
mov ebp, dword [esp + 0xc]
or edx, ecx
or dl, 0xff
add ebp, 8
mov dword [ebp - 4], edx
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 8]
movzx ecx, byte [ebp]
sub ecx, edi
imul ecx, dword [esp]
lea edx, [esi + ecx + 0x2000]
sar edx, 6
movzx ebp, byte [edx + 0x6ca94ce0]
lea edx, [eax + ecx + 0x2000]
lea ecx, [ebx + ecx + 0x2000]
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl ebp, 0x18
shl edx, 8
shl ecx, 0x10
or edx, ebp
or edx, ecx
mov ecx, dword [esp + 0x10]
or dl, 0xff
mov dword [ecx], edx
mov ebp, dword [esp + 8]
add dword [esp + 0x14], 2
movzx edx, byte [ebp + 1]
add ebp, 2
add dword [esp + 4], 2
add dword [esp + 0x18], 2
sub edx, edi
imul edx, dword [esp]
add dword [esp + 0x1c], 2
mov dword [esp + 8], ebp
lea ecx, [esi + edx + 0x2000]
lea eax, [eax + edx + 0x2000]
sar ecx, 6
sar eax, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
movzx eax, byte [eax + 0x6ca94ce0]
shl ecx, 0x18
shl eax, 8
or ecx, eax
lea eax, [ebx + edx + 0x2000]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shl eax, 0x10
or ecx, eax
mov eax, dword [esp + 0x10]
or cl, 0xff
mov dword [eax + 4], ecx
add eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
jb 0x6ca2ff98
je 0x6ca30190
add dword [esp + 0x34], 2
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
add ebx, dword [esp + 0x70]
add eax, dword [esp + 0x7c]
cmp dword [esp + 0x44], edi
ja 0x6ca2ff08
je 0x6ca30295
add esp, 0x48
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
movzx eax, byte [eax]
lea esi, [eax - 0x80]
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax]
lea ebx, [eax - 0x80]
lea eax, [edi*4 + 0x6ca94f20]
movsx edx, word [eax + 4]
movsx ecx, word [eax + 6]
imul edx, ebx
imul ecx, esi
mov ebp, edx
movsx edx, word [eax + 8]
imul edx, ebx
lea ebx, [ecx + edx]
movzx ecx, byte [edi*4 + 0x6ca94f20]
movsx edx, word [eax + 0xa]
movsx edi, word [eax + 2]
mov eax, dword [esp + 4]
mov dword [esp], ebx
imul esi, edx
mov ebx, ecx
movzx edx, byte [eax]
sub edx, ecx
imul edx, edi
lea eax, [ebp + edx + 0x2000]
sar eax, 6
movzx ecx, byte [eax + 0x6ca94ce0]
lea eax, [esi + edx + 0x2000]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shl ecx, 0x18
shl eax, 8
or eax, ecx
mov ecx, dword [esp]
lea edx, [ecx + edx + 0x2000]
sar edx, 6
movzx edx, byte [edx + 0x6ca94ce0]
shl edx, 0x10
or eax, edx
mov edx, dword [esp + 0xc]
or al, 0xff
mov dword [edx], eax
mov eax, dword [esp + 8]
movzx eax, byte [eax]
sub eax, ebx
imul eax, edi
lea edx, [ebp + eax + 0x2000]
lea ecx, [esi + eax + 0x2000]
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl edx, 0x18
shl ecx, 8
or edx, ecx
mov ecx, dword [esp]
lea eax, [ecx + eax + 0x2000]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shl eax, 0x10
or edx, eax
mov eax, dword [esp + 0x10]
or dl, 0xff
mov dword [eax], edx
jmp 0x6ca3015f
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x70]
mov eax, edi
imul edx, edi
add dword [esp + 0x64], edx
imul edi, dword [esp + 0x7c]
shr eax, 1
add dword [esp + 0x78], edi
imul eax, dword [esp + 0x74]
add dword [esp + 0x68], eax
add dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
lea eax, [eax + eax*2]
shl eax, 2
movsx edi, word [eax + 0x6ca94f24]
mov dword [esp + 0x10], edi
movsx edi, word [eax + 0x6ca94f26]
mov dword [esp + 0x14], edi
movsx edi, word [eax + 0x6ca94f28]
mov dword [esp + 0x18], edi
movsx edi, word [eax + 0x6ca94f2a]
mov dword [esp + 0x1c], edi
movzx edi, byte [eax + 0x6ca94f20]
movsx eax, word [eax + 0x6ca94f22]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6ca3043a
xor ebp, ebp
mov esi, dword [esp + 0x78]
mov dword [esp], ebp
mov ebp, dword [esp + 0x64]
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x10]
add esi, 8
add ebp, 2
mov ebx, dword [esp + 0x14]
movzx ecx, byte [ebp - 2]
movzx edx, byte [eax]
mov eax, dword [esp + 0x6c]
sub ecx, dword [esp + 4]
imul ecx, dword [esp + 8]
movzx eax, byte [eax]
add edx, 0xffffff80
add dword [esp + 0x68], 2
imul ebx, edx
add eax, 0xffffff80
imul edx, dword [esp + 0x1c]
imul edi, eax
imul eax, dword [esp + 0x18]
mov dword [esp + 0xc], edi
add ebx, eax
lea eax, [edi + ecx + 0x2000]
sar eax, 6
movzx edi, byte [eax + 0x6ca94ce0]
lea eax, [edx + ecx + 0x2000]
lea ecx, [ebx + ecx + 0x2000]
sar eax, 6
sar ecx, 6
movzx eax, byte [eax + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl edi, 0x18
shl eax, 8
shl ecx, 0x10
or eax, edi
mov edi, dword [esp + 0xc]
or eax, ecx
or al, 0xff
mov dword [esi - 8], eax
movzx eax, byte [ebp - 1]
sub eax, dword [esp + 4]
imul eax, dword [esp + 8]
lea ecx, [edi + eax + 0x2000]
lea edx, [edx + eax + 0x2000]
sar ecx, 6
sar edx, 6
lea eax, [ebx + eax + 0x2000]
sar eax, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
movzx edx, byte [edx + 0x6ca94ce0]
movzx eax, byte [eax + 0x6ca94ce0]
shl ecx, 0x18
shl edx, 8
shl eax, 0x10
or ecx, edx
or ecx, eax
or cl, 0xff
mov dword [esi - 4], ecx
add dword [esp + 0x6c], 2
add dword [esp], 2
mov eax, dword [esp]
cmp eax, dword [esp + 0x20]
jb 0x6ca30330
mov dword [esp + 0x64], ebp
mov dword [esp + 0x78], esi
jne 0x6ca30188
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x78]
movzx eax, byte [eax]
lea edx, [eax - 0x80]
mov eax, dword [esp + 0x6c]
movzx eax, byte [eax]
lea ebx, [eax - 0x80]
mov eax, dword [esp + 0x64]
imul ecx, ebx
movzx eax, byte [eax]
sub eax, dword [esp + 4]
imul eax, dword [esp + 8]
imul ebx, dword [esp + 0x18]
lea ecx, [eax + ecx + 0x2000]
sar ecx, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
mov esi, ecx
mov ecx, dword [esp + 0x1c]
shl esi, 0x18
imul ecx, edx
imul edx, dword [esp + 0x14]
lea ecx, [eax + ecx + 0x2000]
add edx, ebx
sar ecx, 6
lea eax, [eax + edx + 0x2000]
movzx ecx, byte [ecx + 0x6ca94ce0]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shl ecx, 8
or ecx, esi
shl eax, 0x10
or ecx, eax
mov eax, ecx
or al, 0xff
mov dword [edi], eax
add esp, 0x48
pop ebx
pop esi
pop edi
pop ebp
ret