Function at 0x6ca2e240
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 0x6ca2e44f
mov edi, dword [esp + 0x58]
lea eax, [eax + eax*2]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], eax
sub edi, 1
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x3c], edi
lea esi, [esi]
mov eax, dword [esp + 0x34]
add dword [esp + 0x2c], 1
mov edi, 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 0x6ca2e460
mov esi, dword [esp + 0x40]
mov dword [esp], 0
lea eax, [esi*4 + 0x6ca94f20]
movzx esi, byte [esi*4 + 0x6ca94f20]
movsx ebx, word [eax + 4]
mov dword [esp + 0xc], esi
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 esi, dword [esp + 8]
add ebp, 4
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
movzx edx, byte [eax]
movzx eax, byte [esi]
add edx, 0xffffff80
add eax, 0xffffff80
imul ecx, edx
imul ebx, eax
imul eax, dword [esp + 0x24]
mov esi, ecx
movzx ecx, byte [edi]
sub ecx, dword [esp + 0xc]
imul ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
imul edx, dword [esp + 0x28]
add esi, eax
lea eax, [ebx + ecx + 0x2000]
sar eax, 6
movzx ebx, byte [eax + 0x6ca94ce0]
lea eax, [edx + ecx + 0x2000]
lea ecx, [esi + ecx + 0x2000]
sar eax, 6
sar ecx, 6
movzx eax, byte [eax + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl ebx, 8
and bx, 0xf800
shr al, 3
shl ecx, 3
movzx eax, al
and cx, 0x7e0
or eax, ebx
mov ebx, dword [esp + 0x14]
or eax, ecx
mov word [ebp - 4], ax
movzx eax, byte [edi + 2]
sub eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
lea ecx, [ebx + eax + 0x2000]
lea edx, [edx + eax + 0x2000]
sar ecx, 6
sar edx, 6
lea eax, [esi + eax + 0x2000]
sar eax, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
movzx edx, byte [edx + 0x6ca94ce0]
movzx eax, byte [eax + 0x6ca94ce0]
shl ecx, 8
shr dl, 3
and cx, 0xf800
shl eax, 3
movzx edx, dl
and ax, 0x7e0
or ecx, edx
or ecx, eax
mov word [ebp - 2], cx
add edi, 4
add dword [esp], 2
mov eax, dword [esp]
add dword [esp + 4], 4
add dword [esp + 8], 4
cmp eax, dword [esp + 0x18]
jb 0x6ca2e310
je 0x6ca2e460
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x30], edi
mov edi, dword [esp + 0x70]
add dword [esp + 0x34], edi
add dword [esp + 0x38], edi
mov edi, dword [esp + 0x78]
add dword [esp + 0x3c], edi
cmp eax, dword [esp + 0x5c]
jne 0x6ca2e298
add esp, 0x44
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 4]
movzx ecx, byte [edi]
movzx edx, byte [eax]
mov eax, dword [esp + 8]
movzx eax, byte [eax]
add edx, 0xffffff80
lea esi, [eax - 0x80]
mov eax, dword [esp + 0x40]
mov edi, esi
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, esi
lea eax, [ecx + eax + 0x2000]
sar eax, 6
movzx esi, byte [eax + 0x6ca94ce0]
movsx eax, word [ebx + 0xa]
imul eax, edx
shl esi, 8
and si, 0xf800
lea eax, [ecx + eax + 0x2000]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shr al, 3
movzx eax, al
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, 3
and dx, 0x7e0
or eax, edx
mov word [ebp], ax
jmp 0x6ca2e425