Function at 0x6a810fe8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x84]
imul eax, ecx
mov edx, dword [esp + 0x80]
lea eax, [edx + eax - 1]
xor edx, edx
div dword [esp + 0x80]
mov dword [esp + 0x3c], eax
mov esi, dword [ebp + 4]
mov eax, dword [esp + 0x8c]
imul eax, esi
mov edi, dword [esp + 0x88]
lea eax, [edi + eax - 1]
xor edx, edx
div edi
mov dword [esp + 0x38], eax
movzx eax, byte [esp + 0x7c]
mov dword [esp + 0x48], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0x90]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0xc], edi
mov edi, dword [ebx + 8]
mov dword [esp + 8], edi
mov edi, dword [ebx + 0x18]
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.6a810908
mov ecx, dword [ebx]
cmp dword [esp + 0x3c], ecx
jge 0x6a811108
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x6a811108
mov esi, dword [esp + 0x3c]
dec esi
mov eax, dword [ebx + 8]
xor edx, edx
mov dword [esp + 0x40], ebp
mov ebp, esi
jmp 0x6a8110e1
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x18]
imul eax, edx
sub ecx, dword [esp + 0x3c]
inc ecx
lea esi, [eax + ebp]
add esi, edi
add edi, dword [esp + 0x3c]
mov al, byte [eax + edi - 2]
mov edi, esi
rep stosb byte es:[edi], al
inc edx
cmp dword [esp + 0x38], edx
jne 0x6a8110dc
mov ebp, dword [esp + 0x40]
mov edx, dword [ebx + 4]
cmp dword [esp + 0x38], edx
jge 0x6a81114f
mov eax, dword [esp + 0x38]
dec eax
cmp edx, eax
jle 0x6a81114f
mov ecx, dword [esp + 0x38]
sub ecx, 2
mov edx, eax
mov dword [esp + 0x44], ebp
mov ebp, ecx
lea esi, [esi]
mov edi, dword [ebx + 0x18]
mov esi, dword [ebx + 8]
mov eax, edx
imul eax, esi
add eax, edi
mov ecx, dword [ebx]
inc ecx
imul esi, ebp
add esi, edi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
inc edx
cmp dword [ebx + 4], edx
jg 0x6a81112c
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
shr eax, 0x1f
add eax, dword [esp + 0x38]
sar eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
shr eax, 0x1f
add eax, dword [esp + 0x3c]
sar eax, 1
mov dword [esp + 0x38], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x28], edi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], edi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], esi
mov esi, dword [ebx + 0x14]
mov dword [esp + 8], esi
mov esi, dword [ebx + 0x1c]
mov dword [esp + 4], esi
mov esi, dword [ebp + 0x10]
mov dword [esp], esi
call fcn.6a810908
mov ecx, dword [ebx + 0xc]
cmp dword [esp + 0x38], ecx
jge 0x6a8113e0
mov eax, dword [ebx + 0x10]
test eax, eax
jle 0x6a81124c
mov esi, dword [esp + 0x38]
neg esi
mov edi, dword [esp + 0x38]
dec edi
mov dword [esp + 0x44], edi
mov eax, dword [ebx + 0x14]
xor edx, edx
mov dword [esp + 0x4c], ebp
mov ebp, esi
mov esi, edi
jmp 0x6a811226
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
mov esi, dword [esp + 0x44]
mov edi, dword [ebx + 0x1c]
imul eax, edx
lea ecx, [ecx + ebp + 1]
add esi, eax
add esi, edi
add edi, dword [esp + 0x38]
mov al, byte [eax + edi - 2]
mov edi, esi
rep stosb byte es:[edi], al
inc edx
mov eax, dword [ebx + 0x10]
cmp eax, edx
jg 0x6a81121c
mov ebp, dword [esp + 0x4c]
cmp dword [esp + 0x40], eax
jge 0x6a8112a6
mov eax, dword [esp + 0x40]
dec eax
mov edx, dword [ebx + 4]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
sar edx, 1
cmp eax, edx
jge 0x6a8112a6
mov ecx, dword [esp + 0x40]
sub ecx, 2
mov edx, eax
mov dword [esp + 0x44], ebp
mov ebp, ecx
nop
mov ecx, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x14]
mov eax, edx
imul eax, esi
add eax, ecx
imul esi, ebp
add esi, ecx
mov ecx, dword [ebx + 0xc]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
inc edx
mov eax, dword [ebx + 4]
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
cmp eax, edx
jg 0x6a811278
mov ebp, dword [esp + 0x44]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x20]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x28], edi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], edi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], esi
mov esi, dword [ebx + 0x14]
mov dword [esp + 8], esi
mov esi, dword [ebx + 0x20]
mov dword [esp + 4], esi
mov esi, dword [ebp + 0x10]
mov dword [esp], esi
call fcn.6a810908
mov ecx, dword [ebx + 0xc]
cmp dword [esp + 0x38], ecx
jge 0x6a8113d8
mov eax, dword [ebx + 0x10]
test eax, eax
jle 0x6a811380
mov ebp, dword [esp + 0x3c]
shr ebp, 0x1f
add ebp, dword [esp + 0x3c]
sar ebp, 1
neg ebp
mov edi, dword [esp + 0x38]
dec edi
mov dword [esp + 0x3c], edi
mov eax, dword [ebx + 0x14]
xor edx, edx
mov esi, edi
jmp 0x6a81135e
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
mov esi, dword [esp + 0x3c]
mov edi, dword [ebx + 0x20]
imul eax, edx
lea ecx, [ecx + ebp + 1]
add esi, eax
add esi, edi
add edi, dword [esp + 0x38]
mov al, byte [eax + edi - 2]
mov edi, esi
rep stosb byte es:[edi], al
inc edx
mov eax, dword [ebx + 0x10]
cmp eax, edx
jg 0x6a811354
cmp dword [esp + 0x40], eax
jge 0x6a8113ce
mov eax, dword [esp + 0x40]
dec eax
mov edx, dword [ebx + 4]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
sar edx, 1
cmp eax, edx
jge 0x6a8113ce
mov ebp, dword [esp + 0x40]
sub ebp, 2
nop
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebx + 0x14]
mov edx, eax
imul edx, esi
add edx, ecx
imul esi, ebp
add esi, ecx
mov ecx, dword [ebx + 0xc]
mov edi, edx
rep movsb byte es:[edi], byte [esi]
inc eax
mov edx, dword [ebx + 4]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
sar edx, 1
cmp edx, eax
jg 0x6a8113a4
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x10]
jmp 0x6a811380
mov eax, dword [ebx + 0x10]
jmp 0x6a81124c