Function at 0x404070
Capabilities:
Create process on windows
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cee40
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5053a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00408990
mov ecx, eax
test ecx, ecx
jne 0x4040b2
push 0x80004005
call fcn.00408740
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
call fcn.00408990
mov ecx, eax
test ecx, ecx
jne 0x4040d9
push 0x80004005
call fcn.00408740
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x4f5aec
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push dword [edi + 0x498]
push 0x4f5b08
push eax
call fcn.00407520
mov ecx, dword [edi + 0x490]
add esp, 0x10
mov ebx, 1
test ecx, ecx
je 0x404151
call fcn.00420c8e
test al, al
je 0x404151
mov esi, dword [ebp - 0x18]
mov ecx, ebx
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x404138
push 0
lea ecx, [ebp - 0x18]
call fcn.00408460
mov esi, dword [ebp - 0x18]
push 0
push 0
push str.relatefile
push esi
push 0x4f5ad0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x404154
mov esi, dword [ebp - 0x18]
push 0x4f5b2c
push dword [edi + 0x498]
lea eax, [ebp - 0x14]
push 0x4f5b08
push eax
call fcn.00407520
mov eax, dword [ebp - 0x14]
mov edx, ebx
add esp, 0x10
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x40418c
push 0
lea ecx, [ebp - 0x14]
call fcn.00408460
mov eax, dword [ebp - 0x14]
push 1
push 0
push ecx
push str._install
push eax
call fcn.00403ef0
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4041bf
lea ecx, [ebp - 0x3c]
push ecx
call eax
jmp 0x4041c9
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x3c]
cmp ax, 9
je 0x4041e0
cmp ax, 6
je 0x4041e0
push 0x4f5b5c
jmp 0x4041e5
push 0x4f5b90
push dword [edi + 0x498]
lea eax, [ebp - 0x14]
push str.regdll_s_s
push eax
call fcn.00407520
mov edi, dword [ebp - 0x14]
mov ecx, ebx
add esp, 0x10
sub ecx, dword [edi - 4]
mov eax, dword [edi - 8]
or eax, ecx
jge 0x404218
push 0
lea ecx, [ebp - 0x14]
call fcn.00408460
mov edi, dword [ebp - 0x14]
sub ebx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ebx
jge 0x40422f
push 0
lea ecx, [ebp - 0x18]
call fcn.00408460
mov esi, dword [ebp - 0x18]
push 0
push 1
push ecx
push edi
push esi
call fcn.00403ef0
call fcn.00406140
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40425e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40427a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4bf6
mov esp, ebp
pop ebp
ret