Function at 0x10afa2b
Capabilities:
Copy file
Create directory
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x20b0
call fcn.010b06f0
mov eax, dword [0x10cd0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2088], eax
mov eax, dword [ebp + 0xc]
push ebx
push 0x102bf70
lea ecx, [ebp - 0x20ac]
mov dword [ebp - 0x208c], eax
call fcn.010ab83f
mov esi, 0x410
push esi
lea eax, [ebp - 0x1864]
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x824]
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x2084]
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0xc34]
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x1c74]
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x48
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x20a4]
rep stosd dword es:[edi], eax
push 0x208
lea eax, [ebp - 0x1454]
push eax
push dword [ebp - 0x2088]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20b0]
push eax
push esi
lea eax, [ebp - 0x1044]
push eax
push 1
push ebx
push ebx
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
test eax, eax
jne 0x10afb52
mov eax, dword [section..data]
cmp eax, section..data
je 0x10afb47
test byte [eax + 0x1c], 4
je 0x10afb47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10afb2f
and eax, 0xffff
or eax, 0x80070000
push eax
mov eax, dword [section..data]
push 0x102be30
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov dword [ebp - 0x2088], ebx
jmp 0x10afdb6
lea eax, [ebp - 0x1454]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x1864]
push eax
call fcn.01035132
push dword [0x10cd0f8]
lea eax, [ebp - 0x1864]
push esi
push eax
call fcn.0103d8f7
lea eax, [ebp - 0x1044]
push eax
push esi
lea eax, [ebp - 0x824]
push eax
call fcn.01035132
mov edi, 0x10021d4
push edi
push esi
lea eax, [ebp - 0x824]
push eax
call fcn.0103d8f7
push dword [0x10cd0f8]
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.0103d8f7
lea eax, [ebp - 0x1454]
push eax
push esi
lea eax, [ebp - 0x2084]
push eax
call fcn.01035132
push dword [0x10cd0fc]
lea eax, [ebp - 0x2084]
push esi
push eax
call fcn.0103d8f7
lea eax, [ebp - 0x1044]
push eax
push esi
lea eax, [ebp - 0xc34]
push eax
call fcn.01035132
push edi
push esi
lea eax, [ebp - 0xc34]
push eax
call fcn.0103d8f7
push dword [0x10cd0fc]
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.0103d8f7
lea eax, [ebp - 0x1454]
push eax
push esi
lea eax, [ebp - 0x1c74]
push eax
call fcn.01035132
push dword [0x10cd100]
lea eax, [ebp - 0x1c74]
push esi
push eax
call fcn.0103d8f7
lea eax, [ebp - 0x1044]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01035132
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0103d8f7
push dword [0x10cd100]
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0103d8f7
push ebx
lea eax, [ebp - 0x1044]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, 0x80070000
test eax, eax
jne 0x10afcc2
mov eax, dword [section..data]
cmp eax, section..data
je 0x10afcc2
test byte [eax + 0x1c], 4
je 0x10afcc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10afcaa
and eax, 0xffff
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be30
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x1864]
push eax
call esi
test eax, eax
je 0x10afcf2
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x1c74]
push eax
call esi
test eax, eax
jne 0x10afd2d
mov eax, dword [section..data]
cmp eax, section..data
je 0x10afd2d
test byte [eax + 0x1c], 8
je 0x10afd2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10afd15
and eax, 0xffff
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be30
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov eax, dword [0x10cd0f8]
mov dword [ebp - 0x2098], eax
mov eax, dword [0x10cd0fc]
mov dword [ebp - 0x2094], eax
mov eax, dword [0x10cd100]
mov dword [ebp - 0x2090], eax
mov eax, dword [ebp - 0x208c]
push 4
mov dword [ebp - 0x20a0], eax
lea eax, [ebp - 0x20a4]
push eax
push 2
push ebx
mov dword [ebp - 0x209c], ebx
call sub.WINSPOOL.DRV_AddPrinterDriverExW
mov dword [ebp - 0x2088], eax
cmp eax, ebx
jne 0x10afdb6
mov eax, dword [section..data]
cmp eax, section..data
je 0x10afdb6
test byte [eax + 0x1c], 4
je 0x10afdb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10afd9e
and eax, 0xffff
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be30
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x824]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0xc34]
push eax
call esi
lea ecx, [ebp - 0x20ac]
call fcn.010ab886
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2088]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac17
leave
ret 8