Function at 0x6ca2dc30
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 0x6ca2e02d
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 0x6ca2df00
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, [ebx + ecx + 0x2000]
sar edx, 6
movzx ebp, byte [edx + 0x6ca94ce0]
lea edx, [esi + ecx + 0x2000]
lea ecx, [eax + ecx + 0x2000]
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl ebp, 8
or edx, ebp
shl ecx, 0x10
mov ebp, dword [esp + 0xc]
or edx, ecx
mov ecx, dword [esp + 4]
or edx, 0xff000000
mov dword [ebp], edx
movzx ecx, byte [ecx + 1]
sub ecx, edi
imul ecx, dword [esp]
lea edx, [ebx + ecx + 0x2000]
sar edx, 6
movzx ebp, byte [edx + 0x6ca94ce0]
lea edx, [esi + ecx + 0x2000]
lea ecx, [eax + ecx + 0x2000]
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl ebp, 8
or edx, ebp
shl ecx, 0x10
mov ebp, dword [esp + 0xc]
or edx, ecx
or edx, 0xff000000
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, [ebx + ecx + 0x2000]
sar edx, 6
movzx ebp, byte [edx + 0x6ca94ce0]
lea edx, [esi + ecx + 0x2000]
lea ecx, [eax + ecx + 0x2000]
shl ebp, 8
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
or edx, ebp
shl ecx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x10]
or edx, 0xff000000
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], 1
sub edx, edi
imul edx, dword [esp]
add dword [esp + 0x1c], 1
mov dword [esp + 8], ebp
lea ecx, [ebx + edx + 0x2000]
lea eax, [eax + edx + 0x2000]
sar ecx, 6
lea ebx, [esi + edx + 0x2000]
sar eax, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
sar ebx, 6
movzx eax, byte [eax + 0x6ca94ce0]
movzx ebx, byte [ebx + 0x6ca94ce0]
shl ecx, 8
shl eax, 0x10
or ecx, ebx
or ecx, eax
mov eax, dword [esp + 0x10]
or ecx, 0xff000000
mov dword [eax + 4], ecx
add eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
jb 0x6ca2dd08
je 0x6ca2df00
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 0x6ca2dc78
je 0x6ca2e004
add esp, 0x48
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 4]
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 dword [esp], edx
movsx edx, word [eax + 8]
imul edx, ebx
lea ebx, [ecx + edx]
movsx edx, word [eax + 0xa]
movzx ecx, byte [edi*4 + 0x6ca94f20]
movsx edi, word [eax + 2]
imul esi, edx
movzx edx, byte [ebp]
mov ebp, ecx
sub edx, ecx
imul edx, edi
lea eax, [ebx + edx + 0x2000]
sar eax, 6
movzx ecx, byte [eax + 0x6ca94ce0]
mov eax, dword [esp]
lea eax, [eax + edx + 0x2000]
lea edx, [esi + edx + 0x2000]
shl ecx, 8
sar eax, 6
sar edx, 6
movzx eax, byte [eax + 0x6ca94ce0]
movzx edx, byte [edx + 0x6ca94ce0]
or eax, ecx
shl edx, 0x10
mov ecx, dword [esp + 0xc]
or eax, edx
or eax, 0xff000000
mov dword [ecx], eax
mov ecx, dword [esp + 8]
movzx eax, byte [ecx]
sub eax, ebp
imul eax, edi
mov edi, dword [esp]
lea edx, [ebx + eax + 0x2000]
lea ecx, [edi + eax + 0x2000]
sar edx, 6
lea eax, [esi + eax + 0x2000]
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
sar eax, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
movzx eax, byte [eax + 0x6ca94ce0]
shl edx, 8
shl eax, 0x10
or edx, ecx
or edx, eax
mov eax, dword [esp + 0x10]
or edx, 0xff000000
mov dword [eax], edx
jmp 0x6ca2decf
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 + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6ca2e1a7
xor ebp, ebp
mov esi, dword [esp + 0x64]
mov dword [esp], ebp
mov ebp, dword [esp + 0x78]
lea esi, [esi]
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
add ebp, 8
add esi, 2
mov ebx, dword [esp + 0x14]
movzx ecx, byte [esi - 2]
movzx edx, byte [edi]
movzx eax, byte [eax]
mov edi, dword [esp + 0x10]
sub ecx, dword [esp + 8]
add eax, 0xffffff80
imul ecx, dword [esp + 0xc]
add edx, 0xffffff80
add dword [esp], 2
imul edi, edx
add dword [esp + 0x68], 1
imul ebx, eax
add dword [esp + 0x6c], 1
imul edx, dword [esp + 0x18]
imul eax, dword [esp + 0x1c]
mov dword [esp + 4], edi
add ebx, edx
lea edx, [ebx + ecx + 0x2000]
sar edx, 6
movzx edi, byte [edx + 0x6ca94ce0]
mov edx, dword [esp + 4]
lea edx, [edx + ecx + 0x2000]
lea ecx, [eax + ecx + 0x2000]
shl edi, 8
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
or edx, edi
shl ecx, 0x10
mov edi, dword [esp + 4]
or edx, ecx
or edx, 0xff000000
mov dword [ebp - 8], edx
movzx edx, byte [esi - 1]
sub edx, dword [esp + 8]
imul edx, dword [esp + 0xc]
lea ecx, [ebx + edx + 0x2000]
lea eax, [eax + edx + 0x2000]
sar ecx, 6
lea ebx, [edi + edx + 0x2000]
sar eax, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
sar ebx, 6
movzx eax, byte [eax + 0x6ca94ce0]
movzx ebx, byte [ebx + 0x6ca94ce0]
shl ecx, 8
shl eax, 0x10
or ecx, ebx
or ecx, eax
mov eax, dword [esp]
or ecx, 0xff000000
mov dword [ebp - 4], ecx
cmp eax, dword [esp + 0x20]
jb 0x6ca2e098
mov dword [esp + 0x64], esi
mov dword [esp + 0x78], ebp
jne 0x6ca2def8
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x78]
movzx eax, byte [eax]
lea esi, [eax - 0x80]
mov eax, dword [esp + 0x6c]
imul ecx, esi
movzx eax, byte [eax]
imul esi, dword [esp + 0x1c]
lea edx, [eax - 0x80]
mov eax, dword [esp + 0x64]
imul ebx, edx
movzx eax, byte [eax]
sub eax, dword [esp + 8]
imul eax, dword [esp + 0xc]
imul edx, dword [esp + 0x10]
add ecx, ebx
lea ecx, [eax + ecx + 0x2000]
lea edx, [eax + edx + 0x2000]
sar ecx, 6
lea eax, [eax + esi + 0x2000]
movzx ecx, byte [ecx + 0x6ca94ce0]
sar edx, 6
sar eax, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx eax, byte [eax + 0x6ca94ce0]
shl ecx, 8
or edx, ecx
shl eax, 0x10
or eax, edx
or eax, 0xff000000
mov dword [edi], eax
add esp, 0x48
pop ebx
pop esi
pop edi
pop ebp
ret