Function at 0x10007e3b
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x40
push dword [ebp + 0xc]
xor ebx, ebx
call fcn.1000809d
pop ecx
test eax, eax
pop ecx
je 0x10008061
mov esi, dword [ebp + 8]
cmp word [esi], 0x5a4d
jne 0x10008061
mov eax, dword [esi + 0x3c]
add eax, 0xf8
push eax
push dword [ebp + 0xc]
call fcn.1000809d
pop ecx
test eax, eax
pop ecx
je 0x10008061
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x10008061
cmp word [edi + 4], 0x14c
jne 0x10008061
mov edx, dword [edi + 0x38]
test dl, 1
jne 0x10008061
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 6]
test ecx, ecx
lea eax, [eax + edi + 0x18]
jbe 0x10007edc
add eax, 0xc
mov esi, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10007ece
mov ecx, dword [eax]
add ecx, edx
jmp 0x10007ed0
add ecx, dword [eax]
cmp ecx, ebx
jbe 0x10007ed6
mov ebx, ecx
add eax, 0x28
dec esi
jne 0x10007ec1
lea eax, [ebp - 0x28]
push eax
call fcn.1001b201
push dword [ebp - 0x24]
push dword [edi + 0x50]
call fcn.1000807b
push dword [ebp - 0x24]
mov dword [ebp - 4], eax
push ebx
call fcn.1000807b
add esp, 0x14
cmp dword [ebp - 4], eax
jne 0x10008061
push dword [ebp + 0x24]
mov esi, 0x3000
push 4
push esi
push dword [ebp - 4]
push dword [edi + 0x34]
call dword [ebp + 0x10]
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10007f3f
push dword [ebp + 0x24]
push 4
push esi
push dword [ebp - 4]
push eax
call dword [ebp + 0x10]
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x10008061
push 0x40
push 8
call fcn.1001b23e
push eax
call fcn.1001b283
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10007f6c
push dword [ebp + 0x24]
push 0x8000
push eax
push ebx
call dword [ebp + 0x14]
add esp, 0x10
jmp 0x10008061
mov dword [esi + 4], ebx
mov ax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x3c], eax
push dword [edi + 0x54]
push dword [ebp + 0xc]
call fcn.1000809d
pop ecx
test eax, eax
pop ecx
je 0x1000805a
push dword [ebp + 0x24]
push 4
push 0x1000
push dword [edi + 0x54]
push ebx
call dword [ebp + 0x10]
push dword [edi + 0x54]
mov dword [ebp + 0x24], eax
push dword [ebp + 8]
push eax
call fcn.1005db50
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
push esi
push edi
mov eax, dword [ecx + 0x3c]
push dword [ebp + 0xc]
add eax, edx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.100080a9
add esp, 0x30
test eax, eax
je 0x1000805a
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x10008018
push eax
push esi
call fcn.100083b6
pop ecx
mov dword [esi + 0x18], eax
pop ecx
push 1
pop edi
jmp 0x1000801e
push 1
pop edi
mov dword [esi + 0x18], edi
push esi
call fcn.1000845a
test eax, eax
pop ecx
je 0x1000805a
push esi
call fcn.10008184
test eax, eax
pop ecx
je 0x1000805a
push esi
call fcn.1000837b
test eax, eax
pop ecx
je 0x1000805a
mov eax, dword [esi]
xor ecx, ecx
mov eax, dword [eax + 0x28]
cmp eax, ecx
je 0x10008071
cmp dword [esi + 0x14], ecx
je 0x1000806a
push ecx
push edi
add eax, ebx
push ebx
call eax
test eax, eax
jne 0x10008065
push esi
call fcn.10008696
pop ecx
xor eax, eax
jmp 0x10008076
mov dword [esi + 0x10], edi
jmp 0x10008074
add eax, ebx
mov dword [esi + 0x38], eax
jmp 0x10008074
mov dword [esi + 0x38], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret