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

Disassembly:
push 0xffffffffffffffff
push 0x452056
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663d8]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
lea eax, [esp + 0x4c]
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.00402440
push 0x44
lea ecx, [esp + 0xd8]
push ebx
push ecx
mov dword [esp + 0x138], ebx
call fcn.004434e0
xor eax, eax
add esp, 0xc
push 1
mov dword [esp + 0xd8], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00432710
mov eax, dword [0x468b50]
mov ebp, 8
add esp, 4
cmp dword [eax + 0xaec], ebp
jb 0x40c4fc
mov eax, dword [eax + 0xad8]
jmp 0x40c501
add eax, 0xad8
push 0x456b2c
push ecx
push eax
lea edx, [esp + 0x60]
push edx
call fcn.00404f70
add esp, 0xc
push eax
call fcn.00404f70
add esp, 8
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40c542
lea ecx, [esp + 0x28]
push ecx
call eax
jmp 0x40c54d
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [esp + 0x28], 6
mov eax, str.ia64Drv64.exe
je 0x40c55f
mov eax, str.x64Drv64.exe
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00404f70
add esp, 8
push 0x457ee4
push ecx
push edi
push ecx
lea ecx, [esp + 0x64]
push 0x457ee8
push ecx
call fcn.00404f70
add esp, 0xc
push eax
call fcn.00404f70
add esp, 0xc
push eax
call fcn.00404f70
add esp, 8
push esi
push ecx
lea edx, [esp + 0x5c]
push str.__flags
push edx
call fcn.00404f70
add esp, 0xc
push eax
call fcn.0040ce80
push 0x457ee4
push ecx
push str.SoftwareIntelDifx64
push ecx
lea eax, [esp + 0x64]
push str.__keypath__
push eax
call fcn.00404f70
add esp, 0xc
push eax
call fcn.00404f70
add esp, 0xc
push eax
call fcn.00404f70
cmp byte [esp + 0x13c], bl
je 0x40c5ee
add esp, 8
jmp 0x40c600
lea ecx, [esp + 0x5c]
push str.__uninstall
push ecx
call fcn.00404f70
add esp, 0x10
lea ecx, [esp + 0x28]
lea eax, [esp + 0x4c]
call fcn.00402580
mov byte [esp + 0x12c], 1
cmp dword [eax + 0x18], ebp
jb 0x40c61f
mov eax, dword [eax + 4]
jmp 0x40c622
add eax, 4
push eax
push str.Execute_command:__s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
add esp, 0xc
mov byte [esp + 0x12c], bl
cmp dword [esp + 0x40], ebp
jb 0x40c651
mov edx, dword [esp + 0x2c]
push edx
call fcn.00439935
add esp, 4
lea ecx, [esp + 0x28]
lea eax, [esp + 0x4c]
call fcn.00402580
cmp dword [eax + 0x18], ebp
jb 0x40c668
mov eax, dword [eax + 4]
jmp 0x40c66b
add eax, 4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xd8]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [esp + 0x40], ebp
mov esi, eax
jb 0x40c69b
mov eax, dword [esp + 0x2c]
push eax
call fcn.00439935
add esp, 4
cmp esi, ebx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
je 0x40c6c3
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0x14]
jmp 0x40c6cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
push ebx
call fcn.00432710
add esp, 4
lea ecx, [esp + 0xa0]
mov dword [esp + 0x12c], 0xffffffff
call fcn.004024e0
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.004375db
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 4