Function at 0x1001cc10
Capabilities:
Delete file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x84], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
push str.1.__08X.__08X.__s.__s.
push 0x1002cb4c
push 3
call fcn.1000eed0
add esp, 0x1c
cmp dword [ebp + 8], 0
je 0x1001ccaf
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1001e830
add esp, 4
test eax, eax
je 0x1001ccaf
mov edx, dword [ebp + 0x10]
push edx
call fcn.1001e830
add esp, 4
test eax, eax
jne 0x1001ccd2
push 0x1002cb48
push 0x1002cb4c
push 1
call fcn.1000eed0
add esp, 0xc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001d3e5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
cmp dword [edx], 0x3dac
jne 0x1001ccfa
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
and esi, 0xffff0000
call fcn.1001d3f0
cmp esi, eax
jbe 0x1001cd39
call fcn.1001d450
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.3.__08X.__08X.__08X.__08X.
push 0x1002cb4c
push 1
call fcn.1000eed0
add esp, 0x1c
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001d3e5
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1a4]
push eax
push str.4.__d.
push 0x1002cb4c
push 3
call fcn.1000eed0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1a4]
push edx
call fcn.1001ef81
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1001cd99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.5.__08X.
push 0x1002cb4c
push 1
call fcn.1000eed0
add esp, 0x10
mov dword [ebp - 0x14], 8
jmp 0x1001d3e0
push 4
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.1001ea50
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, 0x184
push ecx
push str.6.__s.
push 0x1002cb4c
push 3
call fcn.1000eed0
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1001ce15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.10.__08X.
push 0x1002cb4c
push 1
call fcn.1000eed0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x1001d3db
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80000080
push 2
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1001ce6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.11.__08X.
push 0x1002cb4c
push 1
call fcn.1000eed0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x1001d3d6
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1a0]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x19c]
push edx
push str.12.__08X.__08X.
push 0x1002cb4c
push 3
call fcn.1000eed0
add esp, 0x14
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x19c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1a0]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1a4]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.1001e9b0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x24]
test eax, eax
je 0x1001cf0f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1a4]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.100201b0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x8c]
or eax, dword [ebp - 0x88]
test eax, eax
je 0x1001cf21
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov edx, dword [ebp - 0x24]
adc edx, 0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x18], 0
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1a4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001cf6b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + 0x1a4]
je 0x1001cfaa
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1a4]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.13.__08X.__08X.__08X.__08X.__08X.
push 0x1002cb4c
push 1
call fcn.1000eed0
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x1001d3d1
push 0x40
mov edx, dword [ebp - 0xc]
add edx, 0x44
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.1001e4a0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x84]
xor edx, dword [ecx + 0x44]
mov dword [ebp - 0x80], edx
cmp dword [0x10038c5c], 0
je 0x1001d003
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1ac]
push edx
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
mov edx, dword [0x100316e0]
push edx
call fcn.1000b760
add esp, 0x14
test eax, eax
je 0x1001d038
cmp dword [0x10038c5c], 0
jne 0x1001d074
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1ac]
push edx
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
mov edx, dword [0x100316e0]
push edx
call fcn.1000b5f0
add esp, 0x14
test eax, eax
jne 0x1001d074
mov eax, dword [ebp - 0xc]
add eax, 0x44
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
mov edx, dword [0x100316e0]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DecryptDisk._7.__08X.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x1c
mov dword [ebp - 0x14], 0x7d1
jmp 0x1001d3cc
cmp dword [0x10038c5c], 0
je 0x1001d0a6
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1a4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [0x100316e0]
push edx
call fcn.1000be00
add esp, 0x14
test eax, eax
je 0x1001d0d4
cmp dword [0x10038c5c], 0
jne 0x1001d10d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1a4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [0x100316e0]
push ecx
call fcn.1000bd00
add esp, 0x10
test eax, eax
jne 0x1001d10d
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1a4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.14.__08X.__08X.__08X.__08X.__08X.
push 0x1002cb4c
push 1
call fcn.1000eed0
add esp, 0x1c
mov dword [ebp - 0x14], 0x1770
jmp 0x1001d3c7
cmp dword [0x10038c5c], 0
je 0x1001d12f
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [0x100316e0]
push edx
call fcn.1000b9e0
add esp, 0xc
jmp 0x1001d142
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [0x100316e0]
push ecx
call fcn.1000b8f0
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], 0
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1a4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001d18e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + 0x1a4]
je 0x1001d1cd
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1a4]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.15.__08X.__08X.__08X.__08X.__08X.
push 0x1002cb4c
push 1
call fcn.1000eed0
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x1001d3c2
mov edx, dword [ebp - 0x28]
sub edx, 1
mov eax, dword [ebp - 0x24]
sbb eax, 0
push eax
push edx
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.10013580
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jle 0x1001d24d
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x1001d24d
cmp dword [ebp + 0x14], 0
je 0x1001d24b
push 1
call dword [ebp + 0x14]
add esp, 4
test eax, eax
jne 0x1001d24b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.16.__08X.
push 0x1002cb4c
push 2
call fcn.1000eed0
add esp, 0x10
mov dword [ebp - 0x14], 0x3e3
jmp 0x1001d3bd
jmp 0x1001d202
cmp dword [ebp + 0x14], 0
je 0x1001d280
cmp dword [ebp - 0x1c], 0
je 0x1001d280
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.17.__08X.
push 0x1002cb4c
push 2
call fcn.1000eed0
add esp, 0x10
mov dword [ebp - 0x14], 0x3e3
jmp 0x1001d3b8
mov edx, dword [ebp - 0x84]
add edx, 1
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x28]
sub eax, 1
mov ecx, dword [ebp - 0x24]
sbb ecx, 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x28]
or edx, dword [ebp - 0x24]
test edx, edx
jne 0x1001cf34
mov dword [ebp - 0x20], 1
jmp 0x1001d3b3
cmp dword [ebp + 0x14], 0
je 0x1001d2c9
push 0
call dword [ebp + 0x14]
add esp, 4
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x38], 0
jne 0x1001d2e0
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
test eax, eax
je 0x1001d314
cmp dword [0x10038c5c], 0
je 0x1001d301
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [0x100316e0]
push eax
call fcn.1000b9e0
add esp, 0xc
jmp 0x1001d314
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [0x100316e0]
push edx
call fcn.1000b8f0
add esp, 8
cmp dword [ebp - 4], 0xffffffff
je 0x1001d324
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0xffffffff
je 0x1001d334
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x1001d346
mov edx, dword [ebp - 0x10]
push edx
call fcn.1001ee98
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x1001d36a
cmp dword [ebp - 0xc], 0
je 0x1001d368
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1001d376
push 0x27
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x34], 0
je 0x1001d386
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str.18.__08X.__08X.
push 0x1002ca2c
push 3
call fcn.1000eed0
add esp, 0x14
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
jmp 0x1001d3e5
jmp 0x1001d2d0
jmp 0x1001d2bb
jmp 0x1001d2bb
jmp 0x1001d2bb
jmp 0x1001d2bb
jmp 0x1001d2bb
jmp 0x1001d2bb
jmp 0x1001d2bb
jmp 0x1001d2bb
jmp 0x1001d2bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10