Function at 0x408f10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd8
mov dword [ebp - 0xe0], edx
mov edx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
test esi, esi
sete al
movaps xmm0, xmmword [0x42b450]
lea edi, [ebp - 0xc8]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [ebp - 0xdc], edx
push eax
call fcn.00401d10
add esp, 4
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x408f8a
mov ecx, eax
and ecx, 0x10
je 0x408f8a
and eax, 0x400
or eax, esi
jne 0x408f8a
mov eax, dword [ebp - 0xc8]
dec eax
xor ebx, ebx
cmp eax, 1
ja 0x40936e
xor eax, eax
lea esi, [ebp - 0xb0]
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi], eax
mov word [esi + 4], 0x500
xorps xmm0, xmm0
movups xmmword [esi + 0x14], xmm0
movups xmmword [esi + 0x24], xmm0
movups xmmword [esi + 0x34], xmm0
movups xmmword [esi + 0x44], xmm0
movups xmmword [esi + 0x54], xmm0
movups xmmword [esi + 0x64], xmm0
lea ebx, [ebp - 0x24]
mov dword [ebx], eax
sub esp, 0x2c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
movups xmmword [esp + 0x14], xmm0
movaps xmm0, xmmword [0x42b460]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov ecx, dword [ebx]
mov eax, dword [esi + 8]
mov dword [esi + 8], ecx
test eax, eax
je 0x409003
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x409180
mov dword [ebp - 0x9c], 0x1f01ff
mov eax, 2
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 3
xor ecx, ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x80], eax
lea ebx, [ebp - 0xd0]
mov dword [ebx], ecx
sub esp, 0x2c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
movaps xmm0, xmmword [0x42b470]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov ecx, dword [ebx]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa4], ecx
test eax, eax
je 0x409089
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x409212
mov dword [ebp - 0x7c], 0x1f01ff
mov eax, 2
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 3
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x60], eax
lea ebx, [ebp - 0xd8]
mov dword [ebx], ecx
sub esp, 0x2c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
movaps xmm0, xmmword [0x42b480]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov ecx, dword [ebx]
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa0], ecx
test eax, eax
je 0x409103
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x409212
lea ebx, [ebp - 0x9c]
mov dword [ebx + 0x40], 0x1f01ff
mov dword [ebx + 0x44], 2
mov eax, 3
mov dword [ebx + 0x48], eax
xor ecx, ecx
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x58], 1
mov edx, dword [ebp - 0xd8]
mov dword [ebx + 0x5c], edx
lea edx, [ebp - 0xb4]
mov dword [edx], ecx
push edx
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov edi, eax
lea eax, [ebp - 0xb4]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x60]
mov dword [ebx + 0x60], ecx
test eax, eax
je 0x409169
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x40919e
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x409226
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x409226
movzx ebx, bx
or ebx, 0x80070000
jmp 0x4092f1
push 0x14
call fcn.0040cf57
add esp, 4
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x4091d3
push ecx
call fcn.0040d268
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x409484
mov dword [ebp - 0x34], eax
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x409212
push 0
push dword [ebp - 0xb4]
push 1
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x409212
mov dword [ebp - 0x30], 0xc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
xor ebx, ebx
jmp 0x409226
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x4092f1
cmp dword [ebp + 0xc], 0
jne 0x4093ad
lea edx, [ebp - 0xc8]
mov esi, dword [ebp - 0xdc]
mov ecx, esi
push 0
call fcn.00409590
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 0x4092f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4092e3
lea edi, [ebp - 0x24]
movaps xmm0, xmmword [0x42b450]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov ecx, edi
mov edx, dword [ebp - 0xdc]
push 1
call fcn.00401d10
add esp, 4
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4092ba
mov ecx, eax
and ecx, 0x10
je 0x4092ba
bt eax, 0xa
jb 0x4092ba
mov eax, dword [ebp - 0x24]
dec eax
xor ebx, ebx
cmp eax, 1
ja 0x4092bf
mov ebx, 0x800700b7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4092cf
push eax
call fcn.0040d268
add esp, 4
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4092f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4092f1
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], 0
test eax, eax
je 0x409308
push eax
call fcn.0040d268
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x40931d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
test eax, eax
je 0x409338
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
test eax, eax
je 0x409353
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
test eax, eax
je 0x40936e
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x409381
push eax
call fcn.0040d268
add esp, 4
mov eax, dword [ebp - 0xc0]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x409396
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
mov eax, ebx
add esp, 0xd8
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
lea ecx, [ebp - 0xd0]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xdc]
call fcn.00426770
mov ebx, eax
test eax, eax
js 0x4094ff
cmp dword [ebp - 0xd0], 0
je 0x4094ff
cmp byte [ebp + 8], 0
je 0x40948e
xor eax, eax
lea ecx, [ebp - 0xd8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
movups xmm0, xmmword [str.updates]
movups xmmword [ebp - 0x24], xmm0
lea eax, [ebp - 0xb4]
mov dword [eax], 0x30
mov ebx, dword [ebp - 0xe0]
mov eax, dword [ebx]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040d0bb
add esp, 4
mov edi, eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040d0bb
add esp, 4
add edi, dword [ebp - 0xe4]
add edi, eax
add 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
lea ebx, [ebp - 0xd8]
push ebx
call section..text
add esp, 0x18
cmp dword [ebx], edi
jne 0x4094b0
lea ecx, [ebp - 0xd0]
lea edx, [ebp - 0xc8]
push dword [ebp + 0xc]
push esi
push ebx
call fcn.004097e0
add esp, 0xc
mov edi, eax
jmp 0x4094d3
mov ebx, 0x8007000e
jmp 0x409226
lea ecx, [ebp - 0xd0]
lea edx, [ebp - 0xc8]
push dword [ebp + 0xc]
push esi
push dword [ebp - 0xe0]
call fcn.004097e0
add esp, 0xc
mov edi, eax
jmp 0x4094e6
lea ecx, [ebp - 0xd0]
lea edx, [ebp - 0xc8]
push dword [ebp + 0xc]
push esi
push dword [ebp - 0xe0]
call fcn.004097e0
add esp, 0xc
mov edi, 0x80004005
mov eax, dword [ebp - 0xd4]
test eax, eax
je 0x4094e6
push eax
call fcn.0040d268
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 ebx, ebx
test eax, eax
je 0x409525
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
test eax, eax
je 0x4092f1
push eax
call fcn.0040d268
add esp, 4
jmp 0x4092f1
test edi, edi
js 0x409585
lea ebx, [ebp - 0xc8]
mov ecx, ebx
mov edx, dword [ebp - 0xdc]
push 1
call fcn.00401d10
add esp, 4
mov eax, dword [ebx + 4]
mov ebx, 0x80004005
cmp eax, 0xffffffff
je 0x4094ff
mov ecx, eax
and ecx, 0x10
je 0x4094ff
bt eax, 0xa
jb 0x4094ff
mov eax, dword [ebp - 0xc8]
dec eax
cmp eax, 2
jb 0x4094ff
lea ecx, [ebp - 0xc8]
mov edx, dword [ebp - 0xdc]
push esi
call fcn.00426fb0
add esp, 4
cmp eax, 1
jne 0x4094ff
mov ebx, edi
jmp 0x4094ff