Function at 0x407ef0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd4
mov dword [ebp - 0xe0], edx
mov edi, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0xc8]
mov eax, dword [0x43300c]
mov edx, esi
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
test edi, edi
mov dword [ebp - 0xc8], 2
mov dword [ebp - 0xc4], 0xffffffff
mov dword [ebp - 0xc0], 0xffffffff
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
sete al
push eax
call fcn.004096a0
add esp, 4
mov eax, dword [ebp - 0xc4]
cmp eax, 0xffffffff
je 0x407f8e
mov ecx, eax
and ecx, 0x10
je 0x407f8e
test eax, 0x400
jne 0x407f8e
mov eax, dword [ebp - 0xc8]
cmp eax, 1
je 0x407f8e
test edi, edi
jne 0x407f8e
xor ebx, ebx
cmp eax, 2
jne 0x40836a
lea eax, [ebp - 0x24]
lea ebx, [ebp - 0xb0]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xac], 0x500
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x24], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x221
push 0x20
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x24]
test eax, eax
mov dword [ebp - 0xa8], ecx
je 0x4080d3
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x4082cf
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x9c], 0x1f01ff
mov dword [ebp - 0x98], 2
mov dword [ebp - 0x94], 3
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 2
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0xd0]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xd0]
test eax, eax
mov dword [ebp - 0xa4], ecx
je 0x40815f
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x408266
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x7c], 0x1f01ff
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x74], 3
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 2
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xd8]
test eax, eax
mov dword [ebp - 0xa0], ecx
je 0x4081dc
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x408266
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x5c], 0x1f01ff
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 1
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0xb4]
push ecx
push 0
push eax
push 3
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov edi, eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xb4]
test eax, eax
mov dword [ebp - 0x3c], ecx
je 0x40824b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4083b3
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x4082e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 0xc]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x4082ed
test edi, edi
jne 0x408466
lea edx, [ebp - 0xc8]
mov ecx, esi
push 0
call fcn.004088a0
add esp, 4
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
test eax, eax
jne 0x4082ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408507
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x4082ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x4082e6
movzx ebx, bx
or ebx, 0x80070000
jmp 0x4082ed
mov edi, dword [ebp + 0xc]
test ebx, ebx
jns 0x408281
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], 0
test eax, eax
je 0x408304
push eax
call fcn.0040d9b7
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x408319
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
test eax, eax
je 0x408334
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
test eax, eax
je 0x40834f
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
test eax, eax
je 0x40836a
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xb8], 0
test eax, eax
je 0x408387
push eax
call fcn.0040d9b7
add esp, 4
mov eax, dword [ebp - 0xc0]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x40839c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, ebx
add esp, 0xd4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x14
call fcn.0040d9ae
add esp, 4
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x40840e
push ecx
call fcn.0040d9b7
add esp, 4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x408411
mov ebx, 0x8007000e
test ebx, ebx
jns 0x408281
jmp 0x4082ed
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40845b
push 0
push dword [ebp - 0xb4]
push 1
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40845b
mov dword [ebp - 0x30], 0xc
xor ebx, ebx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
test ebx, ebx
jns 0x408281
jmp 0x4082ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40826f
lea ecx, [ebp - 0xd0]
mov edx, esi
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
call fcn.00408b10
mov ebx, eax
test eax, eax
js 0x4084e1
cmp dword [ebp - 0xd0], 0
je 0x4084e1
cmp byte [ebp + 8], 0
jne 0x408591
lea ecx, [ebp - 0xd0]
lea edx, [ebp - 0xc8]
push edi
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xe0]
call fcn.00408c10
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
test eax, eax
jne 0x4084e1
test edi, edi
jns 0x408689
mov ebx, edi
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
test eax, eax
je 0x4082ed
push eax
call fcn.0040d9b7
add esp, 4
jmp 0x4082ed
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x24]
mov edx, esi
push 1
call fcn.004096a0
add esp, 4
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x40855a
mov ecx, eax
and ecx, 0x10
je 0x40855a
test eax, 0x400
jne 0x40855a
mov eax, dword [ebp - 0x24]
xor ebx, ebx
dec eax
cmp eax, 1
ja 0x40855f
mov ebx, 0x800700b7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x408576
push eax
call fcn.0040d9b7
add esp, 4
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4082ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4082ed
movsd xmm0, qword [0x42b408]
movsd xmm1, qword [str.updates]
mov ebx, dword [ebp - 0xe0]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xb4], 0x30
movsd qword [ebp - 0x1c], xmm0
movsd qword [ebp - 0x24], xmm1
mov eax, dword [ebx]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00416af2
add esp, 4
mov edi, eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00416af2
add esp, 4
add edi, dword [ebp - 0xdc]
lea ecx, [ebp - 0xd8]
lea edi, [eax + edi + 2]
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 4]
push str._s_s_s
push edi
push ecx
call fcn.00407e00
add esp, 0x18
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd0]
lea edx, [ebp - 0xc8]
mov dword [ebp - 0xdc], eax
cmp eax, edi
lea eax, [ebp - 0xd8]
cmove ebx, eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xb0]
push eax
push ebx
call fcn.00408c10
add esp, 0xc
mov ebx, eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xd4], 0
test eax, eax
je 0x408676
push eax
call fcn.0040d9b7
add esp, 4
cmp dword [ebp - 0xdc], edi
mov edi, 0x80004005
cmove edi, ebx
jmp 0x4084c4
lea ecx, [ebp - 0xc8]
mov edx, esi
push 1
call fcn.004096a0
add esp, 4
mov eax, dword [ebp - 0xc4]
mov ebx, 0x80004005
cmp eax, 0xffffffff
je 0x4084e1
mov ecx, eax
and ecx, 0x10
je 0x4084e1
test eax, 0x400
jne 0x4084e1
mov eax, dword [ebp - 0xc8]
dec eax
cmp eax, 2
jb 0x4084e1
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0xc8]
mov edx, esi
push eax
call fcn.004097e0
add esp, 4
cmp eax, 1
je 0x4084df
jmp 0x4084e1