Function at 0x6ca304d0
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 0x6ca308d0
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 0x6ca307a0
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], 0
lea eax, [edi*4 + 0x6ca94f20]
movzx edi, byte [edi*4 + 0x6ca94f20]
movsx ebx, word [eax + 4]
mov dword [esp + 0x24], ebx
movsx ebx, word [eax + 6]
mov dword [esp + 0x28], ebx
movsx ebx, word [eax + 8]
mov dword [esp + 0x2c], ebx
movsx ebx, word [eax + 0xa]
movsx eax, word [eax + 2]
mov dword [esp + 0x30], ebx
mov dword [esp], eax
lea esi, [esi]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
movzx eax, byte [eax]
movzx edx, byte [ebx]
add eax, 0xffffff80
imul ecx, eax
add edx, 0xffffff80
imul esi, edx
imul eax, dword [esp + 0x30]
mov ebx, ecx
mov ecx, dword [esp + 4]
imul edx, dword [esp + 0x2c]
movzx ecx, byte [ecx]
add ebx, edx
sub ecx, edi
imul ecx, dword [esp]
lea edx, [eax + ecx + 0x2000]
sar edx, 6
movzx ebp, byte [edx + 0x6ca94ce0]
lea edx, [esi + ecx + 0x2000]
lea ecx, [ebx + ecx + 0x2000]
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl ebp, 0x18
shl edx, 8
shl ecx, 0x10
or edx, ebp
mov ebp, dword [esp + 0xc]
or edx, ecx
mov ecx, dword [esp + 4]
or dl, 0xff
mov dword [ebp], edx
movzx ecx, byte [ecx + 1]
sub ecx, edi
imul ecx, dword [esp]
lea edx, [eax + ecx + 0x2000]
sar edx, 6
movzx ebp, byte [edx + 0x6ca94ce0]
lea edx, [esi + ecx + 0x2000]
lea ecx, [ebx + ecx + 0x2000]
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl ebp, 0x18
shl edx, 8
shl ecx, 0x10
or edx, ebp
mov ebp, dword [esp + 0xc]
or edx, ecx
or dl, 0xff
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, [eax + ecx + 0x2000]
sar edx, 6
movzx ebp, byte [edx + 0x6ca94ce0]
lea edx, [esi + ecx + 0x2000]
lea ecx, [ebx + ecx + 0x2000]
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl ebp, 0x18
shl edx, 8
shl ecx, 0x10
or edx, ebp
or edx, ecx
mov ecx, dword [esp + 0x10]
or dl, 0xff
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], 2
sub edx, edi
imul edx, dword [esp]
add dword [esp + 0x1c], 2
mov dword [esp + 8], ebp
lea ecx, [esi + edx + 0x2000]
lea eax, [eax + edx + 0x2000]
mov esi, dword [esp + 0x10]
sar eax, 6
sar ecx, 6
lea edx, [ebx + edx + 0x2000]
movzx eax, byte [eax + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
sar edx, 6
add esi, 8
movzx edx, byte [edx + 0x6ca94ce0]
shl eax, 0x18
shl ecx, 8
or eax, ecx
shl edx, 0x10
or eax, edx
or al, 0xff
mov dword [esi - 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
cmp eax, dword [esp + 0x20]
jb 0x6ca305a8
je 0x6ca307a0
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 0x6ca30518
je 0x6ca308a7
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 ebp, 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]
mov eax, dword [esp + 4]
mov dword [esp], ebx
imul edx, esi
mov esi, ecx
mov ebx, edx
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, [ebp + edx + 0x2000]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shl ecx, 0x18
shl eax, 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 al, 0xff
mov dword [edx], eax
mov eax, dword [esp + 8]
movzx eax, byte [eax]
sub eax, esi
imul eax, edi
lea edx, [ebx + eax + 0x2000]
lea ecx, [ebp + eax + 0x2000]
sar edx, 6
sar ecx, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl edx, 0x18
shl ecx, 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 dl, 0xff
mov dword [eax], edx
jmp 0x6ca3076e
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 0x6ca30a4e
xor ebp, ebp
mov esi, dword [esp + 0x78]
mov dword [esp], ebp
mov ebp, dword [esp + 0x64]
lea esi, [esi]
nop
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x10]
add esi, 8
add ebp, 2
mov ebx, dword [esp + 0x14]
movzx ecx, byte [ebp - 2]
movzx edx, byte [eax]
mov eax, dword [esp + 0x6c]
sub ecx, dword [esp + 8]
imul ecx, dword [esp + 0xc]
movzx eax, byte [eax]
add edx, 0xffffff80
add dword [esp + 0x68], 2
imul ebx, edx
add eax, 0xffffff80
imul edx, dword [esp + 0x1c]
imul edi, eax
imul eax, dword [esp + 0x18]
mov dword [esp + 4], edi
add ebx, eax
lea eax, [edx + ecx + 0x2000]
sar eax, 6
movzx edi, byte [eax + 0x6ca94ce0]
mov eax, dword [esp + 4]
lea eax, [eax + ecx + 0x2000]
lea ecx, [ebx + ecx + 0x2000]
shl edi, 0x18
sar eax, 6
sar ecx, 6
movzx eax, byte [eax + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
shl eax, 8
shl ecx, 0x10
or eax, edi
mov edi, dword [esp + 4]
or eax, ecx
or al, 0xff
mov dword [esi - 8], eax
movzx eax, byte [ebp - 1]
sub eax, dword [esp + 8]
imul eax, dword [esp + 0xc]
lea edx, [edx + eax + 0x2000]
lea ecx, [edi + eax + 0x2000]
sar edx, 6
sar ecx, 6
lea eax, [ebx + eax + 0x2000]
sar eax, 6
movzx edx, byte [edx + 0x6ca94ce0]
movzx ecx, byte [ecx + 0x6ca94ce0]
movzx eax, byte [eax + 0x6ca94ce0]
shl edx, 0x18
shl ecx, 8
shl eax, 0x10
or edx, ecx
or edx, eax
or dl, 0xff
mov dword [esi - 4], edx
add dword [esp + 0x6c], 2
add dword [esp], 2
mov eax, dword [esp]
cmp eax, dword [esp + 0x20]
jb 0x6ca30940
mov dword [esp + 0x64], ebp
mov dword [esp + 0x78], esi
jne 0x6ca30797
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x78]
movzx eax, byte [eax]
lea edx, [eax - 0x80]
mov eax, dword [esp + 0x6c]
imul ecx, edx
movzx eax, byte [eax]
imul edx, dword [esp + 0x14]
lea ebx, [eax - 0x80]
mov eax, dword [esp + 0x64]
movzx eax, byte [eax]
sub eax, dword [esp + 8]
imul eax, dword [esp + 0xc]
lea ecx, [eax + ecx + 0x2000]
sar ecx, 6
movzx ecx, byte [ecx + 0x6ca94ce0]
mov esi, ecx
mov ecx, dword [esp + 0x10]
shl esi, 0x18
imul ecx, ebx
imul ebx, dword [esp + 0x18]
lea ecx, [eax + ecx + 0x2000]
add edx, ebx
sar ecx, 6
lea eax, [eax + edx + 0x2000]
movzx ecx, byte [ecx + 0x6ca94ce0]
sar eax, 6
movzx eax, byte [eax + 0x6ca94ce0]
shl ecx, 8
or ecx, esi
shl eax, 0x10
or ecx, eax
mov eax, ecx
or al, 0xff
mov dword [edi], eax
add esp, 0x48
pop ebx
pop esi
pop edi
pop ebp
ret