Function at 0x45802e
Capabilities:
Create process on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa88
push ebx
push esi
push edi
mov edi, eax
mov ecx, edi
lea eax, [ebp - 0xa84]
call fcn.0040171e
lea eax, [ebp - 0xa84]
push str..zip
push eax
call fcn.005a6122
test eax, eax
pop ecx
pop ecx
jne 0x458145
lea eax, [ebp - 0x264]
push eax
call fcn.00458a14
mov bl, al
test bl, bl
jne 0x458082
lea eax, [ebp - 0x264]
push eax
call fcn.00458aa1
lea eax, [ebp - 0x264]
push eax
call fcn.00401b98
test al, al
jne 0x4580a0
mov eax, dword [ebp + 8]
mov dword [eax], 2
jmp 0x458287
lea eax, [ebp - 0x264]
mov ecx, edi
call fcn.004782a3
test al, al
je 0x458092
mov ecx, edi
lea esi, [ebp - 0x674]
call fcn.004a2d7d
push 0x5b07d8
mov eax, esi
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.004a2dab
lea eax, [ebp - 0x46c]
push eax
call fcn.00401b98
test al, al
je 0x458092
mov eax, esi
push eax
push str.SoftwareNCH_SoftwareComponents_s
mov esi, 0x104
lea edi, [ebp - 0x87c]
call fcn.004a9039
test bl, bl
pop ecx
pop ecx
mov esi, str.Path
je 0x458121
lea eax, [ebp - 0x46c]
push eax
push esi
mov eax, edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00446aee
lea eax, [ebp - 0x46c]
push eax
push esi
lea eax, [ebp - 0x87c]
push eax
push SysReAllocString
call fcn.00446aee
mov eax, dword [ebp + 8]
and dword [eax], 0
jmp 0x458287
call fcn.00405c6c
cmp byte [ebp + 0x10], 0
mov bl, al
je 0x458162
push 0x5b07cc
push str.LQUIET
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.005970f0
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x48], edi
add esp, 0xc
mov edi, 0x400
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x54], 0x140
mov dword [ebp - 0x4c], 0x5dadf8
call fcn.00434c41
cmp byte [ebp + 0x10], 0
mov esi, 0x5b07d8
mov eax, str._LQUIET
jne 0x4581a7
mov eax, esi
push dword [ebp + 0xc]
push eax
push str._s_instby__sSwitch
lea eax, [ebp - 0x1c]
call fcn.004b0705
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.004b2f2c
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x4581eb
cmp word [eax], di
je 0x4581eb
push eax
push str.__instsvar__s
lea eax, [ebp - 0x1c]
call fcn.00558e38
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
cmp eax, edi
mov dword [ebp - 0x44], eax
jne 0x4581f8
mov dword [ebp - 0x44], esi
mov al, byte [ebp + 0x10]
neg al
sbb eax, eax
and eax, 3
inc eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x45824e
push 0x1d4c0
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x10], 0
je 0x458247
neg bl
sbb ebx, ebx
and ebx, 0x5b07cc
push ebx
push str.LQUIET
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, dword [ebp + 8]
mov dword [esi], edi
jmp 0x458273
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 1
je 0x45826c
mov dword [ebp + 0x10], 2
mov eax, dword [eax]
mov esi, dword [ebp + 8]
mov dword [esi], eax
push dword [ebp - 0x10]
call fcn.0058f8c9
pop ecx
push dword [ebp - 0x1c]
call fcn.0058f8c9
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc