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

Disassembly:
push 0x60
mov eax, 0x1018d7d5
call fcn.10188e66
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
and dword [eax], 0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x58]
push eax
push ecx
mov ecx, esi
call dword [0x101d880c]
call esi
mov esi, eax
test esi, esi
js 0x10075cb2
lea eax, [ebp - 0x68]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x1001fc34
push dword [ebp - 0x58]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
mov ebx, eax
test ebx, ebx
je 0x1007598c
cmp ebx, 2
je 0x1007598c
mov esi, dword [0x101c33f0]
cmp esi, 0x101c33f0
je 0x1007594f
test byte [esi + 0x44], 1
je 0x1007594f
push ebx
push dword [esi + 0x3c]
mov edx, 0x10020390
push dword [esi + 0x38]
push 0x1b
pop ecx
call fcn.1004a069
mov esi, dword [0x101c33f0]
test ebx, ebx
jg 0x10075957
mov edi, ebx
jmp 0x10075960
movzx edi, bx
or edi, 0x80070000
test edi, edi
jns 0x10075994
cmp esi, 0x101c33f0
je 0x10075986
test byte [esi + 0x44], 1
je 0x10075986
push edi
push dword [esi + 0x3c]
mov edx, 0x10020390
push dword [esi + 0x38]
push 0x1c
pop ecx
call fcn.1004a069
push edi
jmp 0x10075cdb
mov esi, dword [0x101c33f0]
jmp 0x10075997
mov edi, dword [ebp - 0x4c]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x48]
push 0
call fcn.10134a79
mov dword [ebp - 0x60], eax
test ebx, ebx
jne 0x100759d9
cmp dword [ebp - 0x5c], eax
jne 0x100759d9
cmp esi, 0x101c33f0
je 0x100759d1
test byte [esi + 0x44], 4
je 0x100759d1
push dword [esi + 0x3c]
mov edx, 0x10020390
push dword [esi + 0x38]
push 0x1d
pop ecx
call fcn.1004a045
call fcn.10188e03
ret 0xc
xor esi, esi
mov dword [ebp - 0x18], 7
xor eax, eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], esi
cmp byte [edi + 0x10], al
je 0x100759fa
mov eax, 0x1001fcc8
jmp 0x10075a09
mov eax, 0x1001fca8
cmp dword [edi + 0xc], esi
jne 0x10075a09
mov eax, 0x1001fda4
lea edx, [edi + 0x14]
push eax
lea ecx, [ebp - 0x44]
call fcn.1006e1db
push eax
lea ecx, [ebp - 0x2c]
call fcn.1004fb83
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.10052803
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x10075a5b
test byte [eax + 0x44], 4
je 0x10075a5b
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x10075a47
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax + 0x3c]
mov edx, 0x10020390
push dword [eax + 0x38]
push 0x1e
pop ecx
call fcn.1004a093
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10075a67
lea eax, [ebp - 0x2c]
push esi
push 0x8100080
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10075b08
mov eax, dword [0x101c33f0]
mov ebx, 0x101c33f0
cmp eax, ebx
je 0x10075abb
test byte [eax + 0x44], 1
je 0x10075abb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101c33f0]
mov edx, 0x10020390
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x1f
pop ecx
call fcn.1004a069
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10075ad0
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101c33f0]
cmp eax, ebx
je 0x10075af3
test byte [eax + 0x44], 1
je 0x10075af3
push esi
push dword [eax + 0x3c]
mov edx, 0x10020390
push dword [eax + 0x38]
push 0x20
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x4c]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
jmp 0x10075cea
push esi
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x48]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov esi, dword [ebp - 0x54]
je 0x10075c36
cmp esi, dword [ebp + 0xc]
jne 0x10075c36
mov eax, dword [0x101c33f0]
mov ebx, 0x101c33f0
cmp eax, ebx
je 0x10075b62
test byte [eax + 0x44], 4
je 0x10075b62
push esi
push dword [eax + 0x3c]
mov edx, 0x10020390
push dword [eax + 0x38]
push 0x23
pop ecx
call fcn.1004a069
push 4
lea eax, [ebp - 0x60]
push eax
push 4
push 0x1001fc34
push dword [edi + 0x2c]
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov esi, eax
test esi, esi
je 0x10075bf6
mov eax, dword [0x101c33f0]
cmp eax, ebx
je 0x10075bb2
test byte [eax + 0x44], 1
je 0x10075bb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101c33f0]
mov edx, 0x10020390
push esi
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x24
pop ecx
call fcn.1004a2f5
mov eax, dword [0x101c33f0]
test esi, esi
jle 0x10075bc1
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10075bf6
cmp eax, ebx
je 0x10075be1
test byte [eax + 0x44], 1
je 0x10075be1
push esi
push dword [eax + 0x3c]
mov edx, 0x10020390
push dword [eax + 0x38]
push 0x25
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x64]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
jmp 0x10075cea
cmp byte [edi + 0x10], 0
je 0x10075c1e
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.10075cf7
push 0
push 1
push ecx
mov ecx, dword [edi + 0x2c]
lea edx, [edi + 0x14]
call fcn.1006d7e5
mov ecx, edi
call fcn.10078d2a
mov eax, dword [ebp - 0x50]
xor ecx, ecx
inc ecx
push 0
push ecx
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
call fcn.10052803
jmp 0x100759d1
mov eax, dword [0x101c33f0]
mov ebx, 0x101c33f0
cmp eax, ebx
je 0x10075c65
test byte [eax + 0x44], 1
je 0x10075c65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push dword [ebp + 0xc]
push eax
mov eax, dword [0x101c33f0]
push dword [eax + 0x3c]
push dword [eax + 0x38]
call fcn.10075182
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10075c71
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x101c33f0]
mov esi, 0x80004005
cmp eax, ebx
je 0x10075ca0
test byte [eax + 0x44], 1
je 0x10075ca0
push esi
push dword [eax + 0x3c]
mov edx, 0x10020390
push dword [eax + 0x38]
push 0x22
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x50]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
jmp 0x10075cea
mov ecx, dword [0x101c33f0]
cmp ecx, 0x101c33f0
je 0x10075cda
test byte [ecx + 0x44], 1
je 0x10075cda
push esi
push dword [ecx + 0x3c]
mov edx, 0x10020390
push dword [ecx + 0x38]
push 0x1a
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x48]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3