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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5970f0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6073a4]
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.00427660
mov ecx, eax
test ecx, ecx
jne 0x4229c2
push 0x80004005
call fcn.00427410
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
call fcn.00427660
mov ecx, eax
test ecx, ecx
jne 0x4229e9
push 0x80004005
call fcn.00427410
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x5f858c
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push dword [edi + 0x498]
push str._s_s
push eax
call fcn.00425da0
mov ecx, dword [edi + 0x490]
add esp, 0x10
mov ebx, 1
test ecx, ecx
je 0x422a61
call fcn.0043eea1
test al, al
je 0x422a61
mov esi, dword [ebp - 0x18]
mov ecx, ebx
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x422a48
push 0
lea ecx, [ebp - 0x18]
call fcn.00427130
mov esi, dword [ebp - 0x18]
push 0
push 0
push str.relatefile
push esi
push 0x5f8570
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x422a64
mov esi, dword [ebp - 0x18]
mov ecx, dword [edi + 0x494]
test ecx, ecx
je 0x422a77
call fcn.0043eea1
test al, al
je 0x422abf
push 0x5f85d4
push dword [edi + 0x498]
lea eax, [ebp - 0x14]
push str._s_s
push eax
call fcn.00425da0
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 0x422aaf
push 0
lea ecx, [ebp - 0x14]
call fcn.00427130
mov eax, dword [ebp - 0x14]
push 1
push 0
push ecx
push str._install
push eax
call fcn.00422800
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 0x422ae2
lea ecx, [ebp - 0x3c]
push ecx
call eax
jmp 0x422aec
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x3c]
cmp ax, 9
je 0x422b03
cmp ax, 6
je 0x422b03
push 0x5f860c
jmp 0x422b08
push 0x5f8648
push dword [edi + 0x498]
lea eax, [ebp - 0x14]
push str.regdll_s_s
push eax
call fcn.00425da0
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 0x422b3b
push 0
lea ecx, [ebp - 0x14]
call fcn.00427130
mov edi, dword [ebp - 0x14]
sub ebx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ebx
jge 0x422b52
push 0
lea ecx, [ebp - 0x18]
call fcn.00427130
mov esi, dword [ebp - 0x18]
push 0
push 1
push ecx
push edi
push esi
call fcn.00422800
call fcn.00424a90
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 0x422b81
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 0x422b9d
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.004c8d78
mov esp, ebp
pop ebp
ret