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

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, edx
mov edx, ecx
push esi
xor esi, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edx
cmp ebx, 0x40
jae 0x42ee7a
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x18
mov eax, 0x5a4d
cmp word [edx], ax
je 0x42ee99
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x18
mov ecx, dword [edx + 0x3c]
lea eax, [ecx + 0xf8]
cmp ebx, eax
jb 0x42ee68
cmp dword [ecx + edx], 0x4550
push ebp
lea ebp, [ecx + edx]
jne 0x42eec6
mov eax, 0x14c
cmp word [ebp + 4], ax
jne 0x42eec6
mov ebx, dword [ebp + 0x38]
test bl, 1
je 0x42eedc
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x18
movzx eax, word [ebp + 0x14]
push edi
movzx edi, word [ebp + 6]
test edi, edi
je 0x42ef0c
lea ecx, [ebp + 0x24]
add ecx, eax
nop
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
jne 0x42eefd
add eax, ebx
jmp 0x42eeff
add eax, edx
cmp eax, esi
cmova esi, eax
add ecx, 0x28
sub edi, 1
jne 0x42eef0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [esp + 0x1c]
lea edx, [ecx - 1]
lea edi, [ecx - 1]
not edx
add edi, dword [ebp + 0x50]
lea eax, [ecx - 1]
add eax, esi
and edi, edx
and eax, edx
cmp edi, eax
je 0x42ef4a
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x18
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push edi
push dword [ebp + 0x34]
call esi
mov ebx, eax
test ebx, ebx
jne 0x42ef74
push 4
push 0x3000
push edi
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x42ef98
push 0x40
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x42efac
push 0x8000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x18
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], ebx
movzx eax, word [ebp + 0x16]
shr eax, 0xd
and eax, 1
mov dword [edi + 0x1c], 0x42f160
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], 0x42f140
mov dword [edi + 0x24], 0x42f130
mov dword [edi + 0x28], 0x42f110
mov dword [edi + 0x2c], 0x42f100
mov dword [edi + 0x34], 0
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x3c], eax
mov edx, dword [ebp + 0x54]
call fcn.0042f520
test eax, eax
je 0x42f0a5
push 4
push 0x1000
push dword [ebp + 0x54]
push ebx
call esi
push dword [ebp + 0x54]
mov esi, eax
push dword [esp + 0x14]
push esi
call fcn.0042e540
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x3c]
add eax, esi
mov dword [edi], eax
push edi
mov dword [eax + 0x34], ebx
call fcn.0042f480
test eax, eax
jne 0x42f0a5
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
sub edx, dword [ebp + 0x34]
je 0x42f056
mov ecx, edi
call fcn.0042f2d0
mov dword [edi + 0x18], eax
jmp 0x42f05d
mov dword [edi + 0x18], 1
mov ecx, edi
call fcn.0042f180
test eax, eax
je 0x42f0a5
mov ecx, edi
call fcn.0042f3c0
test eax, eax
jne 0x42f0a5
mov ecx, edi
call fcn.0042f380
test eax, eax
je 0x42f0a5
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x42f0da
add eax, ebx
cmp dword [edi + 0x14], 0
je 0x42f0cb
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x42f0b8
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.0042ec00
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x18
mov dword [edi + 0x10], 1
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2c
ret 0x18
mov dword [edi + 0x38], eax
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2c
ret 0x18
mov dword [edi + 0x38], 0
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2c
ret 0x18