Function at 0x100a0c00
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022bdb9
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor al, al
mov dword [ebp - 4], 0
push 0x208
mov dword [ebp - 0x290], eax
mov byte [ebp - 0x259], al
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x100a1440
xorps xmm0, xmm0
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], eax
movups xmmword [ebp - 0x234], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a0ca0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.100895c0
push 0x102363de
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 3
push 0x102363d4
push eax
call fcn.100abc40
xor eax, eax
mov dword [ebp - method.ATL::CSecurityDesc.virtual_0], vtable.ATL::CSecurityDesc.0
add esp, 0xc
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 4
movq qword [ebp - 0x2cc], xmm0
mov dword [ebp - 0x2c4], eax
cmp dword [ebp - 0x224], eax
je 0x100a120a
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.100ae1f0
mov eax, dword [ebp - 0x284]
add esp, 0xc
test eax, eax
je 0x100a0ec0
cmp eax, 1
je 0x100a0ec0
push 0x24
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 0
call fcn.100b9beb
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 0
push eax
push 0x10
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 9
mov dword [ebp - 0x2a4], 7
mov dword [ebp - 0x2a0], 8
mov dword [ebp - 0x2bc], 0x3f800000
call fcn.10090b20
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 0xa
push eax
call fcn.100a06b0
add esp, 4
test al, al
je 0x100a0e36
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.100b6c40
mov eax, dword [ebp - 0x290]
add esp, 0xc
cmp byte [ebp - 0x238], 0
mov ecx, 1
movzx eax, al
cmovne eax, ecx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x290], eax
call fcn.1004c440
mov edx, dword [ebp - 0x2b0]
test edx, edx
je 0x100a0e93
mov ecx, dword [ebp - 0x2a8]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100a0e6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a0e6b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100b9c1b
add esp, 8
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 0
push dword [ebp - 0x2b8]
lea eax, [ebp - 0x2b8]
push eax
call fcn.1008b220
push 0x24
push dword [ebp - 0x2b8]
call fcn.100b9c1b
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
jmp 0x100a11c3
mov dword [ebp - method.ATL::CSecurityDesc.virtual_0], vtable.ATL::CSecurityDesc.0
mov dword [ebp - 0x288], 0
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 5
push eax
call fcn.100a1550
add esp, 4
test al, al
je 0x100a107e
mov eax, dword [ebp - 0x270]
mov eax, dword [eax + 4]
cmp eax, fcn.1009b790
jne 0x100a1032
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x100a1040
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x294], 0
push ecx
lea ecx, [ebp - 0x294]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x100a1017
test dword [ebp - 0x294], 0x8000
jne 0x100a1017
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
push dword [ebp - 0x260]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorGroup]
push dword [ebp - 0x264]
call esi
add esp, 4
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
cmp dword [ebp - 0x258], 0
je 0x100a0fcd
push dword [ebp - 0x268]
call esi
add esp, 4
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
cmp dword [ebp - 0x258], 0
je 0x100a101d
push dword [ebp - 0x280]
call esi
add esp, 4
push dword [ebp - 0x26c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x26c], eax
jmp 0x100a1046
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [ebp - 0x26c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x26c], eax
jmp 0x100a1046
lea ecx, [ebp - 0x270]
call eax
mov eax, dword [ebp - 0x26c]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0x288]
test ecx, ecx
je 0x100a1062
push ecx
lea ecx, [ebp - 0x270]
call fcn.1009c8f0
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x27c], 0xc
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], 0
jmp 0x100a1084
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [ebp - 0x220], 7
lea ecx, [ebp - 0x27c]
lea eax, [ebp - 0x234]
cmova eax, dword [ebp - 0x234]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100a14bc
mov eax, dword [ebp - 0x288]
mov byte [ebp - 0x290], 1
mov dword [ebp - method.ATL::CSecurityDesc.virtual_0], vtable.ATL::CSecurityDesc.0
test eax, eax
je 0x100a11c3
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x298], 0
push ecx
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x100a11b8
test dword [ebp - 0x298], 0x8000
jne 0x100a11b8
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
push dword [ebp - 0x280]
call esi
add esp, 4
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorGroup]
push dword [ebp - 0x268]
call esi
add esp, 4
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
cmp dword [ebp - 0x254], 0
je 0x100a1183
push dword [ebp - 0x264]
call esi
add esp, 4
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
cmp dword [ebp - 0x254], 0
je 0x100a11b8
push dword [ebp - 0x260]
call esi
add esp, 4
push dword [ebp - 0x288]
call esi
add esp, 4
cmp dword [ebp - 0x220], 7
lea eax, [ebp - 0x234]
cmova eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100a1202
or eax, 6
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x220], 7
push eax
cmova ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x26c]
jmp 0x100a1210
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - method.ATL::CSecurityDesc.virtual_0], vtable.ATL::CSecurityDesc.0
test eax, eax
je 0x100a1322
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x29c], 0
push ecx
lea ecx, [ebp - 0x29c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x100a130d
test dword [ebp - 0x29c], 0x8000
jne 0x100a130d
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
push dword [ebp - 0x280]
call esi
add esp, 4
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorGroup]
push dword [ebp - 0x268]
call esi
add esp, 4
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
cmp dword [ebp - 0x254], 0
je 0x100a12d8
push dword [ebp - 0x264]
call esi
add esp, 4
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
cmp dword [ebp - 0x254], 0
je 0x100a130d
push dword [ebp - 0x260]
call esi
add esp, 4
push dword [ebp - 0x26c]
call esi
add esp, 4
mov dword [ebp - 0x26c], 0
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x100a1364
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100a135a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a135a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100b9c1b
add esp, 8
mov eax, dword [ebp - 0x290]
jmp 0x100a1424
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret
push 1
lea ecx, [ebp - 0x37c]
call fcn.100846c0
lea eax, [ebp - 0x37c]
mov byte [ebp - 4], 1
push 0x102370d0
push eax
call fcn.10082bb0
add esp, 8
mov ecx, eax
push 0x100829b0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push esi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
push 0x102b1b94
push eax
call fcn.10082bb0
add esp, 8
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x37c]
push eax
call fcn.10082970
push eax
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 2
call fcn.100831f0
push 0x102ca4c4
lea eax, [ebp - 0x2d8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 1
lea ecx, [ebp - 0x37c]
call fcn.100846c0
lea eax, [ebp - 0x37c]
mov byte [ebp - 4], 6
push str.Failed_to_create_directory__0x
push eax
call fcn.10082bb0
add esp, 8
mov ecx, eax
push 0x100829b0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x102b1b94
push eax
call fcn.10082bb0
add esp, 8
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x37c]
push eax
call fcn.10082970
push eax
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 7
call fcn.100831f0
push 0x102ca4c4
lea eax, [ebp - 0x2e4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3