Function at 0x1007e820
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x1012806c]
xor eax, esp
mov dword [esp + 0xd4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [edx + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
mov eax, dword [eax + 0xe0]
mov dword [esp + 0xc], eax
mov edi, dword [eax]
mov dword [eax + 0xc], edx
movzx esi, word [ecx + 6]
shl esi, 4
add esi, edi
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
jne 0x1007e88d
movzx esi, cx
shl esi, 4
add esi, edi
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x1007e875
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x20000000
jne 0x1007e8b8
nop dword [eax + eax]
movzx esi, cx
shl esi, 4
add esi, edi
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x1007e8a0
and ecx, 0xf0000000
cmp ecx, 0x60000000
jne 0x1007ea85
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x14]
push edx
call fcn.1007e330
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x1c]
add esp, 0x10
sub esi, dword [eax]
mov dword [eax + 0x94], 0xffffffff
call fcn.100065e6
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x94], 0xffffffff
je 0x1007e941
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
push dword [eax + 0x18]
mov dword [esp + 0x1c], 0xfffffffc
push dword [esp + 0x10]
call fcn.10047d40
add esp, 0xc
mov dword [eax + 4], 0xfffffffd
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
add esi, eax
mov dword [esp + 0x10], eax
mov edx, dword [esi]
jmp 0x1007e954
mov eax, dword [esp + 0x10]
movzx ecx, dx
shl ecx, 4
add ecx, eax
mov edx, dword [ecx]
mov eax, edx
shr eax, 0x1c
cmp eax, 8
je 0x1007e950
cmp eax, 4
jne 0x1007e97c
mov dword [esp + 0x10], 0
xor eax, eax
jmp 0x1007ea23
mov dword [esp + 0x10], 1
cmp eax, 1
jne 0x1007e9b5
cmp byte [esp + 0x29], 0
jne 0x1007e9ae
push dword [ecx + 4]
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
mov eax, dword [eax - 8]
add eax, 8
push eax
call fcn.1008ab30
add esp, 0xc
mov eax, 1
jmp 0x1007ea23
mov eax, edx
and eax, 0xf4000000
cmp eax, 0x34000000
jne 0x1007e9e9
cmp byte [esp + 0x29], 0
jne 0x1007e9e2
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [eax + 0x14]
mov eax, dword [eax - 8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 1
jmp 0x1007ea23
cmp eax, 0x4000000
je 0x1007e9fe
and edx, 0xf8000000
cmp edx, 0x38000000
jne 0x1007ea04
lea eax, [esp + 0x30]
jmp 0x1007ea08
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
sub eax, 8
push eax
push 0
push ecx
push dword [esp + 0x1c]
call fcn.10078d50
add esp, 0x14
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 8]
add edi, eax
cmp dword [esp + 0x24], 0
je 0x1007ea4e
mov eax, dword [esi]
test eax, 0x30000
jne 0x1007ea4e
or eax, 0x30000
mov dword [esi], eax
mov eax, dword [edx + 8]
and dword [eax + 0x214], 0xffffffef
test edi, edi
jle 0x1007ea6d
mov ecx, dword [edx + 8]
dec edi
mov eax, dword [ecx + 0x14]
cmp eax, dword [ecx + 0x18]
jb 0x1007ea69
mov ecx, edx
call fcn.10043a60
mov edx, dword [esp + 8]
test edi, edi
jg 0x1007ea52
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.1003d0bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xdc]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.1003d0bc
mov esp, ebp
pop ebp
ret