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

Disassembly:
sub esp, 0x28
push ebx
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 ecx, dword [esp + 0x30]
cmp word [ecx], 0x5a4d
mov dword [esp + 4], eax
je 0x10001a50
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
add esp, 0x28
ret 4
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp eax, 0x22600
jbe 0x10001a73
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
add edi, ecx
cmp dword [edi], 0x4550
jne 0x10001a8b
cmp word [edi + 4], 0x14c
jne 0x10001a8b
test byte [edi + 0x38], 1
je 0x10001aa0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
movzx ecx, word [edi + 0x14]
lea edx, [ecx + edi + 0x18]
movzx ecx, word [edi + 6]
test ecx, ecx
push ebp
push esi
jbe 0x10001ad5
add edx, 0xc
mov ebp, ecx
mov esi, dword [edx + 4]
test esi, esi
mov ecx, dword [edx]
jne 0x10001ac5
add ecx, dword [edi + 0x38]
jmp 0x10001ac7
add ecx, esi
cmp ecx, ebx
jbe 0x10001acd
mov ebx, ecx
add edx, 0x28
sub ebp, 1
jne 0x10001ab7
lea edx, [esp + 0x14]
push edx
call dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x50]
lea eax, [ecx - 1]
lea esi, [edx + ecx - 1]
not eax
lea ecx, [ecx + ebx - 1]
and esi, eax
and ecx, eax
cmp esi, ecx
je 0x10001b11
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push esi
push edx
call ebx
mov ebp, eax
test ebp, ebp
jne 0x10001b3c
push 4
push 0x3000
push esi
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x10001b60
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 0x10001b74
push 0x8000
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
mov dword [esi + 4], ebp
movzx eax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], 0x100019d0
mov dword [esi + 0x20], 0x100019e0
mov dword [esi + 0x24], 0x10001a00
mov dword [esi + 0x28], 0
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0x54]
push edx
call fcn.10001440
test eax, eax
je 0x10001c60
mov eax, dword [edi + 0x54]
push 4
push 0x1000
push eax
push ebp
call ebx
mov edx, dword [edi + 0x54]
mov ecx, dword [esp + 0x3c]
mov ebx, eax
call fcn.100013a0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x3c]
push esi
add ebx, ecx
push edi
mov dword [esi], ebx
push eax
mov dword [ebx + 0x34], ebp
call fcn.10001460
test eax, eax
je 0x10001c60
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
sub eax, dword [edi + 0x34]
je 0x10001c05
push eax
mov eax, esi
call fcn.100017c0
mov dword [esi + 0x18], eax
jmp 0x10001c0c
mov dword [esi + 0x18], 1
call fcn.10001850
test eax, eax
je 0x10001c60
push esi
call fcn.10001620
test eax, eax
je 0x10001c60
mov eax, esi
call fcn.10001780
test eax, eax
je 0x10001c60
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10001c95
cmp dword [esi + 0x14], 0
je 0x10001c84
mov ecx, dword [0x10085220]
mov edx, dword [0x1008521c]
push ecx
add ebp, eax
mov eax, dword [0x10085218]
push edx
push eax
call ebp
test eax, eax
jne 0x10001c71
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10001da0
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x28
ret 4
add eax, ebp
mov dword [esi + 0x2c], eax
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x28
ret 4
mov dword [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x28
ret 4