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

Disassembly:
push 0xffffffffffffffff
push 0x4515f6
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663e0]
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.00402450
push 0x44
lea ecx, [esp + 0xd8]
push ebx
push ecx
mov dword [esp + 0x138], ebx
call fcn.00443300
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.00432010
mov eax, dword [0x468b8c]
mov ebp, 8
add esp, 4
cmp dword [eax + 0xce0], ebp
jb 0x40bf2c
mov eax, dword [eax + 0xccc]
jmp 0x40bf31
add eax, 0xccc
push 0x456b1c
push ecx
push eax
lea edx, [esp + 0x60]
push edx
call fcn.00405010
add esp, 0xc
push eax
call fcn.00405010
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 0x40bf72
lea ecx, [esp + 0x28]
push ecx
call eax
jmp 0x40bf7d
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [esp + 0x28], 6
mov eax, str.ia64Drv64.exe
je 0x40bf8f
mov eax, str.x64Drv64.exe
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00405010
add esp, 8
push 0x457fc4
push ecx
push edi
push ecx
lea ecx, [esp + 0x64]
push 0x457fc8
push ecx
call fcn.00405010
add esp, 0xc
push eax
call fcn.00405010
add esp, 0xc
push eax
call fcn.00405010
add esp, 8
push esi
push ecx
lea edx, [esp + 0x5c]
push str.__flags
push edx
call fcn.00405010
add esp, 0xc
push eax
call fcn.0040cc60
push 0x457fc4
push ecx
push str.SoftwareIntelDifx64
push ecx
lea eax, [esp + 0x64]
push str.__keypath__
push eax
call fcn.00405010
add esp, 0xc
push eax
call fcn.00405010
add esp, 0xc
push eax
call fcn.00405010
cmp byte [esp + 0x13c], bl
je 0x40c01e
add esp, 8
jmp 0x40c030
lea ecx, [esp + 0x5c]
push str.__uninstall
push ecx
call fcn.00405010
add esp, 0x10
lea ecx, [esp + 0x28]
lea eax, [esp + 0x4c]
call fcn.00402590
mov byte [esp + 0x12c], 1
cmp dword [eax + 0x18], ebp
jb 0x40c04f
mov eax, dword [eax + 4]
jmp 0x40c052
add eax, 4
push eax
push str.Execute_command:__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
mov byte [esp + 0x12c], bl
cmp dword [esp + 0x40], ebp
jb 0x40c081
mov edx, dword [esp + 0x2c]
push edx
call fcn.00439059
add esp, 4
lea ecx, [esp + 0x28]
lea eax, [esp + 0x4c]
call fcn.00402590
cmp dword [eax + 0x18], ebp
jb 0x40c098
mov eax, dword [eax + 4]
jmp 0x40c09b
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 0x40c0cb
mov eax, dword [esp + 0x2c]
push eax
call fcn.00439059
add esp, 4
cmp esi, ebx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
je 0x40c0f3
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0x14]
jmp 0x40c0fb
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.00432010
add esp, 4
lea ecx, [esp + 0xa0]
mov dword [esp + 0x12c], 0xffffffff
call fcn.004024f0
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.00436cf8
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