Function at 0x1001ea50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov dl, byte [edi + 6]
mov ecx, dword [edi + 8]
test dl, dl
jns 0x1001ea95
lea eax, [ecx - 1]
test ecx, eax
je 0x1001ea95
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 ebp, ecx
shr ebp, 0x10
or ebp, ecx
inc ebp
jmp 0x1001ea97
mov ebp, ecx
push dword [esp + 0x6c]
lea eax, [esp + 0x40]
mov dword [edi + 8], ebp
push eax
push dword [esp + 0x68]
and dl, 0x7f
mov byte [edi + 6], dl
call fcn.1001f280
add esp, 0xc
cmp ebx, ebp
jae 0x1001eba8
mov al, byte [edi + 7]
mov byte [esp + 0x13], al
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x24], eax
movzx eax, byte [esp + 0x43]
mov byte [edi + 7], al
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0x14], eax
mov eax, ebx
shl eax, 4
mov esi, eax
mov dword [edi + 8], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x64], esi
nop word [eax + eax]
add esi, dword [edi + 0xc]
test byte [esi + 8], 0xf
je 0x1001eb59
lea eax, [ebx + 1]
push 0
push eax
push edi
call fcn.1001e400
mov edx, eax
add esp, 0xc
cmp byte [edx + 8], 0x20
jne 0x1001eb49
lea eax, [ebx + 1]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push esi
push eax
push edi
push dword [esp + 0x6c]
mov byte [esp + 0x44], 3
call fcn.1001e660
add esp, 0x10
jmp 0x1001eb59
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov al, byte [esi + 8]
mov byte [edx + 8], al
mov esi, dword [esp + 0x64]
inc ebx
add esi, 0x10
mov dword [esp + 0x64], esi
cmp ebx, ebp
jb 0x1001eb00
mov ecx, dword [edi + 0x10]
mov bl, byte [esp + 0x13]
mov esi, dword [esp + 0x20]
mov al, byte [edi + 7]
mov edx, dword [edi + 0x14]
mov dword [edi + 0x10], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov byte [edi + 7], bl
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 8], ebp
mov dword [esp + 0x18], edx
mov dword [edi + 0x14], esi
mov byte [esp + 0x43], al
mov dword [esp + 0x50], edx
jmp 0x1001ebc1
mov eax, dword [esp + 0x50]
mov ecx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x43]
shl ecx, 4
push ecx
mov esi, ebp
mov byte [esp + 0x68], al
shl esi, 4
push esi
push dword [edi + 0xc]
push dword [esp + 0x6c]
call fcn.10026e40
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x1001ebe9
test ebx, ebx
jne 0x1001ecb1
mov eax, dword [edi + 0x10]
mov dl, byte [edi + 7]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x28], eax
mov al, byte [esp + 0x64]
mov byte [edi + 7], al
mov eax, dword [esp + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0x68], dl
mov dword [edi + 0x14], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ebx
cmp ebp, ebx
jae 0x1001ec30
sub ebx, ebp
nop
mov eax, dword [edi + 0xc]
lea esi, [esi + 0x10]
mov byte [eax + esi - 8], 0x10
sub ebx, 1
jne 0x1001ec20
mov ebp, 1
mov cl, dl
mov ebx, ebp
shl ebx, cl
test ebx, ebx
jle 0x1001ec81
mov esi, dword [esp + 0x1c]
add esi, 0x10
test byte [esi - 8], 0xf
je 0x1001ec76
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov al, byte [esi - 7]
mov byte [esp + 0x34], al
lea eax, [esi - 0x10]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], ecx
push eax
push edi
push dword [esp + 0x6c]
call fcn.1001ed10
add esp, 0x10
add esi, 0x18
sub ebx, ebp
jne 0x1001ec46
mov dl, byte [esp + 0x68]
cmp dword [esp + 0x28], 0
je 0x1001eca9
mov cl, dl
shl ebp, cl
lea eax, [ebp*2]
add eax, ebp
shl eax, 3
push eax
push dword [esp + 0x20]
push dword [esp + 0x68]
call fcn.10026d30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x60]
lea eax, [esp + 0x3c]
push eax
push ebx
call fcn.1001dee0
add esp, 8
push 4
push ebx
call fcn.100149c0
int3