Function at 0x1009b900
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022b568
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
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
mov esi, dword [ebp + 0x20]
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x8c], xmm0
mov dword [ebp - 0x84], 0
call fcn.1008a290
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.100ae1f0
mov eax, dword [ebp - 0x54]
add esp, 0xc
test eax, eax
je 0x1009b98b
cmp eax, 1
je 0x1009b98b
xor bl, bl
jmp 0x1009b98d
mov bl, 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10089a70
test bl, bl
je 0x1009bbec
xor eax, eax
mov dword [ebp - 0x3c], vtable.ATL::CSecurityDesc.0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
cmp ecx, esi
je 0x1009b9d9
call fcn.1009b790
mov eax, dword [esi + 4]
test eax, eax
je 0x1009b9d6
push eax
lea ecx, [ebp - 0x3c]
call fcn.1009c8f0
mov eax, dword [ebp - 0x38]
cmp dword [ebp + 0x1c], 7
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1009bb21
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1008a290
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100ad670
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.10089a70
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x6c], 0
mov dword [ebp - 0x68], 2
mov dword [ebp - 0x74], vtable.ATL::CDacl.0
movups xmmword [ebp - 0x64], xmm0
mov eax, dword [esi + 4]
mov byte [ebp - 4], 5
test eax, eax
je 0x1009bb19
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x1009bb19
cmp dword [ebp - 0x34], 0
lea ecx, [ebp - 0x74]
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 8]
je 0x1009bad1
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x1009bab7
cmp eax, fcn.10086a10
jne 0x1009baaa
call fcn.10086a10
push esi
lea ecx, [ebp - 0x74]
call fcn.100848e0
jmp 0x1009bae5
call eax
push esi
lea ecx, [ebp - 0x74]
call fcn.100848e0
jmp 0x1009bae5
cmp eax, fcn.10086a10
jne 0x1009bac9
call fcn.10086a10
mov byte [ebp - 0x6c], 1
jmp 0x1009bae5
call eax
mov byte [ebp - 0x6c], 1
jmp 0x1009bae5
cmp eax, fcn.10086a10
jne 0x1009badf
call fcn.10086a10
jmp 0x1009bae1
call eax
mov byte [ebp - 0x6c], 0
cmp dword [ebp + 0x1c], 7
lea esi, [ebp + 8]
jbe 0x1009baf5
mov esi, dword [ebp + 8]
test esi, esi
je 0x1009bb19
lea ecx, [ebp - 0x74]
call fcn.100855e0
push 0
push eax
push 0
push 0
push reloc.WS2_32.dll_connect
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x74]
call fcn.10086530
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.ATL::CSecurityDesc.0
test eax, eax
je 0x1009bbec
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x4c], 0
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x1009bbde
test dword [ebp - 0x4c], 0x8000
jne 0x1009bbde
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
push dword [ebp - 0x78]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorGroup]
push dword [ebp - 0x7c]
call esi
add esp, 4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
cmp dword [ebp - 0x34], 0
je 0x1009bbb9
push dword [ebp - 0x80]
call esi
add esp, 4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
cmp dword [ebp - 0x34], 0
je 0x1009bbe4
push dword [ebp - 0x50]
call esi
add esp, 4
jmp 0x1009bbe4
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [ebp - 0x38]
call esi
add esp, 4
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x1009bcdb
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1009bcd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1009bcd1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 1
lea ecx, [ebp - 0x128]
call fcn.100846c0
push 0x102b2a98
push str.CreateDirWithSecurity
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 7
push 0x10236b7c
push eax
call fcn.10082bb0
add esp, 8
push eax
call fcn.10082bb0
add esp, 8
push eax
call fcn.10082bb0
mov ecx, dword [ebp - 0x90]
add esp, 8
mov esi, eax
mov edx, dword [ecx]
call dword [edx + 4]
push eax
push esi
call fcn.10082bb0
add esp, 8
mov ecx, eax
push 0x100974e0
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::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x128]
call fcn.10082970
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 8
seta cl
test cl, cl
je 0x1009bcaf
mov eax, dword [eax]
push eax
call fcn.100a2540
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.100895a0
lea ecx, [ebp - 0x128]
call fcn.10082f70
mov eax, 0x1009bbec
ret
push ecx
push edx
call fcn.100b9c1b
add esp, 8
xor al, al
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