Function at 0x1002ac58
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x100d1d14
call fcn.100cece0
sub esp, 0x64
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi]
cmp eax, 0x454c4946
mov dword [edi], eax
je 0x1002ac93
cmp eax, 2
jbe 0x1002ac8b
cmp eax, 0x44414142
je 0x1002ac8b
xor eax, eax
jmp 0x1002ae7e
push 1
pop eax
jmp 0x1002ae7e
movzx eax, word [esi + 4]
movzx ecx, word [esi + 6]
test al, 1
mov dword [ebp - 0x10], ecx
jne 0x1002ae7c
push 1
lea edx, [eax + ecx*2]
mov ecx, dword [ebp + 0xc]
pop ebx
shl ebx, cl
dec ebx
dec ebx
cmp edx, ebx
ja 0x1002ae7c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1002ae7c
mov edx, dword [ebp + 0x10]
dec ecx
cmp ecx, edx
jne 0x1002ae7c
cmp eax, 0x30
jb 0x1002ace7
mov ecx, dword [esi + 0x2c]
cmp ecx, dword [ebp + 0x14]
je 0x1002ace7
test ecx, ecx
jne 0x1002ae7c
mov bx, word [eax + esi]
add eax, esi
cmp dword [ebp - 0x10], 1
mov dword [ebp + 8], 1
jbe 0x1002ad2f
add eax, 2
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shl eax, cl
cmp word [eax + esi - 2], bx
lea eax, [eax + esi - 2]
jne 0x1002ae7c
mov ecx, dword [ebp + 0x10]
inc dword [ebp + 8]
add dword [ebp + 0x10], 2
mov cx, word [ecx]
mov word [eax], cx
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1002ad00
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov cx, word [esi + 0x16]
movzx eax, word [esi + 0x14]
mov word [edi + 6], cx
mov ecx, dword [esi + 0x1c]
mov ebx, dword [esi + 0x18]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp + 8], ebx
mov dword [edi + 8], ecx
mov ecx, dword [esi + 0x24]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
shl edx, cl
cmp eax, edx
jae 0x1002ae7c
test al, 7
jne 0x1002ae7c
test bl, 7
jne 0x1002ae7c
cmp ebx, edx
ja 0x1002ae7c
cmp dword [ebp + 0x10], edx
jne 0x1002ae7c
cmp eax, ebx
mov dword [ebp + 0xc], eax
jae 0x1002ae7c
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub eax, ecx
add ecx, esi
push eax
push ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], ebx
mov dword [ebp + 0x10], eax
call fcn.1001f87a
cmp eax, ebx
je 0x1002aec5
cmp dword [ebp + 0x10], eax
jb 0x1002aec5
add dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x70]
cmp eax, 0xffffffff
je 0x1002ae8f
sub eax, 0x10
je 0x1002ae52
sub eax, 0x20
je 0x1002ae1a
sub eax, 0x50
je 0x1002ae11
sub eax, 0x40
je 0x1002ae03
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x1002ae64
lea eax, [ebp - 0x70]
push eax
call fcn.1002d22e
jmp 0x1002ae64
lea eax, [ebp - 0x60]
lea ecx, [edi + 0x60]
push eax
call fcn.1002d18a
jmp 0x1002ae64
lea eax, [ebp - 0x70]
lea ecx, [edi + 0x18]
push eax
jmp 0x1002adfc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push dword [ebp - 0x60]
call fcn.1002996d
test al, al
je 0x1002aea9
lea eax, [ebp - 0x28]
lea ecx, [edi + 0x24]
push eax
call fcn.1002d366
cmp dword [ebp - 0x20], ebx
je 0x1002ae64
push dword [ebp - 0x20]
call fcn.100034b3
pop ecx
jmp 0x1002ae64
push dword [ebp - 0x5c]
lea ecx, [edi + 0x40]
push dword [ebp - 0x60]
call fcn.10029a17
test al, al
je 0x1002aec5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1002aec9
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
jb 0x1002ad95
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x1002aec5
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1002aec9
mov al, bl
jmp 0x1002ae7e
cmp dword [ebp - 0x20], ebx
je 0x1002aeb7
push dword [ebp - 0x20]
call fcn.100034b3
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1002aec9
jmp 0x1002ae7c
xor bl, bl
jmp 0x1002ae99