Function at 0x411f98
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.0042e1e2
push 0x19c8
lea ecx, [ebp - 8]
call fcn.0042e20b
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0x527
push dword [ebp + 8]
call fcn.0042e7bd
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jne 0x411fee
lea ecx, [ebp - 8]
call fcn.00428a48
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.00403fda
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 0x4120ad
push dword [ebp + 0xc]
push edi
call fcn.00411b0f
pop ecx
pop ecx
push 8
push 0x487288
push dword [ebp - 0xc]
call fcn.00470580
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.0046ff71
add esp, 0x18
cmp dword [ebp - 0x10], 0
je 0x41220c
test byte [ebp - 0x27c], 0x10
jne 0x4121f5
cmp word [ebp - 0x250], 0x2e
jne 0x412132
cmp word [ebp - 0x24e], 0
je 0x4121f5
cmp word [ebp - 0x24e], 0x2e
jne 0x412132
cmp word [ebp - 0x24c], 0
je 0x4121f5
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.00470580
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
call ebx
cmp eax, 4
jge 0x412162
push 4
pop eax
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 4]
lea eax, [ebp + eax*2 - 0x258]
push 0x48727c
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 0x41219a
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 0x4121b4
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
jmp 0x4121b7
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 0x4121ed
cmp dword [ebp + 0xc], 0
je 0x4121ed
push dword [ebp + 0xc]
push eax
call fcn.00411b0f
pop ecx
pop ecx
and word [ebp - 0x24c], 0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004040e9
test eax, eax
jne 0x4120f5
lea ecx, [ebp - 0x10]
call fcn.00402ad6
lea ecx, [ebp - 8]
call fcn.00428a48
pop edi
pop esi
pop ebx
leave
ret