Function at 0x1001c0c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3e08
call fcn.1001eab0
push ebx
push esi
push edi
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x1001c10b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenDiskFile._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 0x1001c4b5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x3dbc], edx
lea eax, [ebp - 0x3db0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.1000a100
add esp, 0xc
test eax, eax
je 0x1001c14e
mov dword [ebp - 0x3dbc], 0x3dac
lea edx, [ebp - 0x3db0]
mov dword [ebp - 0x3db4], edx
jmp 0x1001c15a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3db4], ecx
mov edx, dword [ebp - 0x3db4]
lea eax, [ebp - 0x3db0]
cmp edx, eax
je 0x1001c1a1
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0x3dac
je 0x1001c1a1
mov edx, dword [ebp + 8]
cmp dword [edx], 0x3ac
je 0x1001c1a1
mov eax, dword [ebp + 8]
cmp dword [eax], 0x6ac
je 0x1001c1a1
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0x2eac
je 0x1001c1a1
mov edx, dword [ebp + 8]
cmp dword [edx], 0x38ac
jne 0x1001c1d8
mov eax, dword [ebp - 0x3db4]
mov esi, dword [eax]
and esi, 0xffff0000
call fcn.1001d3f0
cmp esi, eax
ja 0x1001c1d8
push 8
push 0x10028680
mov ecx, dword [ebp - 0x3db4]
add ecx, 0x190
push ecx
call fcn.1001eae0
add esp, 0xc
test eax, eax
je 0x1001c21a
call fcn.1001d450
push eax
mov edx, dword [ebp - 0x3db4]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenDiskFile._3.__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 0x1001c4b5
push 0x45dc
call fcn.1001ef81
add esp, 4
mov dword [ebp - 0x3db8], eax
cmp dword [ebp - 0x3db8], 0
jne 0x1001c25d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenDiskFile._4.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x10
mov dword [ebp - 4], 8
jmp 0x1001c4b3
push 0x45dc
push 0
mov eax, dword [ebp - 0x3db8]
push eax
call fcn.1001ea50
add esp, 0xc
mov ecx, dword [ebp - 0x3db4]
mov edx, dword [ecx + 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenDiskFile._5.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x14
mov eax, dword [ebp - 0x3db8]
mov dword [eax + 4], 0x3dc0
mov ecx, dword [ebp - 0x3db8]
mov edx, dword [0x100316e0]
mov dword [ecx + 0x3db4], edx
cmp dword [ebp - 0x3dbc], 0x3dac
jae 0x1001c2d4
mov eax, dword [ebp - 0x3dbc]
mov dword [ebp - 0x3dc4], eax
jmp 0x1001c2de
mov dword [ebp - 0x3dc4], 0x3dac
mov ecx, dword [ebp - 0x3dc4]
push ecx
mov edx, dword [ebp - 0x3db4]
push edx
mov eax, dword [ebp - 0x3db8]
add eax, 8
push eax
call fcn.1001e4a0
add esp, 0xc
mov ecx, dword [ebp - 0x3db8]
mov edx, dword [ecx + 0x1b0]
and edx, 1
test edx, edx
jne 0x1001c356
push 0
mov eax, dword [ebp - 0x3db8]
add eax, 0x8c
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1001c356
mov ecx, dword [ebp - 0x3db8]
add ecx, 0x8c
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenDiskFile._7.__08X.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
jmp 0x1001c4b1
push 0
push 0x20000000
push 3
push 0
push 0
mov edx, dword [ebp - 0x3db8]
mov eax, dword [edx + 0x1b0]
and eax, 1
neg eax
sbb eax, eax
and eax, 0xc0000000
add eax, 0x40000000
or eax, 0x80000000
push eax
mov ecx, dword [ebp - 0x3db8]
add ecx, 0x8c
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [ebp - 0x3db8]
mov dword [edx], eax
mov eax, dword [ebp - 0x3db8]
cmp dword [eax], 0xffffffff
jne 0x1001c3d9
mov ecx, dword [ebp - 0x3db8]
add ecx, 0x8c
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenDiskFile._7.__08X.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
jmp 0x1001c4af
mov edx, dword [ebp - 0x3db8]
mov eax, dword [edx + 0x1b4]
mov dword [ebp - 0x3dc0], eax
cmp dword [ebp - 0x3dc0], 0x20
jbe 0x1001c400
mov dword [ebp - 0x3dc8], 0x20
jmp 0x1001c40c
mov ecx, dword [ebp - 0x3dc0]
mov dword [ebp - 0x3dc8], ecx
mov edx, dword [ebp - 0x3dc8]
mov dword [ebp - 0x3dc0], edx
mov eax, dword [ebp - 0x3db8]
add eax, 0x4c
push eax
mov ecx, dword [ebp - 0x3dc0]
shl ecx, 3
push ecx
mov edx, dword [ebp - 0x3db8]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x3db8]
add eax, 0x3dc4
push eax
call fcn.10001480
add esp, 0x10
push str.OpenDiskFile._14.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x3db8]
jmp 0x1001c4b5
cmp dword [ebp - 0x3db8], 0
je 0x1001c488
mov edx, dword [ebp - 0x3db8]
push edx
call fcn.1001ee98
add esp, 4
mov eax, dword [ebp - 4]
push eax
push str.OpenDiskFile._15.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x1001c4b5
jmp 0x1001c470
jmp 0x1001c470
jmp 0x1001c470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4