Function at 0x10011c00
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x24
cmp word [eax], 0x5a4d
je 0x10011c1f
push 0xc1
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
add esp, 0x24
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x10011c3b
cmp word [edi + 4], 0x14c
jne 0x10011c3b
test byte [edi + 0x38], 1
je 0x10011c4d
push 0xc1
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop edi
add esp, 0x24
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 4
push 0x3000
push eax
push ecx
call esi
mov ebp, eax
test ebp, ebp
jne 0x10011c80
mov edx, dword [edi + 0x50]
push 4
push 0x3000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
je 0x10011ca4
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 0x10011cb5
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
xor eax, eax
pop edi
add esp, 0x24
ret
mov dword [esi + 4], ebp
movzx eax, word [edi + 0x16]
shr eax, 0xd
push ebx
and eax, 1
push str.kernel32.dll
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], 0x10011bc0
mov dword [esi + 0x20], 0x10011bd0
mov dword [esi + 0x24], 0x10011bf0
mov dword [esi + 0x28], 0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x10011d27
push str.GetNativeSystemInfo
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x10011d13
lea ecx, [esp + 0x10]
push ecx
call eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x10011d32
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x10011d32
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [esp + 0x14]
push 4
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0x54]
push 0x1000
push edx
push ebp
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ecx, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [edi + 0x54]
push eax
push ecx
push ebx
call fcn.10022e90
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x3c]
push esi
add ebx, edx
push edi
mov dword [esi], ebx
push eax
mov dword [ebx + 0x34], ebp
call fcn.10011580
add esp, 0x18
test eax, eax
pop ebx
je 0x10011de0
mov eax, ebp
sub eax, dword [edi + 0x34]
je 0x10011d91
push eax
mov eax, esi
call fcn.10011890
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x10011d98
mov dword [esi + 0x18], 1
call fcn.10011920
test eax, eax
je 0x10011de0
push esi
call fcn.100116f0
add esp, 4
test eax, eax
je 0x10011de0
mov eax, esi
call fcn.10011850
test eax, eax
je 0x10011de0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10011e0a
add eax, ebp
cmp dword [esi + 0x14], 0
je 0x10011dfe
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x10011dee
push 0x45a
call dword [sym.imp.KERNEL32.DLL_SetLastError]
call fcn.10011f10
pop esi
pop ebp
xor eax, eax
pop edi
add esp, 0x24
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebp
pop edi
add esp, 0x24
ret
mov dword [esi + 0x2c], eax
mov eax, esi
pop esi
pop ebp
pop edi
add esp, 0x24
ret
mov dword [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebp
pop edi
add esp, 0x24
ret