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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10157347
xor eax, eax
jmp 0x101574e4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp dword [edx], reloc.MSVCRT.dll_strncpy
je 0x10157365
xor eax, eax
jmp 0x101574e4
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + 6]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10157306
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 0x14]
add ecx, 0x18
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
jmp 0x101573cb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x1c]
jae 0x1015741d
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x10]
push edx
call fcn.10157306
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx + 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 8]
push eax
call fcn.10157306
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx + 8], eax
jmp 0x101573c2
mov eax, dword [ebp - 0x1c]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0xc]
add eax, dword [edx + ecx + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x10157465
mov eax, dword [ebp - 0x1c]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx + eax + 0xc]
mov eax, dword [ebp - 0x1c]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov dword [ecx + eax + 0x10], edx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10157be6
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x1015748b
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jae 0x101574df
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0xc]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x34]
push eax
call fcn.10157be6
add esp, 0xc
jmp 0x10157482
mov eax, 1
mov esp, ebp
pop ebp
ret 8