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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x20b0
call fcn.010b06e0
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 0x102bf60
lea ecx, [ebp - 0x20ac]
mov dword [ebp - 0x208c], eax
call fcn.010ab82f
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 0x10afb42
mov eax, dword [section..data]
cmp eax, section..data
je 0x10afb37
test byte [eax + 0x1c], 4
je 0x10afb37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10afb1f
and eax, 0xffff
or eax, 0x80070000
push eax
mov eax, dword [section..data]
push 0x102be20
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
mov dword [ebp - 0x2088], ebx
jmp 0x10afda6
lea eax, [ebp - 0x1454]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x1864]
push eax
call fcn.01035122
push dword [0x10cd0f8]
lea eax, [ebp - 0x1864]
push esi
push eax
call fcn.0103d8e6
lea eax, [ebp - 0x1044]
push eax
push esi
lea eax, [ebp - 0x824]
push eax
call fcn.01035122
mov edi, 0x10021d4
push edi
push esi
lea eax, [ebp - 0x824]
push eax
call fcn.0103d8e6
push dword [0x10cd0f8]
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.0103d8e6
lea eax, [ebp - 0x1454]
push eax
push esi
lea eax, [ebp - 0x2084]
push eax
call fcn.01035122
push dword [0x10cd0fc]
lea eax, [ebp - 0x2084]
push esi
push eax
call fcn.0103d8e6
lea eax, [ebp - 0x1044]
push eax
push esi
lea eax, [ebp - 0xc34]
push eax
call fcn.01035122
push edi
push esi
lea eax, [ebp - 0xc34]
push eax
call fcn.0103d8e6
push dword [0x10cd0fc]
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.0103d8e6
lea eax, [ebp - 0x1454]
push eax
push esi
lea eax, [ebp - 0x1c74]
push eax
call fcn.01035122
push dword [0x10cd100]
lea eax, [ebp - 0x1c74]
push esi
push eax
call fcn.0103d8e6
lea eax, [ebp - 0x1044]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01035122
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0103d8e6
push dword [0x10cd100]
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0103d8e6
push ebx
lea eax, [ebp - 0x1044]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, 0x80070000
test eax, eax
jne 0x10afcb2
mov eax, dword [section..data]
cmp eax, section..data
je 0x10afcb2
test byte [eax + 0x1c], 4
je 0x10afcb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10afc9a
and eax, 0xffff
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be20
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
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 0x10afce2
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x1c74]
push eax
call esi
test eax, eax
jne 0x10afd1d
mov eax, dword [section..data]
cmp eax, section..data
je 0x10afd1d
test byte [eax + 0x1c], 8
je 0x10afd1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10afd05
and eax, 0xffff
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be20
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
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 0x10afda6
mov eax, dword [section..data]
cmp eax, section..data
je 0x10afda6
test byte [eax + 0x1c], 4
je 0x10afda6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10afd8e
and eax, 0xffff
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be20
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
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.010ab876
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2088]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac07
leave
ret 8