Function at 0x412cc0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x45b118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.0042ae70
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x412d08
push 0x80004005
call fcn.00405760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], edi
mov eax, dword [ebp + 0x90]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp + 0x90]
lea ecx, [esp + 0x20]
push ecx
push edi
push edi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x2c]
push ecx
push 7
mov ebx, 1
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x412f2f
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x412f2f
push 0xf
push str.D:_A_OICI_GA___
lea ecx, [esp + 0x54]
call fcn.00405350
mov edx, dword [esp + 0x18]
cmp edx, edi
jne 0x412d8b
xor eax, eax
jmp 0x412d9f
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x412d90
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.004045d0
push ebx
push 0x46696c
lea ecx, [esp + 0x54]
call fcn.004045d0
mov ecx, dword [ebp + 0x3a8]
push 0
push 0
push 0x18b
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x412ed5
call fcn.0042ae70
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x412cfe
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
push edi
lea ecx, [ebp + 0x388]
mov byte [esp + 0x4c], bl
call fcn.0042b7fa
push 0xd
push str._A__0x0004___
lea ecx, [esp + 0x54]
call fcn.004045d0
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.004050d0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x28]
call fcn.00429b00
add esp, 4
mov byte [esp + 0x44], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x54]
call fcn.004045d0
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412e81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push 0x46696c
lea ecx, [esp + 0x54]
call fcn.004045d0
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412eb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x3a8]
push 0
push 0
push 0x18b
push ecx
add edi, ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, eax
jl 0x412dd7
mov esi, dword [esp + 0x4c]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push esi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x412f2d
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x412f2d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ebp, dword [ebp + 0x90]
push 0
push ecx
push edx
push eax
push VariantCopy
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
xor edi, edi
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp eax, edi
je 0x412f40
push eax
call ebx
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x412f4b
push eax
call ebx
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x412f56
push eax
call ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4