Function at 0x6ca2d620
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 0x6ca2da1c
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 0x6ca2d8f0
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, [eax + ecx + 0x2000]
lea ecx, [esi + 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, [eax + ecx + 0x2000]
lea ecx, [esi + 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, [eax + ecx + 0x2000]
lea ecx, [esi + 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
sar eax, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
movzx eax, byte [eax + 0x6ca94ce0]
shl ecx, 8
or ecx, eax
lea eax, [esi + edx + 0x2000]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shl eax, 0x10
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 0x6ca2d6f8
je 0x6ca2d8f0
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 0x6ca2d668
je 0x6ca2d9f3
add esp, 0x48
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
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]
movzx ecx, byte [edi*4 + 0x6ca94f20]
movsx edx, word [eax + 0xa]
movsx edi, word [eax + 2]
mov eax, dword [esp + 4]
imul esi, edx
mov ebp, ecx
movzx edx, byte [eax]
sub edx, ecx
imul edx, edi
lea eax, [ebx + edx + 0x2000]
sar eax, 6
movzx ecx, byte [eax + 0x6ca94ce0]
lea eax, [esi + edx + 0x2000]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shl ecx, 8
or eax, ecx
mov ecx, dword [esp]
lea edx, [ecx + edx + 0x2000]
sar edx, 6
movzx edx, byte [edx + 0x6ca94ce0]
shl edx, 0x10
or eax, edx
mov edx, dword [esp + 0xc]
or eax, 0xff000000
mov dword [edx], eax
mov eax, dword [esp + 8]
movzx eax, byte [eax]
sub eax, ebp
imul eax, edi
lea edx, [ebx + eax + 0x2000]
lea ecx, [esi + eax + 0x2000]
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl edx, 8
or edx, ecx
mov ecx, dword [esp]
lea eax, [ecx + eax + 0x2000]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shl eax, 0x10
or edx, eax
mov eax, dword [esp + 0x10]
or edx, 0xff000000
mov dword [eax], edx
jmp 0x6ca2d8bf
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 + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6ca2db93
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 + 4]
add eax, 0xffffff80
imul ecx, dword [esp + 8]
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 + 0xc], edi
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 + 0xc]
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 - 1]
sub edx, dword [esp + 4]
imul edx, dword [esp + 8]
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 + 0x20]
jb 0x6ca2da88
mov dword [esp + 0x64], esi
mov dword [esp + 0x78], ebp
jne 0x6ca2d8e8
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 + 4]
imul eax, dword [esp + 8]
imul edx, dword [esp + 0x10]
add ecx, ebx
lea ecx, [eax + ecx + 0x2000]
sar ecx, 6
movzx ebx, byte [ecx + 0x6ca94ce0]
lea ecx, [eax + esi + 0x2000]
lea eax, [eax + edx + 0x2000]
sar ecx, 6
sar eax, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
movzx eax, byte [eax + 0x6ca94ce0]
shl ebx, 8
or ecx, ebx
shl eax, 0x10
or eax, ecx
or eax, 0xff000000
mov dword [edi], eax
add esp, 0x48
pop ebx
pop esi
pop edi
pop ebp
ret