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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012526
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.10002540
mov eax, dword [0x1001a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1020], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x1028], eax
mov dword [ebp - 0x1018], 0
call fcn.10001430
lea eax, [ebp - 0x1018]
mov dword [ebp - 4], 0
push eax
call fcn.10001d80
add esp, 4
or edi, 0xffffffff
test eax, eax
je 0x10001cd3
push dword [ebp - 0x1018]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
mov esi, dword [ebp - 0x1018]
push esi
call ebx
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, edi
je 0x10001cd3
mov eax, dword [ebp - 0x1020]
mov esi, dword [eax]
mov ecx, dword [eax + 4]
test esi, esi
je 0x10001c1f
test ecx, ecx
jle 0x10001c1f
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 0x1024], eax
and ecx, 0x80000fff
jns 0x10001b80
dec ecx
or ecx, 0xfffff000
inc ecx
xor edi, edi
mov dword [ebp - 0x1020], ecx
mov dword [ebp - 0x101c], 0
test eax, eax
jle 0x10001bea
nop word [eax + eax]
push 0x1000
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.10003630
add esp, 0xc
lea eax, [ebp - 0x101c]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001c1c
inc edi
add esi, 0x1000
cmp edi, dword [ebp - 0x1024]
jl 0x10001ba0
mov ecx, dword [ebp - 0x1020]
test ecx, ecx
jle 0x10001c1c
push ecx
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.10003630
add esp, 0xc
lea eax, [ebp - 0x101c]
push 0
push eax
push dword [ebp - 0x1020]
lea eax, [ebp - 0x1010]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
or edi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1014], 0
call fcn.10001430
lea eax, [ebp - 0x1014]
mov byte [ebp - 4], 1
push eax
call fcn.10001d80
add esp, 4
push dword [ebp - 0x1014]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [ebp - 0x1018]
test edx, edx
je 0x10001cae
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x10001cb4
push eax
push 0x10001740
push 0
push edx
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
test eax, eax
je 0x10001cae
mov ecx, dword [ebp - 0x1028]
lea eax, [ebp - 0x1014]
push eax
call fcn.10001540
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1014]
mov esi, 1
jmp 0x10001cb6
mov eax, dword [ebp - 0x1014]
xor esi, esi
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10001cd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10001cd5
xor esi, esi
mov eax, dword [ebp - 0x1018]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x10001cf7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100024fb
mov esp, ebp
pop ebp
ret 4