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

Disassembly:
push 0x68
mov eax, 0x1016a182
call fcn.101673d5
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 [0x101a77c4]
call esi
mov esi, eax
test esi, esi
jns 0x100613a2
mov ecx, dword [0x101973c0]
cmp ecx, 0x101973c0
je 0x10061779
test byte [ecx + 0x44], 1
jne 0x10061765
jmp 0x10061779
lea eax, [ebp - 0x6c]
push eax
push 4
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x1001b2e0
push dword [ebp - 0x5c]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
mov ebx, eax
test ebx, ebx
je 0x10061434
cmp ebx, 2
je 0x10061434
mov esi, dword [0x101973c0]
cmp esi, 0x101973c0
je 0x100613f7
test byte [esi + 0x44], 1
je 0x100613f7
push ebx
push dword [esi + 0x3c]
mov edx, 0x1001b298
push dword [esi + 0x38]
push 0x1b
pop ecx
call fcn.10149ac2
mov esi, dword [0x101973c0]
test ebx, ebx
jg 0x100613ff
mov edi, ebx
jmp 0x10061408
movzx edi, bx
or edi, 0x80070000
test edi, edi
jns 0x1006143c
cmp esi, 0x101973c0
je 0x1006142e
test byte [esi + 0x44], 1
je 0x1006142e
push edi
push dword [esi + 0x3c]
mov edx, 0x1001b298
push dword [esi + 0x38]
push 0x1c
pop ecx
call fcn.10149ac2
push edi
jmp 0x1006177a
mov esi, dword [0x101973c0]
jmp 0x1006143f
mov edi, dword [ebp - 0x54]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x4c]
push 0
call fcn.10149ac2
mov dword [ebp - 0x64], eax
test ebx, ebx
jne 0x10061481
cmp dword [ebp - 0x60], eax
jne 0x10061481
cmp esi, 0x101973c0
je 0x10061479
test byte [esi + 0x44], 4
je 0x10061479
push dword [esi + 0x3c]
mov edx, 0x1001b298
push dword [esi + 0x38]
push 0x1d
pop ecx
call fcn.10149ac2
call fcn.10167384
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 0x100614a2
mov eax, 0x1001b31c
jmp 0x100614b1
mov eax, 0x1001b344
cmp dword [edi + 0xc], ebx
jne 0x100614b1
mov eax, 0x1001b364
lea edx, [edi + 0x14]
push eax
lea ecx, [ebp - 0x48]
call fcn.10060566
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10149ac2
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.10149ac2
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1006150a
test byte [eax + 0x44], 4
je 0x1006150a
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x100614f6
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax + 0x3c]
mov edx, 0x1001b298
push dword [eax + 0x38]
push 0x1e
pop ecx
call fcn.10149ac2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10061516
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 0x100615b7
mov eax, dword [0x101973c0]
mov ebx, 0x101973c0
cmp eax, ebx
je 0x1006156a
test byte [eax + 0x44], 1
je 0x1006156a
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov eax, dword [0x101973c0]
mov edx, 0x1001b298
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x1f
pop ecx
call fcn.10149ac2
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1006157f
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, ebx
je 0x100615a2
test byte [eax + 0x44], 1
je 0x100615a2
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b298
push dword [eax + 0x38]
push 0x20
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x54]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
jmp 0x10061789
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 0x100616e9
cmp dword [ebp - 0x50], ecx
jne 0x100616e9
mov eax, dword [0x101973c0]
mov ebx, 0x101973c0
cmp eax, ebx
je 0x10061615
test byte [eax + 0x44], 4
je 0x10061615
push dword [ebp - 0x50]
mov edx, 0x1001b298
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x23
pop ecx
call fcn.10149ac2
push 4
lea eax, [ebp - 0x64]
push eax
push 4
push 0x1001b2e0
push dword [edi + 0x30]
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov esi, eax
test esi, esi
je 0x100616a9
mov eax, dword [0x101973c0]
cmp eax, ebx
je 0x10061665
test byte [eax + 0x44], 1
je 0x10061665
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov eax, dword [0x101973c0]
mov edx, 0x1001b298
push esi
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x24
pop ecx
call fcn.10149ac2
mov eax, dword [0x101973c0]
test esi, esi
jle 0x10061674
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x100616a9
cmp eax, ebx
je 0x10061694
test byte [eax + 0x44], 1
je 0x10061694
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b298
push dword [eax + 0x38]
push 0x25
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x68]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
jmp 0x10061789
cmp byte [edi + 0x10], 0
je 0x100616d1
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.10061790
push 0
push 1
push ecx
mov ecx, dword [edi + 0x30]
lea edx, [edi + 0x14]
call fcn.1005fd20
mov ecx, edi
call fcn.10064270
mov eax, dword [ebp - 0x58]
xor ecx, ecx
inc ecx
push 0
push ecx
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
call fcn.10149ac2
jmp 0x10061479
mov eax, dword [0x101973c0]
mov ebx, 0x101973c0
cmp eax, ebx
je 0x10061718
test byte [eax + 0x44], 1
je 0x10061718
push dword [ebp - 0x50]
push ecx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov eax, dword [0x101973c0]
push dword [eax + 0x3c]
push dword [eax + 0x38]
call fcn.10149ac2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10061724
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, dword [0x101973c0]
mov esi, 0x80004005
cmp eax, ebx
je 0x10061753
test byte [eax + 0x44], 1
je 0x10061753
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b298
push dword [eax + 0x38]
push 0x22
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x58]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
jmp 0x10061789
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001b298
push dword [ecx + 0x38]
push 0x1a
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x4c]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3