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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x44
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x7c]
test edx, edx
je 0x6ca2ec5c
mov esi, dword [esp + 0x58]
lea eax, [eax + eax*2]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], eax
sub esi, 1
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x60]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x3c], esi
lea esi, [esi]
mov eax, dword [esp + 0x34]
add dword [esp + 0x2c], 1
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6ca2ec68
mov ebx, dword [esp + 0x40]
mov dword [esp], 0
lea eax, [ebx*4 + 0x6ca94f20]
movzx ebx, byte [ebx*4 + 0x6ca94f20]
movsx edi, word [eax + 4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edi
movsx edi, word [eax + 6]
mov dword [esp + 0x20], edi
movsx edi, word [eax + 8]
mov dword [esp + 0x24], edi
movsx edi, word [eax + 0xa]
movsx eax, word [eax + 2]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
lea esi, [esi]
nop
mov eax, dword [esp + 8]
mov edi, dword [esp + 0xc]
add ebp, 8
add esi, 4
mov ebx, dword [esp + 0x1c]
movzx ecx, byte [esi - 4]
movzx edx, byte [eax]
movzx eax, byte [edi]
sub ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x14]
add eax, 0xffffff80
add edx, 0xffffff80
add dword [esp + 8], 4
imul ebx, eax
imul eax, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x20]
imul ebx, edx
imul edx, dword [esp + 0x28]
add ebx, eax
lea eax, [edx + ecx + 0x2000]
sar eax, 6
movzx edi, byte [eax + 0x6ca94ce0]
mov eax, dword [esp + 4]
lea eax, [eax + ecx + 0x2000]
lea ecx, [ebx + ecx + 0x2000]
shl edi, 0x18
sar eax, 6
sar ecx, 6
movzx eax, byte [eax + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl eax, 8
shl ecx, 0x10
or eax, edi
or eax, ecx
mov ecx, dword [esp + 4]
or al, 0xff
mov dword [ebp - 8], eax
movzx eax, byte [esi - 2]
sub eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
lea edx, [edx + eax + 0x2000]
lea ecx, [ecx + eax + 0x2000]
sar edx, 6
sar ecx, 6
lea eax, [ebx + eax + 0x2000]
sar eax, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
movzx eax, byte [eax + 0x6ca94ce0]
shl edx, 0x18
shl ecx, 8
shl eax, 0x10
or edx, ecx
or edx, eax
or dl, 0xff
mov dword [ebp - 4], edx
add dword [esp + 0xc], 4
add dword [esp], 2
mov eax, dword [esp]
cmp eax, dword [esp + 0x18]
jb 0x6ca2eb30
je 0x6ca2ec68
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x30], esi
mov esi, dword [esp + 0x70]
add dword [esp + 0x34], esi
add dword [esp + 0x38], esi
mov esi, dword [esp + 0x78]
add dword [esp + 0x3c], esi
cmp eax, dword [esp + 0x5c]
jne 0x6ca2eab8
add esp, 0x44
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 8]
movzx ecx, byte [esi]
movzx edx, byte [eax]
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
add edx, 0xffffff80
lea edi, [eax - 0x80]
mov eax, dword [esp + 0x40]
lea ebx, [eax*4 + 0x6ca94f20]
movzx eax, byte [eax*4 + 0x6ca94f20]
sub ecx, eax
movsx eax, word [ebx + 2]
imul ecx, eax
movsx eax, word [ebx + 0xa]
imul eax, edx
lea eax, [ecx + eax + 0x2000]
sar eax, 6
movzx esi, byte [eax + 0x6ca94ce0]
movsx eax, word [ebx + 4]
imul eax, edi
shl esi, 0x18
lea eax, [ecx + eax + 0x2000]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shl eax, 8
or eax, esi
movsx esi, word [ebx + 6]
imul esi, edx
movsx edx, word [ebx + 8]
imul edx, edi
add esi, edx
lea edx, [ecx + esi + 0x2000]
sar edx, 6
movzx edx, byte [edx + 0x6ca94ce0]
shl edx, 0x10
or eax, edx
or al, 0xff
mov dword [ebp], eax
jmp 0x6ca2ec32