Function at 0x100193b0
Capabilities:
Delete file
Get common file path
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
push esi
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001a060
push 0x100220ac
mov edx, dword [ebp + 8]
push edx
push str._s_s
push 0x105
lea eax, [ebp - 0x2c8]
push eax
call fcn.1000ba18
add esp, 0x14
mov cx, word [0x100220d0]
mov word [ebp - 0xa8], cx
push 0x7e
push 0
lea edx, [ebp - 0xa6]
push edx
call fcn.1000ba50
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x40
lea ecx, [ebp - 0xa8]
push ecx
call fcn.1000db84
add esp, 0xc
cmp dword [ebp - 0xb4], 1
jne 0x1001944d
mov edx, dword [ebp - 0xb8]
push edx
push str.DpShadow
push str.._s_x
push 0x40
lea eax, [ebp - 0xa8]
push eax
call fcn.1000ba18
add esp, 0x14
call fcn.1001a940
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x100194b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4f8], eax
mov edx, dword [ebp - 0x4f8]
push edx
lea eax, [ebp - 0xa8]
push eax
push 0x100220e8
call fcn.1001c330
add esp, 0xc
call fcn.1001aa50
mov ecx, dword [ebp - 0x4f8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10019e48
call fcn.1001aa50
mov dword [ebp - 0x2f0], 0
push 0
lea edx, [ebp - 0x2f0]
push edx
push 0x18
lea eax, [ebp - 0x2e8]
push eax
push 0
push 0
push 0x70000
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001952d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4fc], eax
mov edx, dword [ebp - 0x4fc]
push edx
push str.SdSetVolumeFlag:_IOCTL_DISK_GET_DRIVE_GEOMETRY_failed__d_
call fcn.1001c330
add esp, 8
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4fc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10019e48
push 0
lea edx, [ebp - 0x2f0]
push edx
push 0x20
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x74004
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100195fc
push 0
lea edx, [ebp - 0x2f0]
push edx
push 0x90
lea eax, [ebp - 0x590]
push eax
push 0
push 0
push 0x70048
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100195ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x594], eax
mov edx, dword [ebp - 0x594]
push edx
push str.SdSetVolumeFlag:_IOCTL_DISK_GET_PARTITION_INFO_failed__d_
call fcn.1001c330
add esp, 8
mov eax, dword [ebp - 0x2d4]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0x2e4]
push edx
mov eax, dword [ebp - 0x2e8]
push eax
call fcn.10016af0
mov ecx, dword [ebp - 0x2d8]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.10016af0
mov ecx, dword [ebp - 0x2dc]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.10016af0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x100195fc
mov edx, dword [ebp - 0x580]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x57c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d4], 0x1000
jbe 0x1001962e
push str.SdSetVolumeFlag:_BytesPerSector_is_not_valid
call fcn.1001c330
add esp, 4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10019e48
mov dword [ebp - 0x2ec], 0x1000
cmp dword [ebp - 0x14], 1
jl 0x10019654
jg 0x10019646
cmp dword [ebp - 0x18], 0
jbe 0x10019654
mov edx, dword [ebp - 0x2ec]
shl edx, 1
mov dword [ebp - 0x2ec], edx
cmp dword [ebp - 0x14], 2
jl 0x10019670
jg 0x10019662
cmp dword [ebp - 0x18], 0
jbe 0x10019670
mov eax, dword [ebp - 0x2ec]
shl eax, 1
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x14], 0x40
jl 0x1001968c
jg 0x1001967e
cmp dword [ebp - 0x18], 0
jbe 0x1001968c
mov ecx, dword [ebp - 0x2ec]
shl ecx, 1
mov dword [ebp - 0x2ec], ecx
cmp dword [ebp - 0x14], 0x80
jl 0x100196ab
jg 0x1001969d
cmp dword [ebp - 0x18], 0
jbe 0x100196ab
mov edx, dword [ebp - 0x2ec]
shl edx, 1
mov dword [ebp - 0x2ec], edx
mov dword [ebp - 0x4f4], 0
mov eax, dword [ebp - 0x2ec]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1001c520
add eax, 8
adc edx, 0
mov dword [ebp - 0x4f4], eax
mov ecx, dword [ebp - 0x4f4]
shr ecx, 3
mov dword [ebp - 0x4f4], ecx
mov edx, dword [ebp - 0x4f4]
add edx, 1
mov dword [ebp - 0x4f4], edx
mov eax, dword [ebp - 0x4f4]
add eax, 0xfff
shr eax, 0xc
shl eax, 0xc
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x2d0], 0x800
cmp dword [ebp - 0x2d4], 0x2000
jbe 0x10019732
mov ecx, dword [ebp - 0x2d4]
shr ecx, 2
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], 0xffffffff
cmp dword [ebp - 0xb4], 1
je 0x10019b1e
call fcn.1001a940
push 0x80
lea edx, [ebp - 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push reloc.OLEAUT32.dll_SysStringLen
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0xffffffff
jne 0x100198e1
mov dword [ebp - 0x7b4], 0
mov ecx, 1
test ecx, ecx
je 0x10019873
cmp dword [ebp - 0x7b4], 0
jne 0x100197cf
lea edx, [ebp - 0x2c8]
push edx
push str._s.bak
lea eax, [ebp - 0x7b0]
push eax
call fcn.1001c2c0
add esp, 0xc
jmp 0x100197f1
mov ecx, dword [ebp - 0x7b4]
push ecx
lea edx, [ebp - 0x2c8]
push edx
push str._s.bak._03d
lea eax, [ebp - 0x7b0]
push eax
call fcn.1001c2c0
add esp, 0x10
lea ecx, [ebp - 0x7b0]
push ecx
lea edx, [ebp - 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1001980b
jmp 0x10019873
mov eax, dword [ebp - 0x7b4]
add eax, 1
mov dword [ebp - 0x7b4], eax
cmp dword [ebp - 0x7b4], 0x3e8
jb 0x1001986e
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x7b0]
push edx
push 0
push 0
lea eax, [ebp - 0x7b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x7b0]
push edx
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x10019873
jmp 0x1001979c
push 0
push reloc.OLEAUT32.dll_SysStringLen
push 4
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x2c8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0xffffffff
jne 0x100198e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7b8], eax
mov edx, dword [ebp - 0x7b8]
push edx
lea eax, [ebp - 0x2c8]
push eax
push str.SdSetVolumeFlag:_CreateFile__s__failed__d_
call fcn.1001c330
add esp, 0xc
call fcn.1001aa50
mov ecx, dword [ebp - 0x7b8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10019e48
call fcn.1001aa50
xor edx, edx
mov word [ebp - 0x59c], dx
push 0
lea eax, [ebp - 0x2f0]
push eax
push 0
push 0
push 2
lea ecx, [ebp - 0x59c]
push ecx
push 0x9c040
mov edx, dword [ebp - 0x2cc]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x598], 0
mov eax, dword [ebp - 0x2ec]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1001c520
shl eax, 2
mov dword [ebp - 0x598], eax
mov ecx, dword [ebp - 0x598]
shr ecx, 0xd
shl ecx, 0xd
mov dword [ebp - 0x598], ecx
mov edx, dword [ebp - 0x598]
add edx, 0x8000
mov dword [ebp - 0x598], edx
mov eax, dword [ebp + 0x10]
and eax, 3
je 0x1001997b
mov ecx, dword [ebp - 0x598]
shl ecx, 1
mov dword [ebp - 0x598], ecx
mov edx, dword [ebp - 0x4f4]
imul edx, edx, 5
mov eax, dword [ebp - 0x598]
lea ecx, [eax + edx + 0x1000]
mov dword [ebp - 0x598], ecx
push 0
push 0
mov edx, dword [ebp - 0x598]
push edx
mov eax, dword [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x2cc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10019a08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7bc], eax
mov edx, dword [ebp - 0x2cc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x7bc]
push eax
lea ecx, [ebp - 0x2c8]
push ecx
push str.SdSetVolumeFlag:_SetEndOfFile__s__failed__d_
call fcn.1001c330
add esp, 0xc
mov edx, dword [ebp - 0x7bc]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10019e48
push 0
push 0
push 0
mov eax, dword [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x2f0]
push ecx
push 0x200
lea edx, [ebp - 0x4f0]
push edx
mov eax, dword [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10019a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c0], eax
mov ecx, dword [ebp - 0x2cc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x7c0]
push edx
lea eax, [ebp - 0x2c8]
push eax
push str.SdSetVolumeFlag:_ReadFile__s__failed__d_
call fcn.1001c330
add esp, 0xc
mov ecx, dword [ebp - 0x7c0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10019e48
mov dword [ebp - 0x4ec], 0
mov dword [ebp - 0x4e4], 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x2cc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2f0]
push eax
push 0x200
lea ecx, [ebp - 0x4f0]
push ecx
mov edx, dword [ebp - 0x2cc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10019b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c4], eax
mov eax, dword [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x7c4]
push ecx
lea edx, [ebp - 0x2c8]
push edx
push 0x10022410
call fcn.1001c330
add esp, 0xc
mov eax, dword [ebp - 0x7c4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10019e48
jmp 0x100558a7
pop esi
mov esp, ebp
pop ebp
ret 0xc