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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x44229c
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x44254e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp dword [edx], 0x4550
je 0x4422c5
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x44254e
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax + 4]
cmp ecx, 0x14c
je 0x4422e6
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x44254e
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x38]
and eax, 1
je 0x442303
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x44254e
push 4
push 0x3000
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x442355
push 4
push 0x3000
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x442355
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x44254e
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x44238f
push 0x8000
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x44254e
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x16]
and edx, 0x2000
neg edx
sbb edx, edx
neg edx
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 0x18]
mov dword [ecx + 0x28], edx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0x30], edx
push 4
push 0x1000
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00423c70
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00441fc0
add esp, 0xc
test eax, eax
jne 0x442455
jmp 0x442540
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0xc]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 0x38], edx
je 0x44247b
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00441cf0
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x18], eax
jmp 0x442485
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00441ad0
add esp, 4
test eax, eax
jne 0x44249f
jmp 0x442540
mov edx, dword [ebp - 0x34]
push edx
call fcn.004420f0
add esp, 4
test eax, eax
jne 0x4424b9
jmp 0x442540
mov eax, dword [ebp - 0x34]
push eax
call fcn.00441de0
add esp, 4
test eax, eax
jne 0x4424cd
jmp 0x442540
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
cmp dword [edx + 0x28], 0
je 0x442531
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x14], 0
je 0x44251e
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x44], eax
push 0
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x442512
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x442540
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x10], 1
jmp 0x44252f
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x2c], edx
jmp 0x44253b
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x2c], 0
mov eax, dword [ebp - 0x34]
jmp 0x44254e
mov edx, dword [ebp - 0x34]
push edx
call fcn.00441820
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret