Function at 0x4042f0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f56a
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x3c], esi
mov eax, dword [ebp + 8]
push eax
lea ebx, [esp + 0x44]
call fcn.00410f00
xor edi, edi
mov dword [esp + 0x90], edi
mov ecx, ebx
call fcn.00411060
mov byte [esi + 5], 0
lea esi, [esp + 0x14]
call fcn.004104e0
mov byte [esp + 0x90], 1
lea esi, [esp + 0x34]
call fcn.00410730
mov byte [esp + 0x90], 2
mov eax, dword [eax]
cmp eax, edi
jne 0x404373
or esi, 0xffffffff
jmp 0x40439c
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], edi
jge 0x404381
or esi, 0xffffffff
jmp 0x40439c
push eax
push ecx
call fcn.0044298b
add esp, 8
cmp eax, edi
jne 0x404394
or esi, 0xffffffff
jmp 0x40439c
sub eax, dword [esp + 0x14]
sar eax, 1
mov esi, eax
mov byte [esp + 0x90], 1
lea ecx, [esp + 0x34]
call fcn.00406ed0
cmp esi, 0xffffffff
je 0x40443a
dec esi
push esi
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405ff0
mov byte [esp + 0x90], 3
push eax
lea ecx, [esp + 0x18]
call fcn.00406800
mov byte [esp + 0x90], 1
lea ecx, [esp + 0x34]
call fcn.00406ed0
mov edx, dword [esp + 0x14]
push 0x5c
push edx
call fcn.00442f55
add esp, 8
cmp eax, edi
je 0x40443a
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x40443a
inc eax
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405ff0
mov byte [esp + 0x90], 4
push eax
lea ecx, [esp + 0x18]
call fcn.00406800
mov byte [esp + 0x90], 1
lea ecx, [esp + 0x34]
call fcn.00406ed0
lea ecx, [esp + 0x18]
push ecx
call fcn.00410440
add esp, 4
mov byte [esp + 0x90], 5
lea esi, [esp + 0x18]
call fcn.00410aa0
lea edx, [esp + 0x34]
push edx
call fcn.004108a0
add esp, 4
mov byte [esp + 0x90], 6
push eax
mov eax, esi
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004060a0
add esp, 0xc
mov byte [esp + 0x90], 8
lea ecx, [esp + 0x34]
call fcn.00406ed0
lea edx, [esp + 0x28]
push edx
call fcn.00416a90
add esp, 4
mov byte [esp + 0x90], 9
push eax
lea eax, [esp + 0x30]
push str._lang:__
push eax
call fcn.00406220
add esp, 0xc
mov byte [esp + 0x90], 0xa
push 0x4692b0
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x90], 0xb
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004060a0
add esp, 0xc
mov byte [esp + 0x90], 0xc
push 0x4692ac
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x90], 0xe
lea ecx, [esp + 0x34]
call fcn.00406ed0
mov byte [esp + 0x90], 0xf
lea ecx, [esp + 0x30]
call fcn.00406ed0
mov byte [esp + 0x90], 0x10
lea ecx, [esp + 0x2c]
call fcn.00406ed0
mov bl, 0x11
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x28]
call fcn.00406ed0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push str.starting
push eax
call fcn.00406220
add esp, 0xc
mov byte [esp + 0x90], 0x12
push eax
lea ecx, [esp + 0x44]
call fcn.00411500
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x34]
call fcn.00406ed0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x38]
push 0x4692fc
push edx
call fcn.00406220
add esp, 0xc
mov byte [esp + 0x90], 0x13
push eax
lea ecx, [esp + 0x44]
call fcn.00411500
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x34]
call fcn.00406ed0
mov eax, esi
push eax
lea ecx, [esp + 0x38]
push str.workingdir:
push ecx
call fcn.00406220
add esp, 0xc
mov byte [esp + 0x90], 0x14
push eax
lea ecx, [esp + 0x44]
call fcn.00411500
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x34]
call fcn.00406ed0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
seta al
mov dword [esp + 0x48], 0x3c
mov dword [esp + 0x4c], 0x40
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
test al, al
je 0x404625
mov dword [esp + 0x54], str.runas
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], edx
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], 5
mov dword [esp + 0x6c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x404827
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00406fc0
mov byte [esp + 0x90], 0x15
lea ecx, [esp + 0x28]
call fcn.00406fc0
mov byte [esp + 0x90], 0x16
lea ecx, [esp + 0x24]
call fcn.00406fc0
mov byte [esp + 0x90], 0x17
push esi
lea eax, [esp + 0x28]
push 0x4698c8
push eax
call fcn.004066b0
add esp, 0xc
push esi
lea ecx, [esp + 0x30]
push str.NetClientAMSetup_failed_to_start._windows_reports_error_:__d
push ecx
call fcn.004066b0
add esp, 0xc
push str.NetClientAMSetup
lea ecx, [esp + 0x38]
call fcn.00406e00
mov byte [esp + 0x90], 0x18
push str.setup_launch_failure
lea ecx, [esp + 0x34]
call fcn.00406e00
mov byte [esp + 0x90], 0x19
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004161d0
add esp, 0x1c
mov byte [esp + 0x90], 0x1a
push eax
lea ecx, [esp + 0x2c]
call fcn.00406800
mov byte [esp + 0x90], 0x19
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x90], 0x18
lea ecx, [esp + 0x30]
call fcn.00406ed0
mov byte [esp + 0x90], 0x17
lea ecx, [esp + 0x34]
call fcn.00406ed0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x48]
call fcn.00411190
push str.install_error_installnetclientam
lea ecx, [esp + 0x34]
call fcn.00406e00
mov byte [esp + 0x90], 0x1b
push str.install_error_installNCAM
lea ecx, [esp + 0x38]
call fcn.00406e00
mov byte [esp + 0x90], 0x1c
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004160f0
add esp, 8
mov byte [esp + 0x90], 0x1d
lea ecx, [esp + 0x30]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
call fcn.004113c0
mov byte [esp + 0x90], 0x1c
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x90], 0x1b
lea ecx, [esp + 0x34]
call fcn.00406ed0
mov byte [esp + 0x90], 0x17
lea ecx, [esp + 0x30]
call fcn.00406ed0
mov byte [esp + 0x90], 0x16
lea ecx, [esp + 0x24]
call fcn.00406ed0
mov byte [esp + 0x90], 0x15
lea ecx, [esp + 0x28]
call fcn.00406ed0
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x2c]
call fcn.00406ed0
mov eax, dword [esp + 0x80]
cmp eax, edi
je 0x404849
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.install_success_installnetclientam
lea ecx, [esp + 0x34]
call fcn.00406e00
mov byte [esp + 0x90], 0x1e
push str.install_success_installNCAM
lea ecx, [esp + 0x38]
call fcn.00406e00
mov byte [esp + 0x90], 0x1f
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004160f0
add esp, 8
mov byte [esp + 0x90], 0x20
lea ecx, [esp + 0x30]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
call fcn.004113c0
mov byte [esp + 0x90], 0x1f
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x90], 0x1e
lea ecx, [esp + 0x34]
call fcn.00406ed0
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x30]
call fcn.00406ed0
mov esi, dword [esp + 0x3c]
cmp byte [esi + 5], 0
je 0x404a3a
push str.computer_reboot
lea ecx, [esp + 0x38]
call fcn.00406e00
mov byte [esp + 0x90], 0x21
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.004160f0
add esp, 8
mov byte [esp + 0x90], 0x22
push eax
call fcn.00403e70
test eax, eax
sete byte [esp + 0x13]
mov byte [esp + 0x90], 0x21
lea ecx, [esp + 0x3c]
call fcn.00406ed0
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x34]
call fcn.00406ed0
cmp byte [esp + 0x13], 0
je 0x404a3a
push str.computer_reboot_manual
lea ecx, [esp + 0x38]
call fcn.00406e00
mov byte [esp + 0x90], 0x23
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004160f0
add esp, 8
mov byte [esp + 0x90], 0x24
mov eax, dword [eax]
push edi
push edi
push eax
call fcn.0042f5c8
mov byte [esp + 0x90], 0x23
lea ecx, [esp + 0x3c]
call fcn.00406ed0
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x34]
call fcn.00406ed0
call fcn.0042f665
cmp eax, edi
je 0x4049b7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x4049b9
xor eax, eax
mov ecx, dword [eax + 0x20]
push edi
push edi
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [esp + 0x90], 8
lea ecx, [esp + 0x1c]
call fcn.00406ed0
mov byte [esp + 0x90], 5
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov byte [esp + 0x90], 1
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x90], 0
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov dword [esp + 0x90], 0xffffffff
lea edx, [esp + 0x40]
push edx
call fcn.00402ca0
xor al, al
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esi + 4], 1
mov byte [esp + 0x90], 8
lea ecx, [esp + 0x1c]
call fcn.00406ed0
mov byte [esp + 0x90], 5
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov byte [esp + 0x90], 1
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x90], 0
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x44]
call fcn.00406ed0
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4