Function at 0x477960
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x759454]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
push eax
mov bl, 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
xor edi, edi
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x100
mov dword [ebp - 0x14], 0
mov word [ebp - 0x10], 0x1000
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x40], xmm0
call fcn.0047fb80
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x4779d9
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e980b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x477c07
cmp dword [ebp - 0x20], edi
je 0x477c07
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1000
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x477bf9
cmp dword [ebp - 0x1c], edi
je 0x477bf9
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x101fffff
push eax
push 1
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 5
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x477a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GC_local_storage:_Failed_to_create_ACL:_error_code__d
jmp 0x477c13
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea esi, [eax + 0x13]
and esi, 0xfffffffc
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 2
mov edi, eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x477ada
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GC_local_storage:_Failed_to_initialize_ACL_for_SACL:_error_code__d
push dword [0x73f2e0]
push 2
push str.AdobeGCServiceUtilityLog
push 0
call fcn.00511a90
mov esi, dword [ebp - 0x18]
jmp 0x477c27
push dword [ebp - 0x1c]
push 1
push 3
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddMandatoryAce]
test eax, eax
jne 0x477b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdobeGCData_folder:_Failed_to_add_mandatory_ACE:_error_code__d
push dword [0x73f2e0]
push 2
push str.AdobeGCServiceUtilityLog
push 0
call fcn.00511a90
mov esi, dword [ebp - 0x18]
jmp 0x477c27
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x477b4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GC_local_storage:_Failed_to_allocate_memory_for_security_descriptor:_error_code__d
push dword [0x73f2e0]
push 2
push str.AdobeGCServiceUtilityLog
push esi
call fcn.00511a90
mov esi, dword [ebp - 0x18]
jmp 0x477c27
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x477b68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GC_local_storage:_Failed_to_initialize_security_descriptor:_error_code__d
jmp 0x477bd4
push 0
push dword [ebp - 0x24]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x477b88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GC_local_storage:_Failed_to_set_DACL:_error_code__d
jmp 0x477bd4
push 0
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
test eax, eax
jne 0x477ba6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GC_local_storage:_Failed_to_set_SACL:_error_code__d
jmp 0x477bd4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0xc
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x477bed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GC_local_storage:_Failed_to_create_GC_local_storage:_error_code__d
push dword [0x73f2e0]
push 2
push str.AdobeGCServiceUtilityLog
push 0
call fcn.00511a90
add esp, 0x18
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x18]
jmp 0x477c2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GC_local_storage:_Error_in_AllocateAndInitializeSid_for_SECURITY_MANDATORY_LOW_RID:_error_code__d
jmp 0x477c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GC_local_storage:_Error_in_AllocateAndInitializeSid_for_SECURITY_WORLD_RID:_error_code__d
push dword [0x73f2e0]
push 2
push str.AdobeGCServiceUtilityLog
push 0
call fcn.00511a90
add esp, 0x18
xor bl, bl
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x477c3a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x477c45
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x477c53
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x477c61
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.00613e50
mov ecx, dword [ebp - 4]
add esp, 4
mov al, bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005e980b
mov esp, ebp
pop ebp
ret