Function at 0x4033eb
Capabilities:
Copy file
Delete file
Move file
Query environment variable

Disassembly:
sub esp, 0x21c
mov eax, dword [0x42a0d0]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov esi, dword [esp + 0x224]
push 1
push str.NVSTINST_INFO_:__d
mov dword [esp + 0x10], esi
call fcn.0040a7c0
mov eax, dword [esp + 0x230]
push eax
push 0x4243bc
call fcn.0040a7c0
push str.nvStreaming.exe
push esi
mov byte [esp + 0x1f], 0
call fcn.0040db62
add esp, 0x18
push 0x105
test eax, eax
jne 0x403367
lea ecx, [esp + 0x10]
push ecx
push str._SystemRoot_System32_nvStreaming.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40334f
lea edx, [esp + 0xc]
push edx
call fcn.004010c0
add esp, 4
test al, al
jne 0x403392
xor al, al
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0040d609
add esp, 0x21c
ret
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00402b50
add esp, 0xc
test al, al
je 0x4035ba
lea ecx, [esp + 0xc]
push ecx
call fcn.004010c0
add esp, 4
test al, al
je 0x4035ba
push ebx
push ebp
push edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x1c]
push ecx
call ebx
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push esi
lea eax, [esp + 0x1c]
push eax
call ebx
cmp edi, 0xffffffff
jne 0x40357a
push 2
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
add esp, 8
cmp ebp, 0x20
je 0x403410
cmp ebp, 0x21
je 0x403410
cmp ebp, 0x4c8
jne 0x403590
push 3
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
push ebp
push str.WIN_ERROR_:__d
call fcn.0040a7c0
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add esp, 0x10
push 0x105
lea ecx, [esp + 0x124]
push ecx
push str._Temp__
call esi
test eax, eax
jne 0x40348a
push 0x105
lea edx, [esp + 0x124]
push edx
push str._Tmp__
call esi
test eax, eax
jne 0x40348a
push 4
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
add esp, 8
mov al, 1
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0040d609
add esp, 0x21c
ret
mov eax, dword [esp + 0x14]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403490
lea edi, [esp + 0x120]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4034a1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 3
push str.NVSTINST_INFO_:__d
rep movsb byte es:[edi], byte [esi]
call fcn.0040a7c0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 8
xor esi, esi
lea eax, [esp + 0x120]
push eax
call fcn.004010c0
add esp, 4
test al, al
je 0x403518
lea ecx, [esp + 0x120]
push ecx
call ebx
test eax, eax
jne 0x403518
lea edi, [esp + 0x120]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403500
mov dx, word [0x4248bc]
inc esi
cmp esi, 0x1e
mov word [edi], dx
jl 0x4034d0
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x403590
push 5
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WIN_ERROR_:__d
call fcn.0040a7c0
push 4
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 0x10
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [esp + 0x13], 1
jmp 0x403590
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
push 2
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
mov ecx, dword [esp + 0x23c]
push ecx
push 0x4243bc
call fcn.0040a7c0
mov al, byte [esp + 0x23]
add esp, 0x10
jmp 0x403471
push 0
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
push 1
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
mov ecx, dword [esp + 0x22c]
add esp, 0x10
pop esi
xor ecx, esp
xor al, al
call fcn.0040d609
add esp, 0x21c
ret