Function at 0x429bc0
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 0x429bea
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 0x429c09
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 0x429bd8
cmp dword [ecx + edx], 0x4550
push ebp
lea ebp, [ecx + edx]
jne 0x429c36
mov eax, 0x14c
cmp word [ebp + 4], ax
jne 0x429c36
mov ebx, dword [ebp + 0x38]
test bl, 1
je 0x429c4c
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 0x429c7c
lea ecx, [ebp + 0x24]
add ecx, eax
nop
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
jne 0x429c6d
add eax, ebx
jmp 0x429c6f
add eax, edx
cmp eax, esi
cmova esi, eax
add ecx, 0x28
sub edi, 1
jne 0x429c60
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 0x429cba
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 0x429ce4
push 4
push 0x3000
push edi
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x429d08
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 0x429d1c
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], 0x429ed0
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], 0x429eb0
mov dword [edi + 0x24], 0x429ea0
mov dword [edi + 0x28], 0x429e80
mov dword [edi + 0x2c], 0x429e70
mov dword [edi + 0x34], 0
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x3c], eax
mov edx, dword [ebp + 0x54]
call fcn.0042a290
test eax, eax
je 0x429e15
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.004292b0
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.0042a1f0
test eax, eax
jne 0x429e15
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
sub edx, dword [ebp + 0x34]
je 0x429dc6
mov ecx, edi
call fcn.0042a040
mov dword [edi + 0x18], eax
jmp 0x429dcd
mov dword [edi + 0x18], 1
mov ecx, edi
call fcn.00429ef0
test eax, eax
je 0x429e15
mov ecx, edi
call fcn.0042a130
test eax, eax
jne 0x429e15
mov ecx, edi
call fcn.0042a0f0
test eax, eax
je 0x429e15
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x429e4a
add eax, ebx
cmp dword [edi + 0x14], 0
je 0x429e3b
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x429e28
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.00429970
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