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

Disassembly:
push ebp
xor edx, edx
push edi
xor edi, edi
push esi
xor esi, esi
push ebx
sub esp, 0x4c
cmp dword [esp + 0x78], 0xf
jle 0xbc8a7e
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
sub edx, 7
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x70]
sub eax, 0x10
shr eax, 4
add eax, 1
mov dword [esp + 0x3c], eax
shl edx, 4
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
shl edx, 4
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x74]
sub edx, 0x10
shr edx, 4
mov dword [esp + 0x2c], edx
xor eax, eax
cmp dword [esp + 0x74], 0xf
jle 0xbc8a42
mov ebp, dword [esp + 0x2c]
mov edi, 0x10
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x6c]
add ebx, dword [esp + 0x24]
add esi, dword [esp + 0x20]
add ebp, 2
shl ebp, 4
mov edx, dword [esp + 0x70]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x60]
call dword [edx + 0x1c]
mov edx, eax
sar edx, 0x1f
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
add edi, 0x10
add ebx, 0x10
add esi, 0x10
cmp edi, ebp
jne 0xbc8a00
mov eax, dword [esp + 0x2c]
add eax, 1
shl eax, 4
cmp eax, dword [esp + 0x30]
jl 0xbc8c30
mov edx, dword [esp + 0x34]
add dword [esp + 0x20], edx
mov edx, dword [esp + 0x38]
add dword [esp + 0x24], edx
add dword [esp + 0x28], 1
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x28], edx
jne 0xbc89d8
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
shl edx, 4
mov eax, dword [esp + 0x78]
sub eax, 7
cmp eax, edx
jle 0xbc8b1e
cmp dword [esp + 0x74], 7
jle 0xbc8b1e
mov eax, dword [esp + 0x68]
mov ecx, 8
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x60]
imul eax, edx
mov dword [esp + 0x10], esi
mov esi, ecx
add ebp, eax
mov eax, dword [esp + 0x70]
imul eax, edx
add ebx, eax
mov eax, dword [esp + 0x74]
sub eax, 8
shr eax, 3
lea eax, [eax*8 + 0x10]
mov dword [esp + 0x20], eax
lea esi, [esi]
mov edx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov dword [esp], ebp
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
call dword [edi + 0x28]
mov edx, eax
sar edx, 0x1f
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
add esi, 8
add ebp, 8
add ebx, 8
cmp esi, dword [esp + 0x20]
jne 0xbc8ae0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
test byte [esp + 0x74], 7
je 0xbc8b9f
mov edx, dword [esp + 0x78]
and edx, 0xfffffff8
mov dword [esp + 0x24], edx
jle 0xbc8b9f
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x1c], 0
and edx, 0xfffffff8
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x74], eax
jle 0xbc8b84
nop
lea esi, [esi]
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + eax]
movzx edx, byte [ebp + eax]
sub ecx, edx
imul ecx, ecx
mov ebx, ecx
sar ebx, 0x1f
add esi, ecx
adc edi, ebx
add eax, 1
cmp eax, dword [esp + 0x74]
jne 0xbc8b60
add dword [esp + 0x1c], 1
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], edx
add ebp, dword [esp + 0x70]
cmp dword [esp + 0x1c], eax
jne 0xbc8b51
test byte [esp + 0x78], 7
je 0xbc8c1f
mov edx, dword [esp + 0x78]
and edx, 0xfffffff8
cmp dword [esp + 0x78], edx
mov dword [esp + 0x1c], edx
jle 0xbc8c1f
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x70]
imul ebx, edx
add ebx, dword [esp + 0x64]
imul ebp, edx
add ebp, dword [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x74]
xor eax, eax
test edx, edx
jle 0xbc8c04
nop
lea esi, [esi]
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + eax]
movzx edx, byte [ebp + eax]
sub ecx, edx
imul ecx, ecx
mov ebx, ecx
sar ebx, 0x1f
add esi, ecx
adc edi, ebx
add eax, 1
cmp eax, dword [esp + 0x74]
jne 0xbc8be0
mov edx, dword [esp + 0x68]
add dword [esp + 0x10], edx
add dword [esp + 0x1c], 1
mov edx, dword [esp + 0x78]
add ebp, dword [esp + 0x70]
cmp dword [esp + 0x1c], edx
jne 0xbc8bd1
add esp, 0x4c
mov eax, esi
pop ebx
mov edx, edi
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x70]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x20]
add edx, eax
add edx, dword [esp + 0x6c]
add eax, dword [esp + 0x24]
add eax, dword [esp + 0x64]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x68]
mov dword [esp], eax
mov dword [esp + 4], edx
mov edx, dword [esp + 0x60]
call dword [edx + 0x24]
mov edx, eax
sar edx, 0x1f
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
jmp 0xbc8a4c