Function at 0x41fff2
Capabilities:
Copy file
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0x11
push ebx
push esi
push edi
mov esi, ecx
jne 0x420102
mov eax, dword [ebp + 0xc]
mov ebx, dword [esi + 8]
and dword [ebp + 8], 0
test ebx, ebx
mov edi, dword [eax]
lea ecx, [eax + 0x12]
mov dword [ebp + 0xc], ecx
jne 0x420041
push 0x5c
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x42002e
lea edi, [eax + 2]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 4
jge 0x42003d
push 4
pop eax
lea ebx, [edi + eax*2 - 8]
cmp dword [esi + 8], 0
jne 0x420097
push 0x4a7c28
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
je 0x420077
cmp word [esi + 0x2e], 0
jle 0x420070
mov ebx, dword [esi + 0xc]
mov dword [ebp + 8], 2
jmp 0x420097
mov ebx, str._SystemRoot_INF_
jmp 0x420097
cmp dword [esi + 0x28], 0
je 0x4200fa
push str..SYS
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
mov ebx, str._SystemRoot_SYSTEM32DRIVERS_
je 0x420097
mov ebx, str._SystemRoot_SYSTEM32_
push 0x104
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
cmp dword [ebp + 8], 2
je 0x4200d0
push 0x5c
lea eax, [esi + ebx*2]
push 0x23
push eax
call fcn.0040e4b8
add esp, 0xc
push esi
call fcn.00412aac
cmp dword [ebp + 8], 0
pop ecx
je 0x4200e4
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push esi
call fcn.0048f0e8
pop ecx
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov eax, ecx
jmp 0x4202f0
push 2
pop eax
jmp 0x4202f0
cmp dword [ebp + 8], 0x13
jne 0x4202ee
cmp byte [esi + 0x30], 0
jne 0x4202ee
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenW]
and dword [ebp + 8], 0
push edi
mov dword [ebp + 0xc], edi
call ebx
cmp eax, 4
jle 0x4202ca
push 0x4a7c28
lea eax, [edi + eax*2 - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x4202ca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x420164
push edi
push eax
mov ecx, esi
call fcn.0040fbf7
test al, al
je 0x4202b1
push 0
push edi
push esi
call fcn.0041f900
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
je 0x4202b1
cmp word [esi + 0x2e], 0
jle 0x4201f8
push 0x514
lea ecx, [ebp + 8]
call fcn.0043d4c2
push 0x104
push dword [ebp + 8]
push str._SystemRoot_INF_
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push dword [ebp + 8]
call ebx
mov ecx, dword [ebp + 0xc]
lea edi, [eax + eax]
movsx eax, word [esi + 0x2e]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
mov eax, dword [ebp + 8]
push 0x5c
add edi, eax
push 0x23
push edi
call fcn.0040e4b8
push dword [ebp + 8]
call fcn.00412aac
add esp, 0x10
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push dword [ebp + 0xc]
call fcn.0040e5ff
mov eax, dword [ebp + 8]
pop ecx
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x18]
push dword [ebp + 0xc]
mov edi, dword [esi + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x28], 1
movzx eax, word [eax - 4]
mov dword [ebp - 0xc], eax
call ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [eax + ecx + 6]
mov dword [ebp - 0x10], eax
jmp 0x42023e
mov eax, dword [ebp - 4]
cmp dword [edi], eax
ja 0x420297
add edi, 4
push edi
call ebx
lea edi, [edi + eax*2 + 2]
push edi
call ebx
lea edi, [edi + eax*2 + 2]
cmp edi, dword [esi + 0x18]
jb 0x420226
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov cx, word [ebp - 0xc]
mov dword [ebx], eax
add ebx, 4
mov word [ebx], cx
push 2
pop ecx
add ebx, ecx
mov dx, word [eax]
mov word [ebx], dx
mov dx, word [eax]
add ebx, ecx
add eax, ecx
test dx, dx
jne 0x42025a
mov dx, word [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov word [ebx], dx
add ebx, ecx
mov dx, word [eax]
mov word [ebx], dx
mov dx, word [eax]
add ebx, ecx
add eax, ecx
test dx, dx
jne 0x420278
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
add eax, eax
add dword [esi + 0x18], eax
jmp 0x4202cd
mov eax, dword [esi + 0x18]
sub eax, edi
push eax
mov eax, dword [ebp - 0x10]
lea eax, [edi + eax*2]
push edi
push eax
mov ebx, edi
call fcn.004125af
add esp, 0xc
jmp 0x420246
cmp dword [esi + 0x28], 1
je 0x4202e6
cmp dword [esi + 8], 0
jne 0x4202e6
and dword [esi + 0x28], 0
push edi
call fcn.0040e5ff
pop ecx
jmp 0x4202e6
inc dword [esi + 0x28]
cmp dword [esi + 8], 0
jne 0x4202e6
push edi
push 0x4a7d60
push 0x4bdfa0
call fcn.0040f2bd
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.00437960
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8