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

Disassembly:
push 0x2bc
mov eax, 0x10166cc9
call fcn.10163edf
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 [0x101923c0]
mov edi, 0x101923c0
cmp eax, edi
je 0x10062fec
test byte [eax + 0x44], 4
je 0x10062fec
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x56
pop ecx
call fcn.10040067
lea eax, [ebx + 0x14]
cmp dword [eax + 0x14], 8
jb 0x10062ff7
mov eax, dword [eax]
push eax
mov edx, 0x104
lea ecx, [ebp - 0x218]
call fcn.1003fc94
mov esi, eax
test esi, esi
js 0x1006387c
cmp dword [ebx + 0xc], 0
mov eax, 0x1001ba80
jne 0x10063022
mov eax, 0x1001baa0
push eax
mov edx, 0x104
lea ecx, [ebp - 0x218]
call fcn.1003fcc9
mov esi, eax
test esi, esi
jns 0x10063064
mov ecx, dword [0x101923c0]
cmp ecx, edi
je 0x100638a0
test byte [ecx + 0x44], 1
je 0x100638a0
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001b4a0
push dword [ecx + 0x38]
push 0x58
jmp 0x1006389a
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.1008672c
mov esi, eax
test esi, esi
jns 0x100630cc
mov ecx, dword [0x101923c0]
cmp ecx, edi
je 0x100630b4
test byte [ecx + 0x44], 1
je 0x100630b4
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001b4a0
push dword [ecx + 0x38]
push 0x59
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x2a8]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
jmp 0x100638b3
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.10045b1f
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.1008692b
mov esi, eax
test esi, esi
jns 0x10063140
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x100630b4
test byte [ecx + 0x44], 1
je 0x100630b4
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001b4a0
push dword [ecx + 0x38]
push 0x5a
jmp 0x100630ae
push 0x1001bab8
push dword [ebx + 0x30]
call dword [sym.imp.WINSPOOL.DRV_DeletePrinterDataW]
cmp byte [ebx + 0x10], 0
je 0x10063550
lea ecx, [ebp - 0x2b8]
call fcn.10046025
push 0x1001b524
lea edx, [ebx + 0x14]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x288]
call fcn.100608c4
mov byte [ebp - 4], 5
cmp byte [ebx + 0x11], 0
je 0x100631fd
cmp dword [ebp - 0x274], 8
mov eax, dword [ebp - 0x288]
jae 0x10063199
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100631fd
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x100631e0
test byte [eax + 0x44], 4
je 0x100631e0
cmp dword [ebp - 0x274], 8
mov ecx, dword [ebp - 0x288]
jae 0x100631cc
lea ecx, [ebp - 0x288]
push ecx
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x5b
pop ecx
call fcn.10040085
cmp dword [ebp - 0x274], 8
mov esi, dword [ebp - 0x288]
jae 0x100631f5
lea esi, [ebp - 0x288]
test esi, esi
jne 0x100632a1
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 [0x101a27b8]
mov ecx, ebx
call esi
mov ebx, dword [ebp - 0x2a8]
mov esi, eax
test esi, esi
jne 0x100632a1
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 [0x101a27b8]
mov ecx, ebx
call esi
mov esi, eax
test esi, esi
jne 0x1006329b
mov eax, dword [0x101923c0]
mov ebx, 0x101923c0
mov esi, 0x8000ffff
cmp eax, ebx
je 0x100630b4
test byte [eax + 0x44], 1
je 0x10063276
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x5c
pop ecx
call fcn.10040067
mov eax, dword [0x101923c0]
cmp eax, ebx
je 0x100630b4
test byte [eax + 0x44], 1
je 0x100630b4
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x5d
jmp 0x100630ae
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 0x1001baf0
mov word [ebp - 0x2a4], ax
call fcn.10045aa5
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 6
push eax
lea edx, [ebx + 0x14]
lea ecx, [ebp - 0x234]
call fcn.10064f99
mov byte [ebp - 4], 7
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x100632fd
lea eax, [ebp - 0x234]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1006334d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10063320
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x100630b4
test byte [eax + 0x44], 1
je 0x100630b4
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x5e
jmp 0x100630ae
cmp dword [ebp - 0x290], 8
mov ecx, dword [ebp - 0x2a4]
jae 0x10063362
lea ecx, [ebp - 0x2a4]
mov eax, dword [ebp - 0x294]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0x1001bab8
push dword [ebx + 0x30]
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov esi, eax
test esi, esi
jle 0x10063392
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x100633c1
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x100630b4
test byte [eax + 0x44], 1
je 0x100630b4
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x5f
jmp 0x100630ae
push 0x1001b54c
lea edx, [ebx + 0x14]
lea ecx, [ebp - 0x250]
call fcn.100608c4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x23c], 8
mov edx, dword [ebp - 0x250]
jae 0x100633ed
lea edx, [ebp - 0x250]
cmp dword [ebp - 0x220], 8
mov ecx, dword [ebp - 0x234]
jae 0x10063402
lea ecx, [ebp - 0x234]
call fcn.100bc1c8
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebp - 0x250]
jae 0x1006341f
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.100869c0
mov dword [ebp - 0x2a8], eax
test eax, eax
jns 0x10063476
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x10063470
test byte [ecx + 0x44], 1
je 0x10063470
push eax
push dword [ecx + 0x3c]
mov edx, 0x1001b4a0
push dword [ecx + 0x38]
push 0x60
pop ecx
call fcn.100401e4
mov eax, dword [ebp - 0x2a8]
push eax
jmp 0x100630b5
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x1006348b
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100634e8
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x100634e8
test byte [eax + 0x44], 2
je 0x100634e8
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x100634bd
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 [0x101923c0]
mov edx, 0x1001b4a0
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x61
pop ecx
call fcn.100400e3
push 0
push 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 9
call fcn.10045ee3
push 0
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xa
call fcn.10045ee3
push 0
push 1
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 0xb
call fcn.10045ee3
push 0
push 1
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0xc
call fcn.10045ee3
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2b8], 0
je 0x1006376b
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1006376b
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 [0x101a27b8]
mov ecx, ebx
call esi
mov esi, dword [ebp - 0x2bc]
test eax, eax
je 0x100635d4
push dword [ebp - 0x2b8]
mov ecx, esi
push eax
call fcn.100869c0
mov ebx, eax
test ebx, ebx
jns 0x100635cd
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x100635c7
test byte [ecx + 0x44], 1
je 0x100635c7
push ebx
push dword [ecx + 0x3c]
mov edx, 0x1001b4a0
push dword [ecx + 0x38]
push 0x62
pop ecx
call fcn.100401e4
push ebx
jmp 0x100630b5
mov byte [ebp - 0x2a9], 1
mov ebx, dword [ebp - 0x2a8]
mov eax, 0x1001b54c
cmp dword [ebx + 0xc], 0
jne 0x100635ea
mov eax, 0x1001b56c
push eax
lea edx, [ebx + 0x14]
lea ecx, [ebp - 0x234]
call fcn.100608c4
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x10063612
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10063696
mov eax, dword [ebx + 0x34]
test byte [eax + 0x3c], 0x18
mov eax, dword [ebp - 0x234]
setne cl
cmp dword [ebp - 0x220], 8
jae 0x1006363d
lea eax, [ebp - 0x234]
push ecx
push eax
mov ecx, esi
call fcn.100869c0
mov dword [ebp - 0x2b0], eax
test eax, eax
jns 0x10063696
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x1006367e
test byte [ecx + 0x44], 1
je 0x1006367e
push eax
push dword [ecx + 0x3c]
mov edx, 0x1001b4a0
push dword [ecx + 0x38]
push 0x63
pop ecx
call fcn.100401e4
mov eax, dword [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
jmp 0x100638b3
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 [0x101a27b8]
mov ecx, dword [ebp - 0x2b0]
call ebx
test eax, eax
je 0x10063713
push dword [ebp - 0x2b8]
mov ecx, esi
push eax
call fcn.100869c0
mov ebx, eax
test ebx, ebx
jns 0x1006370f
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x10063709
test byte [ecx + 0x44], 1
je 0x10063709
push ebx
push dword [ecx + 0x3c]
mov edx, 0x1001b4a0
push dword [ecx + 0x38]
push 0x64
pop ecx
call fcn.100401e4
push ebx
jmp 0x1006367f
mov al, 1
jmp 0x10063719
mov al, byte [ebp - 0x2a9]
test al, al
jne 0x1006374e
mov eax, dword [0x101923c0]
mov esi, 0x80070002
cmp eax, 0x101923c0
je 0x10063748
test byte [eax + 0x44], 1
je 0x10063748
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x65
pop ecx
call fcn.100401e4
push esi
jmp 0x1006367f
push 0
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xe
call fcn.10045ee3
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 0x1001ba40
push dword [ebx + 0x30]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
cmp eax, 2
je 0x100637b0
test eax, eax
jne 0x100637e3
mov eax, dword [ebp - 0x2a8]
cmp dword [ebp - 0x2c0], eax
je 0x100637e3
test edi, edi
je 0x100637cc
mov eax, dword [edi]
push edi
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x101a27b8]
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.10062875
mov eax, dword [ebp - 0x26c]
xor ebx, ebx
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x25c], ebx
jae 0x10063800
lea eax, [ebp - 0x26c]
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x25c], ecx
je 0x1006382d
cmp dword [ebp - 0x258], 8
mov eax, dword [ebp - 0x26c]
jae 0x10063826
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], 0x10
call fcn.10045ee3
push esi
mov byte [ebp - 4], 0x11
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 4], 0x13
test edi, edi
je 0x10063872
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101a27b8]
call esi
mov dword [ebp - 0x2b4], ebx
or dword [ebp - 4], 0xffffffff
call fcn.10163e8e
ret
mov ecx, dword [0x101923c0]
cmp ecx, edi
je 0x100638a0
test byte [ecx + 0x44], 1
je 0x100638a0
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001b4a0
push dword [ecx + 0x38]
push 0x57
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x2b4]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3