Function at 0x100143a4
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x10054027
call fcn.10052270
sub esp, 0x354
mov al, byte [0x10078b14]
push ebx
push esi
push edi
push 0x40
mov byte [ebp - 0x110], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov ebx, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
cmp ebx, edi
je 0x1001449c
cmp byte [ebx], 0
je 0x1001449c
cmp byte [ebx + 1], 0x3a
jne 0x1001449c
push ebx
call sub.MSVCRT.dll_strlen
cmp eax, 3
pop ecx
jbe 0x1001449c
push dword [ebp + 8]
mov esi, 0x103
lea eax, [ebp - 0x110]
push ebx
push 0x10070058
push esi
push eax
call fcn.10001f81
add esp, 0x14
lea eax, [ebp - 0x110]
push edi
push eax
mov eax, dword [ebp + 0x18]
lea ecx, [eax + 0x388]
call fcn.1000cb43
mov byte [ebp - 0x11c], 0x5c
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], edi
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0x360]
push eax
mov dword [ebp - 4], edi
call fcn.1000bc63
test eax, eax
jne 0x100144ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1001448d
push 1
push ebx
call fcn.10001030
pop ecx
lea eax, [ebp - 0x110]
pop ecx
push eax
lea ecx, [ebp - 0x360]
call fcn.1000bc63
test eax, eax
jne 0x100144ad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x360]
call fcn.1000bd32
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp - 0x360]
call fcn.1000bc2e
test eax, eax
jne 0x10014550
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x360]
push eax
call fcn.1000bb68
push dword [eax]
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
push 0x10070ee4
push esi
push eax
call fcn.10001f81
and byte [ebp - 4], 0
add esp, 0x10
lea ecx, [ebp + 0xc]
call fcn.1000349d
cmp dword [ebp - 0x114], edi
je 0x1001450c
mov eax, dword [ebp - 0x360]
shr eax, 4
and eax, 1
jmp 0x1001450e
xor eax, eax
cmp eax, edi
je 0x10014543
cmp dword [ebp + 0x10], edi
je 0x10014543
push dword [ebp + 0x18]
lea eax, [ebp - 0x110]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.100143a4
push dword [ebp + 0x18]
lea eax, [ebp - 0x110]
push eax
call fcn.1001a108
add esp, 0x1c
jmp 0x10014550
lea eax, [ebp - 0x110]
push eax
call fcn.10013f6c
pop ecx
lea ecx, [ebp - 0x360]
call fcn.1000bd08
test eax, eax
jne 0x100144ad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x360]
call fcn.1000bd32
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, 0x80
push edi
push ebx
call esi
push dword [ebp + 0x18]
push ebx
call fcn.1001a108
pop ecx
test eax, eax
pop ecx
jne 0x100145a9
push 1
push ebx
call fcn.10001030
pop ecx
pop ecx
push edi
push ebx
call esi
push dword [ebp + 0x18]
push ebx
call fcn.1001a108
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.1000516a
lea eax, [ebp - 0x110]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
test eax, eax
pop ecx
je 0x10014640
and byte [eax], 0
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 3
pop ecx
jbe 0x10014640
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyA]
test eax, eax
je 0x10014640
lea eax, [ebp - 0x110]
push edi
push eax
call esi
push dword [ebp + 0x18]
lea eax, [ebp - 0x110]
push eax
call fcn.1001a108
pop ecx
test eax, eax
pop ecx
jne 0x10014640
lea eax, [ebp - 0x110]
push 1
push eax
call fcn.10001030
pop ecx
lea eax, [ebp - 0x110]
pop ecx
push edi
push eax
call esi
push dword [ebp + 0x18]
lea eax, [ebp - 0x110]
push eax
call fcn.1001a108
pop ecx
pop ecx
mov al, 1
jmp 0x1001449e