Function at 0x100cfdf0
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x101042d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x100cff9a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
xor edi, edi
mov dword [ebp - 0x2c], eax
cmp ecx, 0xffffffff
je 0x100cfe5d
call fcn.100290c0
mov ebx, eax
test ebx, ebx
je 0x100cfe57
cmp ebx, 0xffffffff
jne 0x100cfebc
mov ebx, edi
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
jne 0x100cfecf
mov ebx, 0x101049f8
jmp 0x100cfed2
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x100cfe43
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [0x101042e4]
test ebx, ebx
jne 0x100cfe93
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100cfe43
mov edx, ebx
call fcn.1003b000
test eax, eax
jne 0x100cfeae
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push ebx
jmp 0x100cfe8b
mov ecx, ebx
call fcn.1003e545
push edi
call sym.ucrtbase.dll__free_base
pop ecx
imul eax, dword [ebp - 0x2c], 0x364
add eax, ebx
mov dword [ebp - 0x2c], eax
mov ebx, eax
jmp 0x100cfe45
add ebx, 0x14
mov dword [ebx], edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [ebp - 0x2c], eax
cmp ecx, 0xffffffff
je 0x100cff0d
call fcn.100290c0
mov ebx, eax
test ebx, ebx
je 0x100cff07
cmp ebx, 0xffffffff
je 0x100cff75
jmp 0x100cff6c
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x100cff75
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [0x101042e4]
test ebx, ebx
jne 0x100cff43
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100cff75
mov edx, ebx
call fcn.1003b000
test eax, eax
jne 0x100cff5e
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push ebx
jmp 0x100cff3b
mov ecx, ebx
call fcn.1003e545
push edi
call sym.ucrtbase.dll__free_base
pop ecx
imul edi, dword [ebp - 0x2c], 0x364
add edi, ebx
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
jne 0x100cff87
mov edi, 0x101049f4
jmp 0x100cff8a
add edi, 0x10
mov dword [edi], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
or eax, 0xffffffff
jmp 0x100cffdc
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
test eax, eax
jne 0x100cffba
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.10042889
jmp 0x100cff95
test byte [ebp + 0xc], 0x80
mov eax, dword [ebp - 0x28]
je 0x100cffc8
and eax, 0xfffffffe
jmp 0x100cffcb
or eax, 1
push eax
push esi
mov dword [ebp - 0x28], eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
je 0x100cffab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10068820
leave
ret