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

Disassembly:
mov eax, 0x4d40f8
call fcn.004ce9f0
sub esp, 0x188
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x45f8f4
xor eax, eax
jmp 0x45fac7
mov eax, dword [0x5096c0]
mov ecx, 0x5096c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.__s___s
call fcn.004229e7
push 0x110
lea eax, [ebp - 0x190]
push ebx
push eax
call fcn.00489db0
add esp, 0x18
lea eax, [ebp - 0x194]
push eax
mov dword [ebp - 0x194], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45f959
cmp dword [ebp - 0x190], 6
jne 0x45f959
inc esi
xor edi, edi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
lea esi, [ebp - 0x14]
jne 0x45f96c
call fcn.004349cd
jmp 0x45f971
call fcn.0043497d
cmp eax, ebx
jne 0x45faac
push 0x40
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x7c], 0x44
call fcn.00489db0
push dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x50], 1
mov word [ebp - 0x4c], ax
call fcn.00434a38
add esp, 0x10
test al, al
jne 0x45f9d6
cmp dword [ebp - 0x14], ebx
je 0x45f9cc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00434bb2
pop ecx
push str.userenv.dll
mov dword [ebp - 0x74], 0x4eaad0
mov dword [ebp - 0x24], 0x30
mov dword [ebp + 8], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x45fa37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call esi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov edi, eax
call esi
cmp edi, ebx
mov dword [ebp - 0x20], eax
je 0x45fa37
push ebx
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call edi
test eax, eax
je 0x45fa34
mov dword [ebp - 0x24], 0x430
jmp 0x45fa37
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x24]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x30], ebx
mov edi, eax
je 0x45fa77
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x45fa77
lea eax, [ebp - 0x34]
call fcn.0045ec57
cmp dword [ebp - 0x34], ebx
je 0x45fa85
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], ebx
je 0x45fa93
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], ebx
je 0x45fa9e
push dword [ebp + 8]
call dword [ebp - 0x20]
cmp dword [ebp - 0x1c], ebx
je 0x45faac
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], ebx
je 0x45faba
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret