Function at 0x1002919d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc425
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x70]
add ecx, 4
call fcn.10003710
test eax, eax
jne 0x10029543
mov ecx, dword [ebp - 0x70]
add ecx, 4
call fcn.10003750
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10029541
push 0
mov ecx, dword [ebp - 0x70]
add ecx, 4
call fcn.10003750
push eax
call fcn.10078490
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100294db
mov eax, dword [0x100de76c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x100de770]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x10]
add eax, 0x41
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x1002946c
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x70]
add ecx, 4
call fcn.10003750
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x4c], eax
mov ecx, 0x100f2400
call fcn.10022333
test eax, eax
je 0x100292bc
lea ecx, [ebp - 0x54]
call fcn.1001a95a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push str.CTsbFolderMonitor::MakeDir_SetFileAttributesW__lu__attr_0x_08X__Folder__s_
push 0x100de80c
push 0xffffffffffffffff
push 0x100f2404
call fcn.1002702e
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.1001a981
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 8
mov dword [ebp - 0x40], 0
jmp 0x1002930d
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 4
jge 0x1002946c
cmp dword [ebp - 0x50], 0
je 0x1002932f
mov edx, dword [ebp - 0x44]
push edx
push 0
mov eax, dword [ebp - 0x50]
push eax
call fcn.1004e290
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp + ecx*4 - 0x38]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x44]
jbe 0x100293c9
cmp dword [ebp - 0x50], 0
je 0x10029370
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.1004e2f6
add esp, 4
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.1004e2e8
add esp, 4
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0
jne 0x10029390
jmp 0x1002946c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
push 0
mov edx, dword [ebp - 0x50]
push edx
call fcn.1004e290
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + eax*4 - 0x38]
push ecx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x10029467
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x44]
ja 0x10029467
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + edx*4 - 0x38]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 4
call fcn.10003750
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x1002940f
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov ecx, 0x100f2400
call fcn.10022333
test eax, eax
je 0x10029467
lea ecx, [ebp - 0x58]
call fcn.1001a95a
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + edx*4 - 0x38]
push eax
push str.CTsbFolderMonitor::MakeDir_SetFileSecurityW_type__lu____lu__Folder__s_
push 0x100de8b0
push 0xffffffffffffffff
push 0x100f2404
call fcn.1002702e
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.1001a981
jmp 0x10029304
cmp dword [ebp - 0x24], 0
jne 0x100294d9
mov ecx, dword [ebp - 0x70]
add ecx, 4
call fcn.10003750
push eax
call fcn.1004dfe0
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, 0x100f2400
call fcn.10022333
test eax, eax
je 0x100294d9
lea ecx, [ebp - 0x60]
call fcn.1001a95a
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x5c]
push eax
push str.CTsbFolderMonitor::MakeDir_SetFileRights_Everyone__lu__Folder__s_
push 0x100de948
push 0xffffffffffffffff
push 0x100f2404
call fcn.1002702e
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.1001a981
jmp 0x10029541
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100294f1
mov dword [ebp - 0x10], 3
mov ecx, 0x100f2400
call fcn.10022333
test eax, eax
je 0x10029541
lea ecx, [ebp - 0x64]
call fcn.1001a95a
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 4]
push eax
push str.CTsbFolderMonitor::MakeDir_Failed__Folder__s__error__d_
push 0x100de9cc
push 0xffffffffffffffff
push 0x100f2404
call fcn.1002702e
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.1001a981
jmp 0x1002954a
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret