Function at 0x10014d20
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3e14
call fcn.1001eab0
push ebx
push esi
push edi
mov dword [ebp - 0x3db4], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x10014d6e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EraseDisk._1.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10015344
lea ecx, [ebp - 0x3dac]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.1000a100
add esp, 0xc
test eax, eax
je 0x10014d9c
lea eax, [ebp - 0x3dac]
mov dword [ebp - 0x3db0], eax
jmp 0x10014da8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x3db0], edx
mov eax, dword [ebp - 0x3db0]
lea ecx, [ebp - 0x3dac]
cmp eax, ecx
je 0x10014def
mov edx, dword [ebp + 8]
cmp dword [edx], 0x3dac
je 0x10014def
mov eax, dword [ebp + 8]
cmp dword [eax], 0x3ac
je 0x10014def
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0x6ac
je 0x10014def
mov edx, dword [ebp + 8]
cmp dword [edx], 0x2eac
je 0x10014def
mov eax, dword [ebp + 8]
cmp dword [eax], 0x38ac
jne 0x10014e26
mov ecx, dword [ebp - 0x3db0]
mov esi, dword [ecx]
and esi, 0xffff0000
call fcn.1001d3f0
cmp esi, eax
ja 0x10014e26
push 8
push 0x10028680
mov edx, dword [ebp - 0x3db0]
add edx, 0x190
push edx
call fcn.1001eae0
add esp, 0xc
test eax, eax
je 0x10014e68
call fcn.1001d450
push eax
mov eax, dword [ebp - 0x3db0]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EraseDisk._2.__08X.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x1c
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10015344
push 0
mov ecx, dword [ebp - 0x3db0]
add ecx, 0x84
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x10014ec9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3dbc], eax
mov edx, dword [ebp - 0x3db0]
add edx, 0x84
push edx
mov eax, dword [ebp - 0x3dbc]
push eax
push str.EraseDisk._3.__08X.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
mov ecx, dword [ebp - 0x3dbc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10015344
mov edx, dword [ebp - 0x3db0]
mov dword [edx + 0x1a4], 0x10000
mov eax, dword [ebp - 0x3db0]
mov ecx, dword [eax + 0x19c]
mov dword [ebp - 0x3dc8], ecx
mov edx, dword [ebp - 0x3db0]
mov eax, dword [edx + 0x1a0]
mov dword [ebp - 0x3dc4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
xor eax, eax
mov ecx, dword [ebp - 0x3dc8]
add ecx, edx
mov edx, dword [ebp - 0x3dc4]
adc edx, eax
mov dword [ebp - 0x3dc8], ecx
mov dword [ebp - 0x3dc4], edx
mov eax, dword [ebp - 0x3db0]
mov ecx, dword [eax + 0x1a4]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp - 0x3dc4]
push eax
mov ecx, dword [ebp - 0x3dc8]
push ecx
call fcn.1001e9b0
mov dword [ebp - 0x3dc8], eax
mov dword [ebp - 0x3dc4], edx
mov edx, dword [ebp - 0x3dc8]
add edx, 1
mov eax, dword [ebp - 0x3dc4]
adc eax, 0
mov dword [ebp - 0x3dc8], edx
mov dword [ebp - 0x3dc4], eax
mov ecx, dword [ebp - 0x3dc8]
mov dword [ebp - 0x3dd0], ecx
mov edx, dword [ebp - 0x3dc4]
mov dword [ebp - 0x3dcc], edx
mov eax, dword [ebp - 0x3db0]
mov ecx, dword [eax + 0x1a4]
push ecx
call fcn.1001ef81
add esp, 4
mov dword [ebp - 0x3dd4], eax
cmp dword [ebp - 0x3dd4], 0
jne 0x10014fe0
mov edx, dword [ebp - 0x3db0]
mov eax, dword [edx + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EraseDisk._5.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10015344
mov ecx, dword [ebp - 0x3db0]
mov edx, dword [ecx + 0x1a4]
push edx
push 0
mov eax, dword [ebp - 0x3dd4]
push eax
call fcn.1001ea50
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 0x3db0]
add ecx, 0x84
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3db4], eax
cmp dword [ebp - 0x3db4], 0xffffffff
jne 0x10015089
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3dbc], eax
mov edx, dword [ebp - 0x3db0]
add edx, 0x84
push edx
mov eax, dword [ebp - 0x3dbc]
push eax
push str.EraseDisk._6.__08X.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
mov ecx, dword [ebp - 0x3dd4]
push ecx
call fcn.1001ee98
add esp, 4
mov edx, dword [ebp - 0x3dbc]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10015344
mov dword [ebp - 0x3dc0], 0x64
mov eax, dword [ebp - 0x3dd0]
push eax
mov ecx, dword [ebp - 0x3dcc]
push ecx
mov edx, dword [ebp - 0x3dc8]
push edx
mov eax, dword [ebp - 0x3dc4]
push eax
mov ecx, dword [ebp - 0x3dc0]
push ecx
push str.EraseDisk._7.__d.__08X.__08X.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x20
mov dword [ebp - 0x3db8], 0
push 0
lea edx, [ebp - 0x3db8]
push edx
mov eax, dword [ebp - 0x3db0]
mov ecx, dword [eax + 0x1a4]
push ecx
mov edx, dword [ebp - 0x3dd4]
push edx
mov eax, dword [ebp - 0x3db4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001517b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3dbc], eax
mov ecx, dword [ebp - 0x3db8]
push ecx
mov edx, dword [ebp - 0x3db0]
mov eax, dword [edx + 0x1a4]
push eax
mov ecx, dword [ebp - 0x3dd4]
push ecx
mov edx, dword [ebp - 0x3db4]
push edx
mov eax, dword [ebp - 0x3dbc]
push eax
push str.EraseDisk._8.__08X.__08X.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x20
mov ecx, dword [ebp - 0x3db4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x3dd4]
push edx
call fcn.1001ee98
add esp, 4
mov eax, dword [ebp - 0x3dbc]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10015344
cmp dword [ebp + 0xc], 0
je 0x1001527d
mov ecx, dword [ebp - 0x3dc4]
push ecx
mov edx, dword [ebp - 0x3dc8]
push edx
mov eax, dword [ebp - 0x3dcc]
push eax
mov ecx, dword [ebp - 0x3dd0]
push ecx
call fcn.10013580
add esp, 0x10
mov edx, dword [ebp - 0x3dc0]
sub edx, eax
mov dword [ebp - 0x3db8], edx
cmp dword [ebp - 0x3db8], 0
jle 0x1001527d
mov eax, dword [ebp - 0x3dc0]
sub eax, dword [ebp - 0x3db8]
mov dword [ebp - 0x3dc0], eax
mov ecx, dword [ebp - 0x3dd0]
push ecx
mov edx, dword [ebp - 0x3dcc]
push edx
mov eax, dword [ebp - 0x3dc8]
push eax
mov ecx, dword [ebp - 0x3dc4]
push ecx
mov edx, dword [ebp - 0x3dc0]
push edx
push str.EraseDisk._9.__d.__08X.__08X.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x20
mov eax, dword [ebp - 0x3db8]
mov ecx, dword [ebp - 0x3db8]
sub ecx, 1
mov dword [ebp - 0x3db8], ecx
test eax, eax
je 0x1001527d
push 1
call dword [ebp + 0xc]
add esp, 4
test eax, eax
jne 0x1001527b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EraseDisk._10.__08X.
push 0x100273cc
push 2
call fcn.1000eed0
add esp, 0x10
mov edx, dword [ebp - 0x3db4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3dd4]
push eax
call fcn.1001ee98
add esp, 4
push 0x3e3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10015344
jmp 0x1001520d
mov ecx, dword [ebp - 0x3dc8]
sub ecx, 1
mov edx, dword [ebp - 0x3dc4]
sbb edx, 0
mov dword [ebp - 0x3dc8], ecx
mov dword [ebp - 0x3dc4], edx
mov eax, dword [ebp - 0x3dc8]
or eax, dword [ebp - 0x3dc4]
test eax, eax
jne 0x100150ca
mov ecx, dword [ebp - 0x3db4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x3dd4]
push edx
call fcn.1001ee98
add esp, 4
mov eax, dword [ebp - 0x3db0]
add eax, 0x84
push eax
call fcn.1001ea18
add esp, 4
test eax, eax
je 0x10015328
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3dbc], eax
mov ecx, dword [ebp - 0x3db0]
add ecx, 0x84
push ecx
mov edx, dword [ebp - 0x3dbc]
push edx
push str.EraseDisk._11.__08X.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
mov eax, dword [ebp - 0x3dbc]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10015344
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.1001ea50
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8