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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x10154acf
mov eax, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10154ae2
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [eax + 0x10]
xor ecx, ecx
mov ebx, dword [eax + 0x14]
xor edx, edx
xor eax, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edx
cmp ax, word [esi]
jge 0x10154e55
nop word [eax + eax]
mov eax, dword [esi + 0xc]
movsx edx, word [eax + edx*2]
mov dword [esp + 0x30], edx
test edx, edx
js 0x10154ac3
mov eax, dword [esi + 4]
lea edx, [eax + edx*8]
mov dword [esp + 0x24], edx
lea esi, [eax + ecx*8]
mov eax, dword [esi]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov ecx, edi
shl dword [esp + 0x10], cl
shl eax, cl
mov ecx, dword [esp + 0x10]
sub eax, ebx
sub ecx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [edx]
test ecx, ecx
mov dword [esp + 0x18], ecx
mov ecx, edi
shl dword [esp + 0x18], cl
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
sub ecx, ebx
mov eax, dword [edx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov ecx, edi
shl dword [esp + 0x14], cl
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
sub ecx, ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
add ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
movsx eax, byte [ecx]
and eax, 3
cmp eax, 2
je 0x10154ac3
test eax, eax
jne 0x10154c13
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x30]
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x1c]
mov al, byte [eax + edi]
mov edi, dword [esp + 0x28]
and al, 3
cmp al, 1
jne 0x10154be9
mov eax, dword [esp + 0x18]
sub edx, 8
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], edx
jmp 0x10154c07
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
sub esi, 8
mov dword [esp + 0x3c], eax
dec ecx
mov dword [esp + 0x20], ecx
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x10154e57
mov ecx, dword [esp + 0x24]
cmp esi, ecx
jae 0x10154e1a
nop dword [eax]
mov edx, dword [esp + 0x20]
add esi, 8
inc edx
mov dword [esp + 0x20], edx
movsx eax, byte [edx]
and eax, 3
sub eax, 0
je 0x10154d33
sub eax, 1
je 0x10154cfc
lea eax, [esi + 8]
cmp eax, ecx
ja 0x10154ac3
mov al, byte [edx + 1]
and al, 3
cmp al, 2
jne 0x10154ac3
mov eax, dword [esi]
add esi, 0x10
push dword [ebp + 0x10]
mov ecx, edi
add edx, 2
shl eax, cl
sub eax, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x5c], eax
mov eax, dword [esi - 0xc]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x60], eax
mov eax, dword [esi - 8]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x54], eax
mov eax, dword [esi - 4]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x58], eax
cmp esi, dword [esp + 0x28]
ja 0x10154e5e
mov eax, dword [esi]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 4]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
call eax
add esp, 0x10
test eax, eax
jne 0x10154e57
jmp 0x10154e0e
mov eax, dword [esi]
mov ecx, edi
push dword [ebp + 0x10]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 4]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
call eax
add esp, 8
test eax, eax
jne 0x10154e57
jmp 0x10154e0e
mov ebx, dword [esi]
mov ecx, edi
shl ebx, cl
sub ebx, dword [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov eax, dword [esi + 4]
shl eax, cl
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], eax
cmp esi, dword [esp + 0x24]
jae 0x10154e7a
mov eax, dword [esi + 8]
add esi, 8
inc edx
mov ecx, edi
shl eax, cl
mov ecx, dword [esp + 0x28]
mov edi, dword [esi + 4]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
movsx edx, byte [edx]
shl edi, cl
and edx, 3
sub edi, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
cmp edx, 1
je 0x10154dea
test edx, edx
jne 0x10154ac3
push dword [ebp + 0x10]
add eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
add eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call eax
add esp, 0xc
test eax, eax
jne 0x10154e57
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], ebx
jmp 0x10154d4a
push dword [ebp + 0x10]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call eax
add esp, 0xc
test eax, eax
jne 0x10154e57
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp esi, ecx
jb 0x10154c40
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
call eax
add esp, 8
test eax, eax
jne 0x10154e57
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
inc edx
mov ebx, dword [esp + 0x1c]
inc ecx
movsx eax, word [esi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edx
cmp edx, eax
jl 0x10154b10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
call eax
add esp, 0x10
jmp 0x10154e2d
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call eax
add esp, 0xc
jmp 0x10154e2d