Function at 0x1ab70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
add edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x3c]
movzx ecx, word [esi + ebx + 6]
movzx eax, word [esi + ebx + 0x14]
add esi, ebx
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ecx
lea eax, [eax + esi + 0x18]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], 0
test ecx, ecx
je 0x1ae64
lea edi, [eax + 0x24]
mov dword [ebp - 0x20], edi
jmp 0x1abc0
cmp dword [ebp + 0x18], 0x256
jb 0x1ae64
mov eax, dword [edi]
mov ecx, eax
shr ecx, 0x1f
test cl, 1
jne 0x1ae4e
shr eax, 0x19
test al, 1
jne 0x1ae4e
mov eax, dword [edi - 0x18]
mov ecx, dword [edi - 0x1c]
mov edx, dword [esi + 0xdc]
cmp eax, dword [esi + 0xd8]
jne 0x1ac08
cmp edx, ecx
jae 0x1ae4e
add eax, edx
sub ecx, edx
mov edx, dword [ebp + 0x10]
add ecx, eax
add ecx, ebx
lea edi, [eax + ebx]
add edx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edi
cmp edi, ecx
jae 0x1ae4b
jmp 0x1ac30
cmp dword [ebp + 0x18], 0x256
jb 0x1ae4b
mov al, byte [edx]
cmp al, byte [edi]
jne 0x1ac4a
inc edx
inc edi
jmp 0x1ae3d
xor ebx, ebx
xor esi, esi
cmp edi, ecx
jae 0x1ac68
mov ecx, edx
mov eax, edi
sub ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx + eax]
jne 0x1ac96
inc esi
cmp esi, 5
jb 0x1ac98
sub ebx, 4
lea eax, [ebx - 1]
mov dword [ebp - 0x14], ebx
cmp eax, 0x30
ja 0x1ae1f
cmp ebx, 5
jb 0x1acb6
xor eax, eax
test ebx, ebx
je 0x1ae23
cmp byte [eax + edi], 0
jne 0x1aca1
inc eax
cmp eax, ebx
jb 0x1ac86
jmp 0x1ae1f
xor esi, esi
inc eax
inc ebx
cmp eax, dword [ebp - 0x18]
jb 0x1ac58
jmp 0x1ac68
mov ecx, dword [ebp - 4]
xor eax, eax
cmp byte [eax + ecx], 0
jne 0x1acb9
inc eax
cmp eax, ebx
jb 0x1aca6
jmp 0x1ae1f
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
call fcn.0001a240
test al, al
jne 0x1ae1f
mov edi, dword [ebp - 4]
sub edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x20]
add edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x24], edi
call fcn.0001a640
test al, al
jne 0x1ae1c
lea eax, [ebx + ebx + 0x254]
cmp dword [ebp + 0x18], eax
jb 0x1ae15
mov esi, dword [ebp + 0x14]
mov eax, edi
mov edi, dword [ebp - 4]
lea ecx, [ebx + 0x10]
lea edx, [ecx + edi]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp edx, dword [ebp - 0x10]
jbe 0x1ad19
mov ecx, dword [ebp - 0x10]
sub ecx, edi
test ecx, ecx
je 0x1ad32
lea edx, [ebp - 0x28]
push edx
push ecx
push edi
call fcn.00016aa0
cmp al, 1
jne 0x1ad32
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
xor ecx, ecx
mov word [esi + 8], cx
test eax, eax
je 0x1adcc
push eax
call fcn.00019540
test eax, eax
je 0x1adcc
lea edi, [esi + 8]
lea edx, [eax + 6]
sub eax, edi
mov dword [ebp + 0x14], 0
lea ecx, [edi + 2]
mov dword [ebp - 0x24], eax
movzx eax, word [edx - 6]
xor edi, edi
mov word [ecx - 2], ax
cmp di, ax
je 0x1adc0
mov eax, dword [ebp - 0x24]
movzx eax, word [ecx + eax]
mov word [ecx], ax
cmp di, ax
je 0x1adc0
movzx eax, word [edx - 2]
mov word [ecx + 2], ax
cmp di, ax
je 0x1adc0
movzx eax, word [edx]
mov word [ecx + 4], ax
cmp di, ax
je 0x1adc0
movzx eax, word [edx + 2]
mov word [ecx + 6], ax
cmp di, ax
je 0x1adc0
mov eax, dword [ebp + 0x14]
add eax, 5
add ecx, 0xa
add edx, 0xa
mov dword [ebp + 0x14], eax
cmp eax, 0x104
jb 0x1ad66
mov edi, dword [ebp - 4]
xor ecx, ecx
mov word [esi + 0x20e], cx
mov edx, dword [ebp - 8]
push ebx
push edx
lea eax, [esi + 0x254]
push eax
mov byte [esi + 0x210], 0
mov dword [esi + 0x250], ebx
call sub.ntoskrnl.exe_memcpy
push ebx
lea ecx, [ebx + esi + 0x254]
push edi
push ecx
call sub.ntoskrnl.exe_memcpy
lea eax, [ebx + ebx + 0x254]
sub dword [ebp + 0x18], eax
lea esi, [esi + ebx*2 + 0x254]
add esp, 0x18
inc dword [ebp - 0xc]
mov dword [ebp + 0x14], esi
jmp 0x1ae1c
mov dword [ebp + 0x18], 1
mov edi, dword [ebp - 8]
test ebx, ebx
jne 0x1ae2a
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
add edx, eax
add edi, eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edx
cmp edi, ecx
jb 0x1ac30
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
inc eax
add edi, 0x28
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
cmp eax, dword [ebp - 0x30]
jb 0x1abc0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c