Function at 0x407d90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd4
mov dword [ebp - 0xe0], edx
mov ebx, ecx
lea edi, [ebp - 0xc8]
mov eax, dword [0x43200c]
mov edx, ebx
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp + 0xc], 0
mov dword [edi], 2
sete al
xor ecx, ecx
xor esi, esi
dec ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov ecx, edi
push eax
call fcn.00409340
add esp, 4
mov eax, dword [edi + 4]
test al, 0x10
je 0x407e18
cmp eax, 0xffffffff
je 0x407e18
cmp dword [ebp + 0xc], 0
jne 0x407e18
mov ecx, eax
and ecx, 0x400
jne 0x407e18
mov ecx, dword [ebp - 0xc8]
cmp ecx, 1
je 0x407e18
cmp eax, 0xffffffff
je 0x407e18
xor edi, edi
cmp ecx, 2
jne 0x4081af
lea edi, [ebp - 0x9c]
mov eax, 0
mov ecx, 0x18
mov dword [ebp - 0xdc], ebx
lea ebx, [ebp - 0xb0]
mov dword [edi - 0xc], esi
mov dword [edi - 8], esi
mov dword [edi - 4], esi
mov dword [edi + 0x60], esi
mov dword [edi + 0x64], esi
mov dword [edi - 0x14], esi
mov word [edi - 0x10], 0x500
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x24]
mov dword [edi], esi
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x221
push 0x20
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov esi, eax
mov eax, dword [ebx + 8]
mov ecx, dword [edi]
test eax, eax
mov dword [ebx + 8], ecx
je 0x407e7f
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x407fee
mov edx, dword [ebp - 0x24]
mov eax, 2
lea esi, [ebp - 0xd0]
xor ecx, ecx
mov dword [ebp - 0x9c], 0x1f01ff
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 3
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], eax
mov dword [esi], ecx
mov dword [ebp - 0x80], edx
push esi
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push eax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov eax, dword [ebp - 0xa4]
mov ecx, dword [esi]
test eax, eax
mov dword [ebp - 0xa4], ecx
je 0x407ef9
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x407fd8
mov eax, 2
xor ecx, ecx
mov dword [ebp - 0x7c], 0x1f01ff
lea esi, [ebp - 0xd8]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 3
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xd0]
mov dword [esi], ecx
mov dword [ebp - 0x60], eax
push esi
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x12
push 1
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov eax, dword [ebp - 0xa0]
mov ecx, dword [esi]
test eax, eax
mov dword [ebp - 0xa0], ecx
je 0x407f64
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x407fd8
mov edx, dword [ebp - 0xd8]
mov eax, 3
lea esi, [ebp - 0xb4]
xor ecx, ecx
mov dword [ebp - 0x5c], 0x1f01ff
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 1
mov dword [esi], ecx
mov dword [ebp - 0x40], edx
push esi
push ecx
lea ecx, [ebp - 0x9c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebx, eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [esi]
test eax, eax
mov dword [ebp - 0x3c], ecx
je 0x407fc0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x4080d8
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
jmp 0x408008
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x408008
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x408008
movzx edi, di
or edi, 0x80070000
jmp 0x408132
mov esi, dword [ebp - 0xdc]
test edi, edi
js 0x408132
cmp dword [ebp + 0xc], 0
jne 0x408259
lea edx, [ebp - 0xc8]
mov ecx, esi
push 0
call fcn.00408630
add esp, 4
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
test eax, eax
jne 0x408132
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408124
xor eax, eax
lea edi, [ebp - 0x24]
mov edx, esi
dec eax
mov dword [edi], 2
mov ecx, edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
push 1
call fcn.00409340
add esp, 4
mov eax, dword [edi + 4]
test al, 0x10
je 0x4080a8
cmp eax, 0xffffffff
je 0x4080a8
bt eax, 0xa
jb 0x4080a8
mov ecx, dword [ebp - 0x24]
cmp ecx, 1
je 0x4080a8
cmp eax, 0xffffffff
je 0x4080a8
xor edi, edi
cmp ecx, 2
jne 0x4080ad
mov edi, 0x800700b7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x4080c4
push eax
call fcn.0040d78d
add esp, 4
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x408132
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408132
push 0x14
call fcn.0040d784
add esp, 4
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x4081f8
push ecx
call fcn.0040d78d
add esp, 4
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0xdc]
test eax, eax
jne 0x4081fe
mov edi, 0x8007000e
jmp 0x40800e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], 0
test eax, eax
je 0x408149
push eax
call fcn.0040d78d
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x40815e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
test eax, eax
je 0x408179
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
test eax, eax
je 0x408194
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
test eax, eax
je 0x4081af
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xb8], 0
test eax, eax
je 0x4081cc
push eax
call fcn.0040d78d
add esp, 4
mov eax, dword [ebp - 0xc0]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4081e1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dec1
mov eax, edi
add esp, 0xd4
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp - 0xdc]
mov dword [ebp - 0x34], eax
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x408240
push 0
push dword [ebp - 0xb4]
push 1
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x408240
mov dword [ebp - 0x30], 0xc
xor edi, edi
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
jmp 0x40800e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x40800e
xor eax, eax
lea ecx, [ebp - 0xd0]
mov edx, esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
call fcn.00408890
mov edi, eax
test eax, eax
js 0x4083bc
cmp dword [ebp - 0xd0], 0
je 0x4083bc
cmp byte [ebp + 8], 0
je 0x40833a
movsd xmm0, qword [0x42a3f6]
movsd xmm1, qword [str.updates]
mov ebx, dword [ebp - 0xe0]
xor eax, eax
lea ecx, [ebp - 0xd8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
lea eax, [ebp - 0xb4]
mov dword [eax], 0x30
lea eax, [ebp - 0x24]
movsd qword [ebp - 0x1c], xmm0
movsd qword [ebp - 0x24], xmm1
mov esi, dword [ebx]
push eax
call fcn.00416709
add esp, 4
mov edi, eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00416709
add esp, 4
add edi, esi
lea esi, [eax + edi + 2]
lea eax, [ebp - 0xb4]
push eax
mov edi, ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 4]
push str._s_s_s
push esi
lea ebx, [ebp - 0xd8]
push ebx
call fcn.00407bd0
add esp, 0x18
cmp dword [ebx], esi
jne 0x408362
mov esi, ebx
lea ecx, [ebp - 0xd0]
lea edx, [ebp - 0xc8]
push dword [ebp + 0xc]
lea eax, [ebp - 0xb0]
push eax
push ebx
call fcn.00408960
add esp, 0xc
mov ebx, eax
jmp 0x408386
lea ecx, [ebp - 0xd0]
lea edx, [ebp - 0xc8]
push dword [ebp + 0xc]
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xe0]
call fcn.00408960
add esp, 0xc
mov ebx, eax
jmp 0x4083a3
lea ecx, [ebp - 0xd0]
lea edx, [ebp - 0xc8]
push dword [ebp + 0xc]
lea eax, [ebp - 0xb0]
push eax
push edi
call fcn.00408960
add esp, 0xc
mov ebx, 0x80004005
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xd4], 0
test eax, eax
je 0x4083a3
push eax
call fcn.0040d78d
add esp, 4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xdc]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
test eax, eax
je 0x4083e2
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
test eax, eax
je 0x408132
push eax
call fcn.0040d78d
add esp, 4
jmp 0x408132
test ebx, ebx
js 0x40844e
mov edx, dword [ebp - 0xdc]
lea edi, [ebp - 0xc8]
mov ecx, edi
push 1
call fcn.00409340
add esp, 4
mov eax, dword [edi + 4]
mov edi, 0x80004005
test al, 0x10
je 0x4083bc
cmp eax, 0xffffffff
je 0x4083bc
bt eax, 0xa
jb 0x4083bc
mov ecx, dword [ebp - 0xc8]
cmp ecx, 1
je 0x4083bc
cmp eax, 0xffffffff
je 0x4083bc
cmp ecx, 2
je 0x4083bc
mov edx, dword [ebp - 0xdc]
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00409480
add esp, 4
cmp eax, 1
jne 0x4083bc
mov edi, ebx
jmp 0x4083bc