Function at 0x41344b
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.0043719c
push 0x19c8
lea ecx, [ebp - 8]
call fcn.004371c5
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0x527
push dword [ebp + 8]
call fcn.004378bb
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jne 0x4134a1
lea ecx, [ebp - 8]
call fcn.00431c4c
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.004047cb
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 0x413560
push dword [ebp + 0xc]
push edi
call fcn.00412fc2
pop ecx
pop ecx
push 8
push 0x49a3a8
push dword [ebp - 0xc]
call fcn.00410b58
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.00482c3e
add esp, 0x18
cmp dword [ebp - 0x10], 0
je 0x4136bf
test byte [ebp - 0x27c], 0x10
jne 0x4136a8
cmp word [ebp - 0x250], 0x2e
jne 0x4135e5
cmp word [ebp - 0x24e], 0
je 0x4136a8
cmp word [ebp - 0x24e], 0x2e
jne 0x4135e5
cmp word [ebp - 0x24c], 0
je 0x4136a8
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.00410b58
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
call ebx
cmp eax, 4
jge 0x413615
push 4
pop eax
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 4]
lea eax, [ebp + eax*2 - 0x258]
push 0x49a39c
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 0x41364d
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 0x413667
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
jmp 0x41366a
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 0x4136a0
cmp dword [ebp + 0xc], 0
je 0x4136a0
push dword [ebp + 0xc]
push eax
call fcn.00412fc2
pop ecx
pop ecx
and word [ebp - 0x24c], 0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004048d9
test eax, eax
jne 0x4135a8
lea ecx, [ebp - 0x10]
call fcn.00402baa
lea ecx, [ebp - 8]
call fcn.00431c4c
pop edi
pop esi
pop ebx
leave
ret