Function at 0x10001d90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1000cda0]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
push ebx
lea ebx, [eax + ecx]
movzx ecx, word [ebx + 0x14]
movzx eax, word [ebx + 6]
push esi
push edi
mov edi, 0xb
xor esi, esi
mov dword [edx], 0
mov dword [ebp - 4], edi
lea ecx, [ecx + ebx + 0x18]
mov dword [ebp - 0xc], esi
mov edx, 0x6174
jmp 0x10001dd0
cmp dword [ecx], 0x6164722e
jne 0x10001de2
cmp dword [ecx + 4], edx
jne 0x10001de2
mov dword [ebp - 0xc], ecx
mov esi, ecx
add ecx, 0x28
dec eax
je 0x10001dee
test esi, esi
je 0x10001dd0
jmp 0x10001df6
test esi, esi
je 0x10001f87
mov eax, dword [0x1000cda0]
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + eax + 0x14]
add ecx, eax
movzx eax, word [ecx + 6]
lea ecx, [edx + ecx + 0x18]
xor edx, edx
lea edi, [edx + 0x74]
cmp dword [ecx], 0x7865742e
jne 0x10001e21
cmp dword [ecx + 4], edi
jne 0x10001e21
mov edx, ecx
add ecx, 0x28
dec eax
je 0x10001e2d
test edx, edx
je 0x10001e12
jmp 0x10001e35
test edx, edx
je 0x10001f7d
mov eax, dword [edx + 0xc]
mov edi, dword [0x1000cda0]
add eax, edi
mov dword [ebp - 8], eax
mov eax, dword [edx + 8]
mov edx, dword [edx + 0x10]
mov dword [ebp - 0x20], eax
cmp eax, edx
ja 0x10001e53
mov dword [ebp - 0x20], edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
ja 0x10001e63
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebx + 0xa0]
test esi, esi
je 0x10001f7d
mov eax, dword [ebx + 0xa4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10001f7d
add esi, edi
mov dword [ebp - 0x18], esi
jmp 0x10001e93
mov eax, dword [ebp - 0x14]
cmp eax, 8
jbe 0x10001f7d
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x1000cda0]
mov edx, dword [edx + 0xc]
sub ebx, 8
add eax, ecx
shr ebx, 1
mov dword [ebp - 0x28], eax
cmp ecx, edx
jb 0x10001f68
add edx, dword [ebp - 0x1c]
cmp ecx, edx
jae 0x10001f68
mov dword [ebp - 0x24], 0
test ebx, ebx
je 0x10001f68
lea ecx, [esi + 8]
mov dword [ebp - 0x10], ecx
mov edi, edi
mov edx, dword [ebp - 0x10]
movzx ecx, word [edx]
mov eax, ecx
and eax, 0xf000
cmp eax, 0x3000
jne 0x10001f48
and ecx, 0xfff
add ecx, dword [ebp - 0x28]
cmp dword [ecx - 4], 4
lea edi, [ecx - 4]
jne 0x10001f48
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp edx, eax
je 0x10001f48
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x2c], ecx
cmp edx, ecx
je 0x10001f48
mov ecx, dword [edi + 0x10]
cmp ecx, dword [edi + 0x18]
jne 0x10001f48
cmp edx, dword [ebp - 8]
jb 0x10001f48
mov esi, dword [ebp - 8]
add esi, dword [ebp - 0x20]
cmp edx, esi
jae 0x10001f45
cmp eax, dword [ebp - 8]
jb 0x10001f45
cmp eax, esi
jae 0x10001f45
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 8]
jb 0x10001f45
cmp eax, esi
jb 0x10001f59
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], 2
inc eax
mov dword [ebp - 0x24], eax
cmp eax, ebx
jb 0x10001ee0
jmp 0x10001f68
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
mov dword [edx], edi
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
sub dword [ebp - 0x14], ecx
add esi, ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0x18], esi
jne 0x10001e90
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret