Function at 0x4a6170
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query environment variable
Resolve function by parsing pe exports
Set environment variable

Disassembly:
sub esp, 0xa94
push ebx
push ebp
mov ebp, dword [esp + 0xaa4]
push esi
push edi
mov esi, ebp
lea edi, [esp + 0x898]
call fcn.004ad1c0
mov eax, edi
push str..zip
push eax
call fcn.006b227b
add esp, 8
test eax, eax
jne 0x4a62e4
lea esi, [esp + 0x280]
call fcn.004a6e10
mov bl, al
test bl, bl
jne 0x4a61be
call fcn.004a6ea0
lea ecx, [esp + 0x280]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a61eb
mov eax, dword [esp + 0xaa8]
mov dword [eax], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa94
ret 0x10
lea edi, [esp + 0x280]
mov eax, ebp
call fcn.00550bc0
test al, al
je 0x4a61d1
mov edx, ebp
lea esi, [esp + 0x78]
call fcn.004ad160
mov dx, word [esp + 0x78]
xor ecx, ecx
xor esi, esi
test dx, dx
movzx eax, dx
je 0x4a623e
lea esp, [esp]
cmp ax, 0x2e
jne 0x4a6228
mov esi, ecx
movzx eax, word [esp + ecx*2 + 0x7a]
add ecx, 1
test ax, ax
jne 0x4a6220
test esi, esi
je 0x4a623e
mov word [esp + esi*2 + 0x78], ax
push 0x6bc0cc
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x490]
push eax
lea eax, [esp + 0x28c]
call fcn.004ad3a0
lea ecx, [esp + 0x488]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a61d1
lea edx, [esp + 0x78]
push edx
push 0x6e9ee8
mov esi, 0x104
lea edi, [esp + 0x698]
call fcn.004af0d0
add esp, 8
test bl, bl
je 0x4a62ad
push str.Path
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [esp + 0x490]
mov edx, edi
call fcn.004af710
push str.Path
push SysReAllocStringLen
lea esi, [esp + 0x490]
lea edx, [esp + 0x698]
call fcn.004af710
mov eax, dword [esp + 0xaa8]
mov dword [eax], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa94
ret 0x10
push 0x104
lea eax, [esp + 0x694]
push eax
push str.LQUIET
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne bl
cmp byte [esp + 0xab4], 0
je 0x4a631d
push 0x6bc0a8
push str.LQUIET
call esi
push 0x3c
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.006a1300
xor ecx, ecx
add esp, 0xc
mov eax, 0x400
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x3c], 0x3c
mov dword [esp + 0x40], 0x140
mov dword [esp + 0x48], 0x6bc0b0
mov dword [esp + 0x4c], ebp
neg ecx
or ecx, eax
push ecx
call fcn.0069c0de
xor edi, edi
add esp, 4
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x4a6378
mov dword [esp + 0x20], edi
jmp 0x4a6383
mov word [eax], di
mov dword [esp + 0x20], 0x400
cmp byte [esp + 0xab4], 0
mov dword [esp + 0x1c], edi
mov eax, str._LQUIET
jne 0x4a639b
mov eax, 0x6bc0cc
mov ecx, dword [esp + 0xab0]
push ecx
push eax
push str._s_instby__sDebut
lea eax, [esp + 0x24]
call fcn.00480a60
add esp, 0xc
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.004bf410
mov ebp, dword [esp + 0x30]
cmp ebp, edi
je 0x4a63eb
cmp word [ebp], di
je 0x4a63eb
push ebp
push str.__instsvar__s
lea eax, [esp + 0x20]
call fcn.00480ab0
add esp, 8
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.0052a860
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x4a6420
cmp word [eax], di
je 0x4a6420
push eax
push str.__instrefdata__s
lea eax, [esp + 0x20]
call fcn.00480ab0
add esp, 8
mov eax, dword [esp + 0x18]
cmp eax, edi
mov dword [esp + 0x50], eax
jne 0x4a6434
mov dword [esp + 0x50], 0x6bc0cc
mov cl, byte [esp + 0xab4]
neg cl
lea edx, [esp + 0x3c]
push edx
sbb ecx, ecx
and ecx, 3
add ecx, 1
mov dword [esp + 0x5c], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4a649a
mov eax, dword [esp + 0x74]
push 0x1d4c0
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0xab4], 0
je 0x4a648f
neg bl
sbb ebx, ebx
and ebx, 0x6bc0a8
push ebx
push str.LQUIET
call esi
mov esi, dword [esp + 0xaa8]
mov dword [esi], edi
jmp 0x4a64c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
je 0x4a64bb
mov dword [esp + 0x14], 2
mov ecx, dword [eax]
mov esi, dword [esp + 0xaa8]
mov dword [esi], ecx
mov edx, dword [esp + 0x24]
push edx
call fcn.0069c8fa
add esp, 4
push ebp
call fcn.0069c8fa
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.0069c8fa
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xa94
ret 0x10