Function at 0x10062c12
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
push 0x2bc
mov eax, 0x1016a373
call fcn.101673d5
mov ebx, ecx
mov dword [ebp - 0x2a8], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x101973c0]
mov edi, 0x101973c0
cmp eax, edi
je 0x10062c66
test byte [eax + 0x44], 4
je 0x10062c66
push dword [eax + 0x3c]
mov edx, 0x1001b298
push dword [eax + 0x38]
push 0x56
pop ecx
call fcn.1003f5d3
lea eax, [ebx + 0x14]
cmp dword [eax + 0x14], 8
jb 0x10062c71
mov eax, dword [eax]
push eax
mov edx, 0x104
lea ecx, [ebp - 0x218]
call fcn.1003f1d4
mov esi, eax
test esi, esi
jns 0x10062ca5
mov ecx, dword [0x101973c0]
cmp ecx, edi
je 0x10063527
test byte [ecx + 0x44], 1
jne 0x10063513
jmp 0x10063527
cmp dword [ebx + 0xc], 0
mov eax, 0x1001b7e0
jne 0x10062cb5
mov eax, 0x1001b800
push eax
mov edx, 0x104
lea ecx, [ebp - 0x218]
call fcn.1003f209
mov esi, eax
test esi, esi
jns 0x10062cf7
mov ecx, dword [0x101973c0]
cmp ecx, edi
je 0x10063527
test byte [ecx + 0x44], 1
je 0x10063527
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001b298
push dword [ecx + 0x38]
push 0x58
jmp 0x10063521
xor eax, eax
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2bc], eax
lea edx, [ebp - 0x2b4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x218]
call fcn.10086cec
mov esi, eax
test esi, esi
jns 0x10062d5f
mov ecx, dword [0x101973c0]
cmp ecx, edi
je 0x10062d47
test byte [ecx + 0x44], 1
je 0x10062d47
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001b298
push dword [ecx + 0x38]
push 0x59
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0x2a8]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
jmp 0x1006353a
and dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x26c]
xor eax, eax
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x218]
push eax
call fcn.10045266
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2bc]
mov edi, dword [ebp - 0x2b4]
mov ecx, edi
mov edx, dword [ebx + 0x34]
push eax
call fcn.10086f0b
mov esi, eax
test esi, esi
jns 0x10062dd3
mov ecx, dword [0x101973c0]
cmp ecx, 0x101973c0
je 0x10062d47
test byte [ecx + 0x44], 1
je 0x10062d47
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001b298
push dword [ecx + 0x38]
push 0x5a
jmp 0x10062d41
push 0x1001b818
push dword [ebx + 0x30]
call dword [sym.imp.WINSPOOL.DRV_DeletePrinterDataW]
cmp byte [ebx + 0x10], 0
je 0x100631e3
lea ecx, [ebp - 0x2b8]
call fcn.10045779
push 0x1001b31c
lea edx, [ebx + 0x14]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x288]
call fcn.10060566
mov byte [ebp - 4], 5
cmp byte [ebx + 0x11], 0
je 0x10062e90
cmp dword [ebp - 0x274], 8
mov eax, dword [ebp - 0x288]
jae 0x10062e2c
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10062e90
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10062e73
test byte [eax + 0x44], 4
je 0x10062e73
cmp dword [ebp - 0x274], 8
mov ecx, dword [ebp - 0x288]
jae 0x10062e5f
lea ecx, [ebp - 0x288]
push ecx
push dword [eax + 0x3c]
mov edx, 0x1001b298
push dword [eax + 0x38]
push 0x5b
pop ecx
call fcn.1003f5f1
cmp dword [ebp - 0x274], 8
mov esi, dword [ebp - 0x288]
jae 0x10062e88
lea esi, [ebp - 0x288]
test esi, esi
jne 0x10062f34
mov ebx, dword [ebx + 0x34]
push 1
push 1
push 0
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101a77c4]
mov ecx, ebx
call esi
mov ebx, dword [ebp - 0x2a8]
mov esi, eax
test esi, esi
jne 0x10062f34
mov ebx, dword [ebx + 0x34]
push 1
push esi
push esi
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101a77c4]
mov ecx, ebx
call esi
mov esi, eax
test esi, esi
jne 0x10062f2e
mov eax, dword [0x101973c0]
mov ebx, 0x101973c0
mov esi, 0x8000ffff
cmp eax, ebx
je 0x10062d47
test byte [eax + 0x44], 1
je 0x10062f09
push dword [eax + 0x3c]
mov edx, 0x1001b298
push dword [eax + 0x38]
push 0x5c
pop ecx
call fcn.1003f5d3
mov eax, dword [0x101973c0]
cmp eax, ebx
je 0x10062d47
test byte [eax + 0x44], 1
je 0x10062d47
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b298
push dword [eax + 0x38]
push 0x5d
jmp 0x10062d41
mov ebx, dword [ebp - 0x2a8]
and dword [ebp - 0x294], 0
xor eax, eax
push 7
pop ecx
push ecx
mov dword [ebp - 0x290], ecx
lea ecx, [ebp - 0x2a4]
push 0x1001b850
mov word [ebp - 0x2a4], ax
call fcn.100451ec
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 6
push eax
lea edx, [ebx + 0x14]
lea ecx, [ebp - 0x234]
call fcn.10064c6e
mov byte [ebp - 4], 7
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x10062f90
lea eax, [ebp - 0x234]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10062fe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10062fb3
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10062d47
test byte [eax + 0x44], 1
je 0x10062d47
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b298
push dword [eax + 0x38]
push 0x5e
jmp 0x10062d41
cmp dword [ebp - 0x290], 8
mov ecx, dword [ebp - 0x2a4]
jae 0x10062ff5
lea ecx, [ebp - 0x2a4]
mov eax, dword [ebp - 0x294]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0x1001b818
push dword [ebx + 0x30]
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov esi, eax
test esi, esi
jle 0x10063025
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10063054
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10062d47
test byte [eax + 0x44], 1
je 0x10062d47
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b298
push dword [eax + 0x38]
push 0x5f
jmp 0x10062d41
push 0x1001b344
lea edx, [ebx + 0x14]
lea ecx, [ebp - 0x250]
call fcn.10060566
mov byte [ebp - 4], 8
cmp dword [ebp - 0x23c], 8
mov edx, dword [ebp - 0x250]
jae 0x10063080
lea edx, [ebp - 0x250]
cmp dword [ebp - 0x220], 8
mov ecx, dword [ebp - 0x234]
jae 0x10063095
lea ecx, [ebp - 0x234]
call fcn.100bda4b
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebp - 0x250]
jae 0x100630b2
lea ecx, [ebp - 0x250]
test byte [eax + 0x3c], 0x18
mov esi, dword [ebp - 0x2bc]
setne al
movzx eax, al
push eax
push ecx
mov ecx, esi
call fcn.10086fa0
mov dword [ebp - 0x2a8], eax
test eax, eax
jns 0x10063109
mov ecx, dword [0x101973c0]
cmp ecx, 0x101973c0
je 0x10063103
test byte [ecx + 0x44], 1
je 0x10063103
push eax
push dword [ecx + 0x3c]
mov edx, 0x1001b298
push dword [ecx + 0x38]
push 0x60
pop ecx
call fcn.1003f754
mov eax, dword [ebp - 0x2a8]
push eax
jmp 0x10062d48
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x1006311e
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1006317b
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1006317b
test byte [eax + 0x44], 2
je 0x1006317b
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x10063150
lea eax, [ebp - 0x250]
mov dword [ebp - 0x2a8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2a8]
mov eax, dword [0x101973c0]
mov edx, 0x1001b298
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x61
pop ecx
call fcn.1003f64f
push 0
push 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 9
call fcn.10045637
push 0
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xb
call fcn.10045637
push 0
push 1
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 0xd
call fcn.10045637
push 0
push 1
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0xf
call fcn.10045637
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x2b8], 0
je 0x100631da
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 3
jmp 0x100633fe
xor al, al
cmp dword [ebx + 0xc], 0
mov ebx, dword [ebx + 0x34]
mov byte [ebp - 0x2a9], al
setne byte [ebp - 0x2b8]
push 1
push dword [ebp - 0x2b8]
mov eax, dword [ebx]
push 0
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101a77c4]
mov ecx, ebx
call esi
mov esi, dword [ebp - 0x2bc]
test eax, eax
je 0x10063267
push dword [ebp - 0x2b8]
mov ecx, esi
push eax
call fcn.10086fa0
mov ebx, eax
test ebx, ebx
jns 0x10063260
mov ecx, dword [0x101973c0]
cmp ecx, 0x101973c0
je 0x1006325a
test byte [ecx + 0x44], 1
je 0x1006325a
push ebx
push dword [ecx + 0x3c]
mov edx, 0x1001b298
push dword [ecx + 0x38]
push 0x62
pop ecx
call fcn.1003f754
push ebx
jmp 0x10062d48
mov byte [ebp - 0x2a9], 1
mov ebx, dword [ebp - 0x2a8]
mov eax, 0x1001b344
cmp dword [ebx + 0xc], 0
jne 0x1006327d
mov eax, 0x1001b364
push eax
lea edx, [ebx + 0x14]
lea ecx, [ebp - 0x234]
call fcn.10060566
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x100632a5
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10063329
mov eax, dword [ebx + 0x34]
test byte [eax + 0x3c], 0x18
mov eax, dword [ebp - 0x234]
setne cl
cmp dword [ebp - 0x220], 8
jae 0x100632d0
lea eax, [ebp - 0x234]
push ecx
push eax
mov ecx, esi
call fcn.10086fa0
mov dword [ebp - 0x2b0], eax
test eax, eax
jns 0x10063329
mov ecx, dword [0x101973c0]
cmp ecx, 0x101973c0
je 0x10063311
test byte [ecx + 0x44], 1
je 0x10063311
push eax
push dword [ecx + 0x3c]
mov edx, 0x1001b298
push dword [ecx + 0x38]
push 0x63
pop ecx
call fcn.1003f754
mov eax, dword [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
jmp 0x1006353a
mov eax, dword [ebx + 0x34]
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0x2b0], eax
push 1
mov eax, dword [eax]
sete byte [ebp - 0x2b8]
push dword [ebp - 0x2b8]
push 0
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x101a77c4]
mov ecx, dword [ebp - 0x2b0]
call ebx
test eax, eax
je 0x100633a6
push dword [ebp - 0x2b8]
mov ecx, esi
push eax
call fcn.10086fa0
mov ebx, eax
test ebx, ebx
jns 0x100633a2
mov ecx, dword [0x101973c0]
cmp ecx, 0x101973c0
je 0x1006339c
test byte [ecx + 0x44], 1
je 0x1006339c
push ebx
push dword [ecx + 0x3c]
mov edx, 0x1001b298
push dword [ecx + 0x38]
push 0x64
pop ecx
call fcn.1003f754
push ebx
jmp 0x10063312
mov al, 1
jmp 0x100633ac
mov al, byte [ebp - 0x2a9]
test al, al
jne 0x100633e1
mov eax, dword [0x101973c0]
mov esi, 0x80070002
cmp eax, 0x101973c0
je 0x100633db
test byte [eax + 0x44], 1
je 0x100633db
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b298
push dword [eax + 0x38]
push 0x65
pop ecx
call fcn.1003f754
push esi
jmp 0x10063312
push 0
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x13
call fcn.10045637
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x2a8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x2c4]
push eax
push 4
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x2c8]
push eax
push 0x1001b7a8
push dword [ebx + 0x30]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
cmp eax, 2
je 0x10063443
test eax, eax
jne 0x10063476
mov eax, dword [ebp - 0x2a8]
cmp dword [ebp - 0x2c0], eax
je 0x10063476
test edi, edi
je 0x1006345f
mov eax, dword [edi]
push edi
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x101a77c4]
call edi
xor edi, edi
mov dword [ebp - 0x2b4], edi
push dword [ebp - 0x2a8]
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
push dword [ebx + 0x30]
call fcn.100624db
mov eax, dword [ebp - 0x26c]
xor ebx, ebx
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x25c], ebx
jae 0x10063493
lea eax, [ebp - 0x26c]
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x25c], ecx
je 0x100634c0
cmp dword [ebp - 0x258], 8
mov eax, dword [ebp - 0x26c]
jae 0x100634b9
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 1
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x16
call fcn.10045637
push esi
mov byte [ebp - 4], 0x1a
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
mov byte [ebp - 4], 0x19
pop ecx
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 4], 0x1d
test edi, edi
je 0x10063509
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101a77c4]
call esi
mov dword [ebp - 0x2b4], ebx
or dword [ebp - 4], 0xffffffff
call fcn.10167384
ret
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001b298
push dword [ecx + 0x38]
push 0x57
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0x2b4]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3