Function at 0x1000a5ad
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.1000a805
pop ecx
test eax, eax
pop ecx
je 0x1000a7d9
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x1000a7d9
mov eax, dword [edi + 0x3c]
add eax, 0xf8
push eax
push dword [ebp + 0xc]
call fcn.1000a805
pop ecx
test eax, eax
pop ecx
je 0x1000a7d9
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
jne 0x1000a7d9
cmp word [edi + 4], 0x14c
jne 0x1000a7d9
mov edx, dword [edi + 0x38]
test dl, 1
jne 0x1000a7d9
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 6]
test ecx, ecx
lea eax, [eax + edi + 0x18]
jbe 0x1000a648
add eax, 0xc
mov esi, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x1000a63a
mov ecx, edx
add ecx, dword [eax]
cmp ecx, ebx
jbe 0x1000a642
mov ebx, ecx
add eax, 0x28
dec esi
jne 0x1000a631
lea eax, [ebp - 0x28]
push eax
call fcn.10009bb4
push dword [ebp - 0x24]
mov eax, dword [edi + 0x50]
push eax
call fcn.1000a7f3
push dword [ebp - 0x24]
mov dword [ebp - 4], eax
push ebx
call fcn.1000a7f3
add esp, 0x14
cmp dword [ebp - 4], eax
jne 0x1000a7d9
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 0x1000a6ac
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 0x1000a7d9
push 0x40
push 8
call fcn.10009c26
push eax
call fcn.10009c9d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000a6d9
push dword [ebp + 0x24]
push 0x8000
push eax
push ebx
call dword [ebp + 0x14]
add esp, 0x10
jmp 0x1000a7d9
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.1000a805
pop ecx
test eax, eax
pop ecx
je 0x1000a7d2
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.10022f10
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.1000a811
add esp, 0x30
test eax, eax
je 0x1000a7d2
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x1000a785
push eax
push esi
call fcn.1000ab1e
pop ecx
mov dword [esi + 0x18], eax
pop ecx
push 1
pop edi
jmp 0x1000a78b
push 1
pop edi
mov dword [esi + 0x18], edi
push esi
call fcn.1000abc2
test eax, eax
pop ecx
je 0x1000a7d2
push esi
call fcn.1000a8ec
test eax, eax
pop ecx
je 0x1000a7d2
push esi
call fcn.1000aae3
test eax, eax
pop ecx
je 0x1000a7d2
mov eax, dword [esi]
xor ecx, ecx
mov eax, dword [eax + 0x28]
cmp eax, ecx
je 0x1000a7e9
cmp dword [esi + 0x14], ecx
je 0x1000a7e2
push ecx
push edi
add eax, ebx
push ebx
call eax
test eax, eax
jne 0x1000a7dd
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.1000ae1e
pop ecx
xor eax, eax
jmp 0x1000a7ee
mov dword [esi + 0x10], edi
jmp 0x1000a7ec
add eax, ebx
mov dword [esi + 0x38], eax
jmp 0x1000a7ec
mov dword [esi + 0x38], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret