Function at 0x4123ba
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.00432cd5
push 0x19c8
lea ecx, [ebp - 8]
call fcn.00432cfe
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0x527
push dword [ebp + 8]
call fcn.004333c5
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jne 0x412410
lea ecx, [ebp - 8]
call fcn.0042dd2d
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 - 0x18], ecx
mov dword [ebp - 0x14], esi
call fcn.00404142
lea eax, [esi + edi*2]
and word [eax], 0
add esp, 0xc
lea ebx, [esi + 0xa50]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, 0x104
push edi
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebx + 0xa50]
push str._SystemRoot_INF_
mov dword [ebp - 4], eax
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
call ebx
push edi
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
push str._SystemRoot_SYSTEM32DRIVERS_
call esi
push dword [ebp - 4]
call ebx
push edi
mov edi, dword [ebp - 4]
add edi, 0xa50
push edi
push str._SystemRoot_SYSTEM32_
mov dword [ebp - 0x28], eax
call esi
push edi
call ebx
mov edi, dword [ebp - 0x14]
push dword [ebp - 0xc]
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 0x4124cf
push dword [ebp + 0xc]
push edi
call fcn.00411f31
pop ecx
pop ecx
push 8
push 0x490ff8
push dword [ebp - 0xc]
call fcn.0047a010
and dword [ebp - 0x27c], 0
xor eax, eax
and dword [ebp - 0x10], eax
mov ecx, 0x93
lea edi, [ebp - 0x278]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.004796f1
add esp, 0x18
cmp dword [ebp - 0x10], 0
je 0x41262e
test byte [ebp - 0x27c], 0x10
jne 0x412617
cmp word [ebp - 0x250], 0x2e
jne 0x412554
cmp word [ebp - 0x24e], 0
je 0x412617
cmp word [ebp - 0x24e], 0x2e
jne 0x412554
cmp word [ebp - 0x24c], 0
je 0x412617
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.0047a010
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
call ebx
cmp eax, 4
jge 0x412584
push 4
pop eax
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 4]
lea eax, [ebp + eax*2 - 0x258]
push 0x490fec
push eax
mov dword [ebp - 0x20], eax
add edi, 0xa50
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4125bc
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
add edi, 0xa50
mov dword [ebp - 0x18], eax
push str..SYS
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4125d6
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
jmp 0x4125d9
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x250]
push ecx
lea eax, [edi + eax*2]
push eax
call esi
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x14]
add eax, 0xa50
cmp eax, edi
jne 0x41260f
cmp dword [ebp + 0xc], 0
je 0x41260f
push dword [ebp + 0xc]
push eax
call fcn.00411f31
pop ecx
pop ecx
and word [ebp - 0x24c], 0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404250
test eax, eax
jne 0x412517
lea ecx, [ebp - 0x10]
call fcn.00402b0e
lea ecx, [ebp - 8]
call fcn.0042dd2d
pop edi
pop esi
pop ebx
leave
ret