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

Disassembly:
mov eax, dword [esp + 0x34]
sub esp, 0x34
cmp dword [eax], 0
push ebx
push ebp
mov ebp, dword [eax + 4]
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x48]
jle 0x10150895
mov ebx, dword [esp + 0x4c]
lea edx, [edi + edi]
mov ecx, dword [esp + 0x50]
mov eax, ebx
mov edi, dword [esp + 0x58]
imul eax, ecx
add edi, edi
test ebp, ebp
mov dword [esp + 0x78], edx
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], eax
jle 0x10150798
test ecx, ecx
jle 0x10150738
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x68]
add eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
add eax, eax
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
shl eax, 2
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x6c]
shl eax, 2
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
test ebx, ebx
jle 0x10150703
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
mov eax, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], ebx
movzx eax, word [eax]
movzx ebx, word [edx]
mov ecx, dword [ecx]
mov edi, dword [esp + 0x14]
shl eax, 4
sub ecx, eax
shl ebx, 4
sub ebx, eax
mov edi, dword [edi]
sub edi, eax
mov eax, ecx
imul ecx
add dword [esi], eax
mov eax, edi
adc dword [esi + 4], edx
imul edi
add dword [esi + 0x18], eax
mov eax, edi
adc dword [esi + 0x1c], edx
imul ecx
add dword [esi + 8], eax
mov eax, ecx
mov ecx, dword [esp + 0x24]
adc dword [esi + 0xc], edx
imul ebx
add dword [ebp], eax
mov eax, edi
adc dword [ebp + 4], edx
imul ebx
add dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
adc dword [ebp + 0xc], edx
add eax, 2
mov edx, dword [esp + 0x20]
add ecx, 4
add dword [esp + 0x14], 4
add edx, 2
sub dword [esp + 0x28], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
jne 0x10150677
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
add dword [esp + 0x18], ebp
add eax, dword [esp + 0x38]
add edx, dword [esp + 0x3c]
add edi, dword [esp + 0x40]
sub ecx, 1
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x50], ecx
jne 0x10150653
mov eax, dword [esp + 0x30]
cdq
mov edi, edx
mov ebx, eax
push edi
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.10511aa0
push edi
mov dword [esi], eax
push ebx
mov dword [esi + 4], edx
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.10511aa0
push edi
mov dword [esi + 8], eax
push ebx
mov dword [esi + 0xc], edx
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.10511aa0
mov ecx, dword [esi + 0xc]
push edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
push ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
push dword [ebp + 4]
push dword [ebp]
call fcn.10511aa0
mov dword [ebp], eax
mov dword [ebp + 4], edx
jmp 0x101509ac
test ecx, ecx
jle 0x10150864
mov eax, dword [esp + 0x5c]
add eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
add eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
shl eax, 2
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], eax
test ebx, ebx
jle 0x1015083b
mov ecx, edx
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x4c]
mov ebx, eax
mov dword [esp + 0x28], ecx
mov eax, edi
mov dword [esp + 0x24], edx
movzx eax, word [eax]
lea ebx, [ebx + 4]
movzx edi, word [ecx]
mov ecx, dword [ebx - 4]
shl eax, 4
sub ecx, eax
shl edi, 4
sub edi, eax
mov eax, ecx
imul ecx
add dword [esi], eax
mov eax, ecx
mov ecx, dword [esp + 0x28]
adc dword [esi + 4], edx
imul edi
add dword [ebp], eax
mov eax, dword [esp + 0x2c]
adc dword [ebp + 4], edx
add eax, 2
add ecx, 2
mov dword [esp + 0x2c], eax
sub dword [esp + 0x24], 1
mov dword [esp + 0x28], ecx
jne 0x101507e1
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x40]
add edx, dword [esp + 0x3c]
add edi, dword [esp + 0x38]
sub ecx, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x50], ecx
jne 0x101507c7
mov eax, dword [esp + 0x30]
cdq
mov edi, edx
mov ebx, eax
push edi
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.10511aa0
push edi
push ebx
mov dword [esi], eax
mov dword [esi + 4], edx
push dword [ebp + 4]
push dword [ebp]
call fcn.10511aa0
pop edi
pop esi
mov dword [ebp], eax
mov dword [ebp + 4], edx
pop ebp
pop ebx
add esp, 0x34
ret
test ebp, ebp
jle 0x101509bf
mov edx, dword [esp + 0x4c]
add edi, edi
mov ecx, dword [esp + 0x50]
mov eax, edx
mov ebp, dword [esp + 0x74]
imul eax, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
lea ebx, [eax + eax]
mov dword [esp + 0x78], ebx
test ecx, ecx
jle 0x10150990
mov eax, dword [esp + 0x5c]
add eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
add eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x6c]
shl eax, 2
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x24], eax
test edx, edx
jle 0x1015096b
mov ebx, eax
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x78]
mov ecx, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
nop word [eax + eax]
movzx eax, word [eax]
lea ebx, [ebx + 4]
movzx edi, word [ecx]
mov ecx, dword [ebx - 4]
shl eax, 4
sub ecx, eax
shl edi, 4
sub edi, eax
mov eax, ecx
imul ecx
add dword [esi + 0x18], eax
mov eax, ecx
mov ecx, dword [esp + 0x2c]
adc dword [esi + 0x1c], edx
imul edi
add dword [ebp + 8], eax
mov eax, dword [esp + 0x30]
adc dword [ebp + 0xc], edx
add eax, 2
add ecx, 2
mov dword [esp + 0x30], eax
sub dword [esp + 0x28], 1
mov dword [esp + 0x2c], ecx
jne 0x10150910
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x40]
add edi, dword [esp + 0x3c]
add ebx, dword [esp + 0x38]
sub ecx, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x50], ecx
jne 0x101508f2
mov eax, dword [esp + 0x34]
cdq
mov edi, edx
mov ebx, eax
push edi
push ebx
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.10511aa0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10511aa0
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret