Function at 0x100d9150
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010e2b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100d932c
push ebx
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
or ebx, 0xffffffff
mov esi, eax
cmp ecx, ebx
je 0x100d91fa
call fcn.10029fa0
mov edi, eax
test edi, edi
je 0x100d91f4
cmp edi, ebx
jne 0x100d925c
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 0x1010eac4
and dword [eax], 0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
mov esi, eax
cmp ecx, ebx
je 0x100d9294
call fcn.10029fa0
mov edi, eax
test edi, edi
je 0x100d928e
cmp edi, ebx
jne 0x100d92fa
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 0x1010eac0
mov dword [eax], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
pop edi
mov eax, ebx
pop ebx
jmp 0x100d9371
mov ecx, dword [0x1010e2c0]
mov edx, ebx
call fcn.10032a89
test eax, eax
je 0x100d9198
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov edi, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test edi, edi
jne 0x100d9232
xor edx, edx
call fcn.10032a89
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100d9198
mov edx, edi
call fcn.10032a89
test eax, eax
jne 0x100d924d
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
push edi
jmp 0x100d9227
mov ecx, edi
call fcn.10031ad6
push 0
call sym.ucrtbase.dll__free_base
pop ecx
test edi, edi
je 0x100d9198
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push esi
add edi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
je 0x100d919f
lea eax, [edi + 0x14]
jmp 0x100d91a4
mov ecx, dword [0x1010e2c0]
mov edx, ebx
call fcn.10032a89
test eax, eax
je 0x100d91d4
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov edi, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test edi, edi
jne 0x100d92d0
xor edx, edx
call fcn.10032a89
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100d91d4
mov edx, edi
call fcn.10032a89
test eax, eax
jne 0x100d92eb
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
push edi
jmp 0x100d92c5
mov ecx, edi
call fcn.10031ad6
push 0
call sym.ucrtbase.dll__free_base
pop ecx
test edi, edi
je 0x100d91d4
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push esi
add edi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
je 0x100d91db
lea eax, [edi + 0x10]
jmp 0x100d91e0
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 0x100d934f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.1003779a
or eax, 0xffffffff
jmp 0x100d9371
test byte [ebp + 0xc], 0x80
mov eax, dword [ebp - 0x28]
je 0x100d935d
and eax, 0xfffffffe
jmp 0x100d9360
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 0x100d933d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1005cc20
mov esp, ebp
pop ebp
ret