Function at 0x1004ba70
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
mov eax, edx
push ebp
push esi
push edi
mov edi, dword [eax + 0x20]
xor ebp, ebp
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebp
test edi, edi
je 0x1004bb25
test eax, eax
jle 0x1004bbea
mov eax, 0x55555556
imul dword [ebx + 8]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, dword [ebx + 4]
xor esi, esi
add eax, ebp
mov ebp, dword [edi + eax*4]
test ecx, ecx
jle 0x1004bb0f
xor edi, edi
mov edx, dword [ebx]
add edx, edi
add edi, 3
movzx eax, byte [edx + ebp + 1]
movzx ecx, byte [edx + ebp + 2]
add ecx, eax
movzx eax, byte [edx + ebp]
mov edx, dword [esp + 0x18]
inc ecx
add eax, ecx
imul ecx, eax, 0x555555
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
shr ecx, 0x18
mov eax, dword [eax + edx*4]
mov byte [esi + eax], cl
mov eax, 0x55555556
imul dword [ebx + 8]
inc esi
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jl 0x1004bac0
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x20]
mov ebp, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x18], ebp
cmp ebp, dword [ebx + 0xc]
jl 0x1004bab0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test eax, eax
jle 0x1004bbea
mov eax, 0x55555556
imul dword [ebx + 8]
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
mov eax, dword [edx + 0x28]
add ecx, ebp
mov edi, dword [eax + ecx*4]
mov eax, dword [edx + 0x10]
cmp eax, 2
jne 0x1004bbf2
xor ebp, ebp
test esi, esi
jle 0x1004bbd8
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov esi, dword [ebx]
add esi, ecx
movzx eax, byte [edi + esi*4 + 4]
movzx ecx, byte [edi + esi*4 + 8]
add ecx, eax
movzx eax, byte [edi + esi*4]
inc ecx
add eax, ecx
movzx ecx, byte [edi + esi*4 + 0xb]
imul edx, eax, 0x555555
movzx eax, byte [edi + esi*4 + 7]
add ecx, eax
movzx eax, byte [edi + esi*4 + 3]
inc ecx
add eax, ecx
mov ecx, dword [esp + 0x18]
imul eax, eax, 0x555555
shr edx, 0x18
and eax, 0xff000000
or edx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
add ecx, 3
mov dword [esp + 0x1c], ecx
mov dword [eax + ebp*4], edx
mov eax, 0x55555556
imul dword [ebx + 8]
inc ebp
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ebp, esi
jl 0x1004bb63
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x18], ebp
cmp ebp, dword [ebx + 0xc]
jl 0x1004bb40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov dword [esp + 0x1c], 0
cmp eax, 3
jne 0x1004bcb7
test esi, esi
jle 0x1004bbdc
xor eax, eax
mov dword [esp + 0x18], eax
nop dword [eax]
mov esi, dword [ebx]
add esi, eax
add dword [esp + 0x18], 3
movzx eax, byte [edi + esi*4 + 4]
movzx ecx, byte [edi + esi*4 + 8]
add ecx, eax
movzx eax, byte [edi + esi*4]
inc ecx
add eax, ecx
movzx ecx, byte [edi + esi*4 + 9]
imul edx, eax, 0x555555
movzx eax, byte [edi + esi*4 + 5]
add ecx, eax
movzx eax, byte [edi + esi*4 + 1]
inc ecx
add eax, ecx
movzx ecx, byte [edi + esi*4 + 0xa]
imul eax, eax, 0x555555
shr edx, 8
and eax, 0xff00ffff
or edx, eax
movzx eax, byte [edi + esi*4 + 6]
add ecx, eax
shr edx, 8
movzx eax, byte [edi + esi*4 + 2]
inc ecx
add eax, ecx
mov ecx, dword [esp + 0x1c]
imul eax, eax, 0x555555
and eax, 0xff0000ff
or edx, eax
mov eax, dword [esp + 0x14]
shr edx, 8
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebp*4]
mov dword [eax + ecx*4], edx
mov eax, 0x55555556
imul dword [ebx + 8]
mov eax, dword [esp + 0x18]
inc ecx
mov esi, edx
mov dword [esp + 0x1c], ecx
shr esi, 0x1f
add esi, edx
cmp ecx, esi
jl 0x1004bc10
mov edx, dword [esp + 0x10]
jmp 0x1004bbdc
test esi, esi
jle 0x1004bbdc
xor eax, eax
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
add esi, eax
add dword [esp + 0x18], 3
movzx eax, byte [edi + esi*4 + 4]
movzx ecx, byte [edi + esi*4 + 8]
add ecx, eax
movzx eax, byte [edi + esi*4]
inc ecx
add eax, ecx
movzx ecx, byte [edi + esi*4 + 9]
imul edx, eax, 0x555555
movzx eax, byte [edi + esi*4 + 5]
add ecx, eax
movzx eax, byte [edi + esi*4 + 1]
inc ecx
add eax, ecx
movzx ecx, byte [edi + esi*4 + 0xa]
imul eax, eax, 0x555555
shr edx, 8
and eax, 0xff00ffff
or edx, eax
movzx eax, byte [edi + esi*4 + 6]
add ecx, eax
shr edx, 8
movzx eax, byte [edi + esi*4 + 2]
inc ecx
add eax, ecx
movzx ecx, byte [edi + esi*4 + 0xb]
imul eax, eax, 0x555555
and eax, 0xff0000ff
or edx, eax
movzx eax, byte [edi + esi*4 + 7]
add ecx, eax
shr edx, 8
movzx eax, byte [edi + esi*4 + 3]
inc ecx
add eax, ecx
mov ecx, dword [esp + 0x1c]
imul eax, eax, 0x555555
and eax, 0xff000000
or edx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebp*4]
mov dword [eax + ecx*4], edx
mov eax, 0x55555556
imul dword [ebx + 8]
mov eax, dword [esp + 0x18]
inc ecx
mov esi, edx
mov dword [esp + 0x1c], ecx
shr esi, 0x1f
add esi, edx
cmp ecx, esi
jl 0x1004bcc5
mov edx, dword [esp + 0x10]
jmp 0x1004bbdc