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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234d165
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.12212020
test eax, eax
jne 0x122a4c07
mov ecx, dword [ebp - 0x70]
add ecx, 4
call fcn.12212010
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x122a4c05
push 0
mov ecx, dword [ebp - 0x70]
add ecx, 4
call fcn.12212010
push eax
call fcn.122e7660
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x122a4b9f
mov eax, dword [0x12399f3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x12399f40]
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 0x122a4b30
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x70]
add ecx, 4
call fcn.12212010
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x4c], eax
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x122a4980
lea ecx, [ebp - 0x54]
call fcn.122a7faa
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 0x12399fdc
push 0xffffffffffffffff
push 0x123af974
call fcn.122a118e
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.122a7fd1
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 0x122a49d1
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 4
jge 0x122a4b30
cmp dword [ebp - 0x50], 0
je 0x122a49f3
mov edx, dword [ebp - 0x44]
push edx
push 0
mov eax, dword [ebp - 0x50]
push eax
call fcn.122ca640
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 0x122a4a8d
cmp dword [ebp - 0x50], 0
je 0x122a4a34
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.122ca6a6
add esp, 4
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.122ca698
add esp, 4
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0
jne 0x122a4a54
jmp 0x122a4b30
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.122ca640
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 0x122a4b2b
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x44]
ja 0x122a4b2b
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.12212010
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x122a4ad3
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x122a4b2b
lea ecx, [ebp - 0x58]
call fcn.122a7faa
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 0x1239a080
push 0xffffffffffffffff
push 0x123af974
call fcn.122a118e
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.122a7fd1
jmp 0x122a49c8
cmp dword [ebp - 0x24], 0
jne 0x122a4b9d
mov ecx, dword [ebp - 0x70]
add ecx, 4
call fcn.12212010
push eax
call fcn.122ca390
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x122a4b9d
lea ecx, [ebp - 0x60]
call fcn.122a7faa
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 0x1239a118
push 0xffffffffffffffff
push 0x123af974
call fcn.122a118e
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.122a7fd1
jmp 0x122a4c05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x122a4bb5
mov dword [ebp - 0x10], 3
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x122a4c05
lea ecx, [ebp - 0x64]
call fcn.122a7faa
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 0x1239a19c
push 0xffffffffffffffff
push 0x123af974
call fcn.122a118e
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.122a7fd1
jmp 0x122a4c0e
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