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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push str.GetNativeSystemInfo
push str.Kernel32.dll
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, 0x5a4d
cmp word [esi], ax
je 0x100017f8
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10001a22
mov eax, dword [esi + 0x3c]
add eax, 0xf8
push eax
call fcn.10001308
test eax, eax
je 0x100017f1
push edi
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x1000187f
mov eax, 0x14c
cmp word [edi + 4], ax
jne 0x1000187f
test byte [edi + 0x38], 1
jne 0x1000187f
movzx edx, word [edi + 6]
movzx eax, word [edi + 0x14]
lea eax, [eax + edi + 0x18]
test edx, edx
jbe 0x1000185d
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
test esi, esi
jne 0x1000184d
add eax, dword [edi + 0x38]
jmp 0x1000184f
add eax, esi
cmp eax, ebx
jbe 0x10001855
mov ebx, eax
add ecx, 0x28
dec dword [ebp - 4]
jne 0x1000183f
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 8]
mov eax, dword [ebp - 0x28]
mov edx, dword [edi + 0x50]
lea ecx, [eax - 1]
lea esi, [edx + eax - 1]
not ecx
lea eax, [eax + ebx - 1]
and esi, ecx
and eax, ecx
cmp esi, eax
je 0x10001886
push 0xc1
jmp 0x100018da
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push esi
push dword [edi + 0x34]
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x100018b2
push 4
push 0x3000
push esi
push eax
call ebx
mov dword [ebp - 4], eax
test eax, eax
je 0x100018d8
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x100018e5
push 0x8000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10001a09
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
movzx eax, word [edi + 0x16]
and dword [esi + 0x28], 0
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], 0x10001790
mov dword [esi + 0x20], 0x1000179b
mov dword [esi + 0x24], 0x100017aa
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x30], eax
push dword [edi + 0x54]
call fcn.10001308
test eax, eax
je 0x10001a04
push 4
push 0x1000
push dword [edi + 0x54]
push dword [ebp - 4]
call ebx
mov ecx, dword [edi + 0x54]
test ecx, ecx
jbe 0x10001952
mov ebx, dword [ebp + 8]
mov edx, eax
sub ebx, eax
mov dword [ebp - 8], ecx
mov cl, byte [ebx + edx]
mov byte [edx], cl
inc edx
dec dword [ebp - 8]
jne 0x10001947
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
push esi
add eax, edx
mov edx, dword [ebp - 4]
push edi
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edx
call fcn.10001324
test eax, eax
je 0x10001a04
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x10001989
push eax
mov eax, esi
call fcn.100015cd
mov dword [esi + 0x18], eax
jmp 0x10001990
mov dword [esi + 0x18], 1
call fcn.10001655
test eax, eax
je 0x10001a04
push esi
call fcn.100014c5
test eax, eax
je 0x10001a04
mov eax, dword [esi]
mov ebx, dword [esi + 4]
add eax, 0xc0
mov eax, dword [eax]
test eax, eax
je 0x100019cd
mov edi, dword [eax + ebx + 0xc]
test edi, edi
je 0x100019cd
jmp 0x100019c7
push 0
push 1
push ebx
call eax
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x100019bd
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10001a1b
mov ecx, dword [ebp - 4]
add eax, ecx
cmp dword [esi + 0x14], 0
je 0x10001a16
push dword [0x10089160]
push dword [0x1008915c]
push dword [0x10089158]
call eax
test eax, eax
jne 0x10001a0d
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10001ae5
xor eax, eax
jmp 0x10001a21
mov dword [esi + 0x10], 1
jmp 0x10001a1f
mov dword [esi + 0x2c], eax
jmp 0x10001a1f
and dword [esi + 0x2c], 0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4