Function at 0x6ca2e7b0
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 0x6ca2e9aa
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 + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6ca2e9b8
mov edi, dword [esp + 0x40]
mov dword [esp], 0
lea eax, [edi*4 + 0x6ca94f20]
movzx edi, byte [edi*4 + 0x6ca94f20]
movsx ebx, word [eax + 4]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], ebx
movsx ebx, word [eax + 6]
mov dword [esp + 0x20], ebx
movsx ebx, word [eax + 8]
mov dword [esp + 0x24], ebx
movsx ebx, word [eax + 0xa]
movsx eax, word [eax + 2]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], eax
lea esi, [esi]
nop
mov eax, dword [esp + 4]
mov edi, dword [esp + 8]
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 + 0xc]
imul ecx, dword [esp + 0x10]
add eax, 0xffffff80
add edx, 0xffffff80
add dword [esp + 4], 4
imul ebx, eax
imul eax, dword [esp + 0x24]
mov edi, ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], edi
imul ebx, edx
imul edx, dword [esp + 0x28]
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
or eax, ecx
mov ecx, dword [esp + 0x14]
or al, 0xff
mov dword [ebp - 8], eax
movzx eax, byte [esi - 2]
sub eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
lea ecx, [ecx + 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 [ebp - 4], ecx
add dword [esp + 8], 4
add dword [esp], 2
mov eax, dword [esp]
cmp eax, dword [esp + 0x18]
jb 0x6ca2e880
je 0x6ca2e9b8
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 0x6ca2e808
add esp, 0x44
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 4]
movzx ecx, byte [esi]
movzx edx, byte [eax]
mov eax, dword [esp + 8]
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 + 4]
imul eax, edi
lea eax, [ecx + eax + 0x2000]
sar eax, 6
movzx esi, byte [eax + 0x6ca94ce0]
movsx eax, word [ebx + 0xa]
imul eax, edx
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 0x6ca2e980