Function at 0x10106120
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov al, byte [edx + 0x4c]
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], al
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], edi
mov esi, dword [ecx]
cmp esi, dword [ebp + 0xc]
je 0x101064bb
push ebx
mov cl, byte [esi + 5]
test cl, 0x18
je 0x10106466
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ecx], eax
movzx eax, byte [esi + 4]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x1010616c.11
movzx eax, byte [eax + 0x101064ec]
jmp dword [eax*4 + 0x101064c4]
mov ebx, dword [esi + 0x14]
mov edi, dword [edi + 0x10]
push 0
shl ebx, 2
push ebx
push dword [esi + 0x34]
mov eax, dword [edi]
push dword [edi + 4]
call eax
sub dword [edi + 0xc], ebx
mov ebx, dword [esi + 0x1c]
mov edi, dword [ebp - 8]
push 0
shl ebx, 2
push ebx
mov edi, dword [edi + 0x10]
push dword [esi + 0x38]
push dword [edi + 4]
mov eax, dword [edi]
call eax
sub dword [edi + 0xc], ebx
mov eax, dword [ebp - 8]
mov ebx, dword [esi + 0x10]
push 0
shl ebx, 4
mov edi, dword [eax + 0x10]
push ebx
push dword [esi + 0x30]
push dword [edi + 4]
mov eax, dword [edi]
call eax
sub dword [edi + 0xc], ebx
mov eax, dword [ebp - 8]
mov ebx, dword [esi + 0x18]
push 0
push ebx
mov edi, dword [eax + 0x10]
push dword [esi + 0x40]
push dword [edi + 4]
mov eax, dword [edi]
call eax
sub dword [edi + 0xc], ebx
add esp, 0x40
mov eax, dword [ebp - 8]
mov ebx, dword [esi + 0x24]
shl ebx, 3
push 0
mov edi, dword [eax + 0x10]
push ebx
push dword [esi + 0x44]
push dword [edi + 4]
mov eax, dword [edi]
call eax
sub dword [edi + 0xc], ebx
mov eax, dword [esi + 0x20]
push 0
lea ebx, [eax + eax*2]
mov eax, dword [ebp - 8]
shl ebx, 2
push ebx
push dword [esi + 0x48]
mov edi, dword [eax + 0x10]
push dword [edi + 4]
mov eax, dword [edi]
call eax
sub dword [edi + 0xc], ebx
mov eax, dword [ebp - 8]
mov ebx, dword [esi + 0xc]
push 0
shl ebx, 3
mov edi, dword [eax + 0x10]
push ebx
push dword [esi + 0x3c]
push dword [edi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [ebp - 8]
sub dword [edi + 0xc], ebx
push 0
push 0x54
mov edi, dword [eax + 0x10]
mov eax, dword [edi]
push esi
push dword [edi + 4]
call eax
mov ecx, dword [ebp + 8]
add esp, 0x40
add dword [edi + 0xc], 0xffffffac
mov edi, dword [ebp - 8]
jmp case.0x1010616c.11
lea edx, [esi + 0x10]
cmp dword [esi + 8], edx
je 0x10106276
mov ecx, dword [esi + 0x14]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
test ecx, ecx
je 0x10106276
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x14], eax
mov edi, dword [edi + 0x10]
push 0
push 0x20
push esi
push dword [edi + 4]
mov eax, dword [edi]
call eax
mov ecx, dword [ebp + 8]
add esp, 0x10
add dword [edi + 0xc], 0xffffffe0
mov edi, dword [ebp - 8]
jmp case.0x1010616c.11
movzx eax, byte [esi + 6]
mov edi, dword [edi + 0x10]
push 0
lea ebx, [eax*4 + 0x10]
mov eax, dword [edi]
push ebx
push esi
push dword [edi + 4]
call eax
mov ecx, dword [ebp + 8]
add esp, 0x10
sub dword [edi + 0xc], ebx
mov edi, dword [ebp - 8]
jmp case.0x1010616c.11
movzx ebx, byte [esi + 6]
mov edi, dword [edi + 0x10]
inc ebx
push 0
shl ebx, 4
push ebx
mov eax, dword [edi]
push esi
push dword [edi + 4]
call eax
mov ecx, dword [ebp + 8]
add esp, 0x10
sub dword [edi + 0xc], ebx
mov edi, dword [ebp - 8]
jmp case.0x1010616c.11
cmp dword [esi + 0x14], 0
je 0x10106317
mov cl, byte [esi + 7]
mov eax, 1
mov edi, dword [edi + 0x10]
shl eax, cl
push 0
lea ebx, [eax + eax*2]
mov eax, dword [edi]
shl ebx, 3
push ebx
push dword [esi + 0x10]
push dword [edi + 4]
call eax
add esp, 0x10
sub dword [edi + 0xc], ebx
mov edi, dword [ebp - 8]
cmp byte [esi + 6], 0
jge 0x1010634c
mov ecx, dword [esi + 8]
lea eax, [ecx - 1]
test ecx, eax
je 0x1010634c
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov ebx, ecx
shr ebx, 0x10
or ebx, ecx
inc ebx
jmp 0x1010634f
mov ebx, dword [esi + 8]
mov edi, dword [edi + 0x10]
push 0
shl ebx, 4
push ebx
push dword [esi + 0xc]
mov eax, dword [edi]
push dword [edi + 4]
call eax
mov eax, dword [ebp - 8]
sub dword [edi + 0xc], ebx
push 0
push 0x20
mov edi, dword [eax + 0x10]
push esi
push dword [edi + 4]
mov eax, dword [edi]
call eax
mov ecx, dword [ebp + 8]
add esp, 0x20
add dword [edi + 0xc], 0xffffffe0
mov edi, dword [ebp - 8]
jmp case.0x1010616c.11
mov edx, dword [esi + 0x1c]
mov ecx, esi
call fcn.10103ac0
mov ecx, esi
call fcn.10117010
mov edi, dword [edi + 0x10]
add esi, 0xfffffffc
push 0
push 0x78
push esi
push dword [edi + 4]
mov eax, dword [edi]
call eax
mov ecx, dword [ebp + 8]
add esp, 0x10
add dword [edi + 0xc], 0xffffff88
mov edi, dword [ebp - 8]
jmp case.0x1010616c.11
movzx eax, word [esi + 6]
test ax, ax
jne 0x101063ce
mov eax, 0x10
jmp 0x101063d4
shl eax, 4
add eax, 0x18
mov ebx, dword [esi + 8]
mov edi, dword [edi + 0x10]
add ebx, eax
push 0
push ebx
push esi
push dword [edi + 4]
mov eax, dword [edi]
call eax
mov ecx, dword [ebp + 8]
add esp, 0x10
sub dword [edi + 0xc], ebx
mov edi, dword [ebp - 8]
jmp case.0x1010616c.11
mov edx, dword [edi + 0x10]
mov ecx, dword [edx + 0x20]
mov eax, dword [edx + 0x18]
dec ecx
and ecx, dword [esi + 8]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
cmp eax, esi
je 0x10106419
nop
lea ecx, [eax + 0xc]
mov eax, dword [ecx]
cmp eax, esi
jne 0x10106410
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
dec dword [edx + 0x1c]
movzx ebx, byte [esi + 7]
mov edi, dword [edi + 0x10]
add ebx, 0x11
push 0
push ebx
push esi
push dword [edi + 4]
mov eax, dword [edi]
call eax
mov ecx, dword [ebp + 8]
add esp, 0x10
sub dword [edi + 0xc], ebx
mov edi, dword [ebp - 8]
jmp case.0x1010616c.11
mov ebx, dword [esi + 0xc]
mov edi, dword [edi + 0x10]
add ebx, 0x11
push 0
push ebx
push esi
push dword [edi + 4]
mov eax, dword [edi]
call eax
mov ecx, dword [ebp + 8]
add esp, 0x10
sub dword [edi + 0xc], ebx
mov edi, dword [ebp - 8]
jmp case.0x1010616c.11
test cl, 7
jne 0x1010647a
and cl, 0xc1
and al, 0x18
or cl, al
or cl, 1
mov byte [esi + 5], cl
jmp 0x1010649e
movzx eax, cl
and cl, 0xf8
and eax, 7
or cl, byte [eax + 0x103f70d4]
mov byte [esi + 5], cl
and cl, 7
cmp cl, 3
jne 0x1010649e
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x1010649e
mov dword [eax], esi
mov ecx, esi
mov dword [ebp + 8], ecx
mov esi, dword [ecx]
mov al, byte [ebp - 1]
cmp esi, dword [ebp + 0xc]
jne 0x10106142
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret