Function at 0x10061672
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x68
mov eax, 0x10166ae2
call fcn.10163edf
mov edi, ecx
mov dword [ebp - 0x54], edi
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
push edx
and dword [eax], 0
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x101a27b8]
call esi
mov esi, eax
test esi, esi
js 0x10061a75
lea eax, [ebp - 0x6c]
push eax
push 4
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x1001b4e8
push dword [ebp - 0x5c]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
mov ebx, eax
test ebx, ebx
je 0x10061744
cmp ebx, 2
je 0x10061744
mov esi, dword [0x101923c0]
cmp esi, 0x101923c0
je 0x10061707
test byte [esi + 0x44], 1
je 0x10061707
push ebx
push dword [esi + 0x3c]
mov edx, 0x1001b4a0
push dword [esi + 0x38]
push 0x1b
pop ecx
call fcn.100401e4
mov esi, dword [0x101923c0]
test ebx, ebx
jg 0x1006170f
mov edi, ebx
jmp 0x10061718
movzx edi, bx
or edi, 0x80070000
test edi, edi
jns 0x1006174c
cmp esi, 0x101923c0
je 0x1006173e
test byte [esi + 0x44], 1
je 0x1006173e
push edi
push dword [esi + 0x3c]
mov edx, 0x1001b4a0
push dword [esi + 0x38]
push 0x1c
pop ecx
call fcn.100401e4
push edi
jmp 0x10061a9e
mov esi, dword [0x101923c0]
jmp 0x1006174f
mov edi, dword [ebp - 0x54]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x4c]
push 0
call fcn.10109f5b
mov dword [ebp - 0x64], eax
test ebx, ebx
jne 0x10061791
cmp dword [ebp - 0x60], eax
jne 0x10061791
cmp esi, 0x101923c0
je 0x10061789
test byte [esi + 0x44], 4
je 0x10061789
push dword [esi + 0x3c]
mov edx, 0x1001b4a0
push dword [esi + 0x38]
push 0x1d
pop ecx
call fcn.10040067
call fcn.10163e8e
ret 0xc
xor ebx, ebx
mov dword [ebp - 0x18], 7
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ebx
cmp byte [edi + 0x10], al
je 0x100617b2
mov eax, 0x1001b524
jmp 0x100617c1
mov eax, 0x1001b54c
cmp dword [edi + 0xc], ebx
jne 0x100617c1
mov eax, 0x1001b56c
lea edx, [edi + 0x14]
push eax
lea ecx, [ebp - 0x48]
call fcn.100608c4
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10045157
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.10045ee3
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1006181a
test byte [eax + 0x44], 4
je 0x1006181a
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x10061806
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x1e
pop ecx
call fcn.10040085
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10061826
lea eax, [ebp - 0x2c]
push ebx
push 0x8100080
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100618c7
mov eax, dword [0x101923c0]
mov ebx, 0x101923c0
cmp eax, ebx
je 0x1006187a
test byte [eax + 0x44], 1
je 0x1006187a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001b4a0
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x1f
pop ecx
call fcn.100401e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1006188f
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101923c0]
cmp eax, ebx
je 0x100618b2
test byte [eax + 0x44], 1
je 0x100618b2
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x20
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x54]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
jmp 0x10061aad
and dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
test esi, esi
je 0x100619f9
cmp dword [ebp - 0x50], ecx
jne 0x100619f9
mov eax, dword [0x101923c0]
mov ebx, 0x101923c0
cmp eax, ebx
je 0x10061925
test byte [eax + 0x44], 4
je 0x10061925
push dword [ebp - 0x50]
mov edx, 0x1001b4a0
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x23
pop ecx
call fcn.100401e4
push 4
lea eax, [ebp - 0x64]
push eax
push 4
push 0x1001b4e8
push dword [edi + 0x30]
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov esi, eax
test esi, esi
je 0x100619b9
mov eax, dword [0x101923c0]
cmp eax, ebx
je 0x10061975
test byte [eax + 0x44], 1
je 0x10061975
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001b4a0
push esi
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x24
pop ecx
call fcn.1004026c
mov eax, dword [0x101923c0]
test esi, esi
jle 0x10061984
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x100619b9
cmp eax, ebx
je 0x100619a4
test byte [eax + 0x44], 1
je 0x100619a4
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x25
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x68]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
jmp 0x10061aad
cmp byte [edi + 0x10], 0
je 0x100619e1
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.10061ab4
push 0
push 1
push ecx
mov ecx, dword [edi + 0x30]
lea edx, [edi + 0x14]
call fcn.1006009b
mov ecx, edi
call fcn.100645bf
mov eax, dword [ebp - 0x58]
xor ecx, ecx
inc ecx
push 0
push ecx
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
call fcn.10045ee3
jmp 0x10061789
mov eax, dword [0x101923c0]
mov ebx, 0x101923c0
cmp eax, ebx
je 0x10061a28
test byte [eax + 0x44], 1
je 0x10061a28
push dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101923c0]
push dword [eax + 0x3c]
push dword [eax + 0x38]
call fcn.10060f2b
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10061a34
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x101923c0]
mov esi, 0x80004005
cmp eax, ebx
je 0x10061a63
test byte [eax + 0x44], 1
je 0x10061a63
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x22
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x58]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
jmp 0x10061aad
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x10061a9d
test byte [ecx + 0x44], 1
je 0x10061a9d
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001b4a0
push dword [ecx + 0x38]
push 0x1a
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x4c]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3