Function at 0x401eb0
Capabilities:
Delete file
Move file
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426af0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x350
mov eax, dword [0x431bb8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call fcn.00401e00
push 0x104
lea eax, [ebp - 0x330]
push eax
push str._SystemDrive_ProgramDataNVIDIAResource
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [ebp - 0x330]
push ecx
push str._s.old
lea edx, [ebp - 0x120]
push edx
call fcn.0041187a
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
push str._s.new
lea ecx, [ebp - 0x228]
push ecx
call fcn.0041187a
add esp, 0xc
push str..dat
lea edx, [ebp - 0x330]
push edx
call fcn.00411980
add esp, 8
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4288a4
lea ecx, [ebp - 0x228]
push ecx
call fcn.004124e8
add esp, 8
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0
je 0x4020e2
mov edx, dword [0x433014]
shr edx, 4
mov dword [ebp - 0x338], edx
mov eax, dword [ebp - 0x334]
push eax
push 4
push 1
push 0x43301c
call fcn.004123a2
add esp, 0x10
mov ecx, dword [ebp - 0x334]
push ecx
push 4
push 1
lea edx, [ebp - 0x338]
push edx
call fcn.004123a2
add esp, 0x10
mov dword [ebp - 0x33c], 0
jmp 0x401fdf
mov eax, dword [ebp - 0x33c]
add eax, 1
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
cmp ecx, dword [ebp - 0x338]
jge 0x40204e
mov edx, dword [ebp - 0x33c]
shl edx, 4
add edx, dword [0x433010]
mov eax, dword [edx]
mov dword [ebp - 0x34c], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x348], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x344], eax
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x340], ecx
cmp dword [ebp - 0x344], 0
jne 0x402032
mov dword [ebp - 0x340], 0
mov edx, dword [ebp - 0x334]
push edx
push 0x10
push 1
lea eax, [ebp - 0x34c]
push eax
call fcn.004123a2
add esp, 0x10
jmp 0x401fd0
mov dword [ebp - 0x350], 0
jmp 0x402069
mov ecx, dword [ebp - 0x350]
add ecx, 1
mov dword [ebp - 0x350], ecx
mov edx, dword [ebp - 0x350]
cmp edx, dword [ebp - 0x338]
jge 0x4020d3
mov eax, dword [ebp - 0x350]
shl eax, 4
add eax, dword [0x433010]
mov ecx, dword [eax]
mov dword [ebp - 0x360], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x35c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x358], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x354], edx
cmp dword [ebp - 0x358], 0
je 0x4020d1
mov eax, dword [ebp - 0x334]
push eax
mov ecx, dword [ebp - 0x354]
push ecx
push 1
mov edx, dword [ebp - 0x358]
push edx
call fcn.004123a2
add esp, 0x10
jmp 0x40205a
mov eax, dword [ebp - 0x334]
push eax
call fcn.004121c4
add esp, 4
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp - 0x330]
push ecx
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x402126
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004116a1
mov esp, ebp
pop ebp
ret