Function at 0x4125b1
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.00433c42
push 0x19c8
lea ecx, [ebp - 8]
call fcn.00433c6b
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0x527
push dword [ebp + 8]
call fcn.00434318
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jne 0x412607
lea ecx, [ebp - 8]
call fcn.0042eb98
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.0040414f
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 0x4126c6
push dword [ebp + 0xc]
push edi
call fcn.00412128
pop ecx
pop ecx
push 8
push 0x491ef8
push dword [ebp - 0xc]
call fcn.0047b530
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.0047ac16
add esp, 0x18
cmp dword [ebp - 0x10], 0
je 0x412825
test byte [ebp - 0x27c], 0x10
jne 0x41280e
cmp word [ebp - 0x250], 0x2e
jne 0x41274b
cmp word [ebp - 0x24e], 0
je 0x41280e
cmp word [ebp - 0x24e], 0x2e
jne 0x41274b
cmp word [ebp - 0x24c], 0
je 0x41280e
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.0047b530
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
call ebx
cmp eax, 4
jge 0x41277b
push 4
pop eax
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 4]
lea eax, [ebp + eax*2 - 0x258]
push 0x491eec
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 0x4127b3
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 0x4127cd
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
jmp 0x4127d0
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 0x412806
cmp dword [ebp + 0xc], 0
je 0x412806
push dword [ebp + 0xc]
push eax
call fcn.00412128
pop ecx
pop ecx
and word [ebp - 0x24c], 0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040425d
test eax, eax
jne 0x41270e
lea ecx, [ebp - 0x10]
call fcn.00402afe
lea ecx, [ebp - 8]
call fcn.0042eb98
pop edi
pop esi
pop ebx
leave
ret