Function at 0x41294a
Capabilities:
Copy file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
and dword [ebp + 0xc], 0x30000
push 0x528
lea ecx, [ebp - 8]
call fcn.00435d80
push 0x19c8
lea ecx, [ebp - 8]
call fcn.00435da9
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push 0x527
push dword [ebp + 8]
call fcn.0043649f
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
jne 0x4129a0
lea ecx, [ebp - 8]
call fcn.0043092f
leave
ret
mov ecx, dword [ebp - 8]
push ebx
push esi
sub eax, ecx
push edi
sar eax, 1
mov edi, eax
push edi
lea esi, [ecx + 0xa50]
push ecx
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
call fcn.00404561
lea eax, [esi + edi*2]
and word [eax], 0
add esp, 0xc
mov edi, 0x104
push edi
lea ebx, [esi + 0xa50]
mov esi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push ebx
push str._SystemRoot_INF_
mov dword [ebp - 0x24], eax
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenW]
call ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push edi
add eax, 0x14a0
push eax
push str._SystemRoot_SYSTEM32DRIVERS_
call esi
mov eax, dword [ebp - 0xc]
add eax, 0x14a0
push eax
call ebx
push edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [edi + 0x1ef0]
push eax
push str._SystemRoot_SYSTEM32_
mov dword [ebp - 0x18], eax
call esi
push dword [ebp - 0x18]
call ebx
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
add edi, 0xa50
lea eax, [edi + eax*2]
push eax
call esi
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp dword [ebp + 0xc], 0
je 0x412a64
push dword [ebp + 0xc]
push edi
call fcn.004124c1
pop ecx
pop ecx
push 8
push 0x4971f8
push dword [ebp - 0x10]
call fcn.004102e0
and dword [ebp - 0x27c], 0
xor eax, eax
and dword [ebp - 0x14], eax
mov ecx, 0x93
lea edi, [ebp - 0x278]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
call fcn.0047f714
add esp, 0x18
cmp dword [ebp - 0x14], 0
je 0x412bca
test byte [ebp - 0x27c], 0x10
jne 0x412bb3
cmp word [ebp - 0x250], 0x2e
jne 0x412ae9
cmp word [ebp - 0x24e], 0
je 0x412bb3
cmp word [ebp - 0x24e], 0x2e
jne 0x412ae9
cmp word [ebp - 0x24c], 0
je 0x412bb3
lea eax, [ebp - 0x250]
push eax
call ebx
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x24]
call fcn.004102e0
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
call ebx
cmp eax, 4
jge 0x412b19
push 4
pop eax
mov edi, dword [ebp - 0xc]
lea ecx, [ebp + eax*2 - 0x258]
add edi, 0xa50
lea eax, [edi + 0x14a0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
push 0x4971ec
push ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x412b54
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], eax
push str..SYS
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x412b74
lea eax, [edi + 0xa50]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
jmp 0x412b77
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x250]
push ecx
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2]
push eax
call esi
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp edi, dword [ebp - 4]
jne 0x412bab
cmp dword [ebp + 0xc], 0
je 0x412bab
push dword [ebp + 0xc]
push edi
call fcn.004124c1
pop ecx
pop ecx
and word [ebp - 0x24c], 0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040466f
test eax, eax
jne 0x412aac
lea ecx, [ebp - 0x14]
call fcn.00402b5c
lea ecx, [ebp - 8]
call fcn.0043092f
pop edi
pop esi
pop ebx
leave
ret