Function at 0x6ca2ed10
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 0x6ca2ef09
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 0x6ca2ef18
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 edi, dword [esp + 8]
mov ebx, dword [esp + 0x1c]
add ebp, 8
add esi, 4
mov eax, dword [esp + 4]
movzx ecx, byte [esi - 4]
movzx edx, byte [edi]
sub ecx, dword [esp + 0xc]
movzx eax, byte [eax]
imul ecx, dword [esp + 0x10]
add edx, 0xffffff80
add dword [esp], 2
imul ebx, edx
add eax, 0xffffff80
add dword [esp + 4], 4
imul edx, dword [esp + 0x24]
add dword [esp + 8], 4
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
imul ebx, eax
imul eax, dword [esp + 0x28]
add ebx, edx
lea edx, [ebx + ecx + 0x2000]
sar edx, 6
movzx edi, byte [edx + 0x6ca94ce0]
lea edx, [eax + ecx + 0x2000]
sar edx, 6
movzx edx, byte [edx + 0x6ca94ce0]
shl edi, 8
or edx, edi
mov edi, dword [esp + 0x14]
lea ecx, [edi + ecx + 0x2000]
sar ecx, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
shl ecx, 0x10
or edx, ecx
or edx, 0xff000000
mov dword [ebp - 8], edx
movzx edx, byte [esi - 2]
sub edx, dword [esp + 0xc]
imul edx, dword [esp + 0x10]
lea ecx, [ebx + 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, 8
or ecx, eax
lea eax, [edi + edx + 0x2000]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shl eax, 0x10
or ecx, eax
mov eax, dword [esp]
or ecx, 0xff000000
mov dword [ebp - 4], ecx
cmp eax, dword [esp + 0x18]
jb 0x6ca2ede0
je 0x6ca2ef18
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 0x6ca2ed68
add esp, 0x44
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 4]
movzx ecx, byte [eax]
mov eax, dword [esp + 8]
movzx eax, byte [eax]
add ecx, 0xffffff80
lea edi, [eax - 0x80]
movzx eax, byte [esi]
mov esi, dword [esp + 0x40]
movzx ebx, byte [esi*4 + 0x6ca94f20]
lea edx, [esi*4 + 0x6ca94f20]
movsx esi, word [edx + 8]
sub eax, ebx
movsx ebx, word [edx + 2]
imul esi, edi
imul eax, ebx
movsx ebx, word [edx + 6]
imul ebx, ecx
add ebx, esi
movsx esi, word [edx + 0xa]
movsx edx, word [edx + 4]
lea ebx, [eax + ebx + 0x2000]
imul esi, ecx
sar ebx, 6
imul edx, edi
movzx ebx, byte [ebx + 0x6ca94ce0]
lea ecx, [eax + esi + 0x2000]
shl ebx, 8
lea eax, [eax + edx + 0x2000]
sar ecx, 6
sar eax, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
movzx eax, byte [eax + 0x6ca94ce0]
or ecx, ebx
shl eax, 0x10
or ecx, eax
or ecx, 0xff000000
mov dword [ebp], ecx
jmp 0x6ca2eedf