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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x1005b8bf
mov eax, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1005b8d2
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x10]
xor edx, edx
mov edi, dword [eax + 0x14]
xor eax, eax
mov dword [esp + 0x30], ecx
xor ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
cmp ax, word [ebx]
jge 0x1005bc08
nop word [eax + eax]
mov eax, dword [ebx + 0xc]
movsx ecx, word [eax + ecx*2]
mov dword [esp + 0x24], ecx
test ecx, ecx
js 0x1005b8b3
mov eax, dword [ebx + 4]
mov ebx, 1
lea ecx, [eax + ecx*8]
lea esi, [eax + edx*8]
mov dword [esp + 0xc], ecx
mov eax, dword [esi]
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 4]
shl ebx, cl
mov ecx, ebx
mov dword [esp + 0x34], ebx
imul ecx, eax
mov eax, ebx
imul eax, edx
sub ecx, edi
sub eax, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov eax, ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
imul eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
imul edx, ebx
sub eax, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
sub edx, edi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
add edi, dword [esp + 0x28]
movsx eax, byte [edi]
and eax, 3
cmp eax, 2
je 0x1005b8b3
test eax, eax
jne 0x1005b9e0
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x34]
mov al, byte [eax + ecx]
and al, 3
cmp al, 1
jne 0x1005b9bc
mov eax, dword [esp + 0x18]
sub dword [esp + 0xc], 8
mov dword [esp + 0x38], edx
jmp 0x1005b9d8
mov eax, dword [esp + 0x14]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
sub esi, 8
mov dword [esp + 0x3c], eax
dec edi
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 0x1005bc0a
mov edx, dword [esp + 0xc]
cmp esi, edx
jae 0x1005bbcd
movsx eax, byte [edi + 1]
inc edi
add esi, 8
and eax, 3
mov ecx, esi
sub eax, 0
je 0x1005baea
sub eax, 1
je 0x1005bab7
lea eax, [esi + 8]
cmp eax, edx
ja 0x1005b8b3
mov al, byte [edi + 1]
and al, 3
cmp al, 2
jne 0x1005b8b3
mov eax, dword [ecx]
add esi, 0x10
mov ecx, dword [esp + 0x10]
add edi, 2
imul eax, ebx
push dword [ebp + 0x10]
sub eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esi - 0xc]
imul eax, ebx
sub eax, ecx
mov dword [esp + 0x60], eax
mov eax, dword [esi - 8]
imul eax, ebx
sub eax, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esi - 4]
imul eax, ebx
sub eax, ecx
mov dword [esp + 0x58], eax
cmp esi, edx
ja 0x1005bc11
mov eax, dword [esi]
imul eax, ebx
sub eax, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 4]
imul eax, ebx
sub eax, ecx
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
jmp 0x1005bbbd
mov eax, dword [esi]
push dword [ebp + 0x10]
imul eax, ebx
sub eax, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 4]
imul eax, ebx
sub eax, dword [esp + 0x14]
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
jmp 0x1005bbbd
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
imul eax, ebx
sub eax, ecx
mov dword [esp + 0x40], eax
mov edx, dword [esi + 4]
imul edx, ebx
sub edx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], eax
nop dword [eax]
cmp esi, dword [esp + 0xc]
jae 0x1005bc2d
mov eax, dword [esi + 8]
add esi, 8
movsx edx, byte [edi + 1]
inc edi
imul eax, ebx
and edx, 3
sub eax, ecx
mov ecx, dword [esi + 4]
imul ecx, ebx
mov dword [esp + 0x48], eax
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
cmp edx, 1
je 0x1005bba5
test edx, edx
jne 0x1005b8b3
add eax, dword [esp + 0x20]
push dword [ebp + 0x10]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x1c]
add eax, ecx
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 0x1005bc0a
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
jmp 0x1005bb09
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 0x1005bc0a
mov edx, dword [esp + 0xc]
cmp esi, edx
jb 0x1005ba06
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 0x1005bc0a
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc ecx
mov edi, dword [esp + 0x10]
inc edx
movsx eax, word [ebx]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jl 0x1005b900
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 0x1005bbe0
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 0x1005bbe0