Function at 0x4070e3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x9c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push 0x80
lea eax, [ebp - 0x88]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], edi
call fcn.0041d610
add esp, 0xc
push dword [ebp + 0xc]
mov eax, ebx
push dword [ebp + 8]
call fcn.004073f0
mov esi, eax
cmp esi, edi
jge 0x407146
push 0x403cfc
jmp 0x4072e5
cmp dword [ebx + 0x14], edi
jne 0x407338
xor ebx, ebx
push 0x14
inc ebx
push 8
mov dword [ebp - 0x9c], 0xc
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x98], eax
cmp eax, edi
jne 0x407192
mov esi, 0x8007000e
push 0x403d2c
jmp 0x4072e5
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x4071c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x4071b8
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x4071bf
mov esi, 0x80004005
push 0x403d60
jmp 0x4072e5
mov edi, 0x1f01ff
push edi
push 0x1a
lea esi, [ebp - 0x88]
call fcn.00407099
mov esi, eax
test esi, esi
jns 0x4071ec
push 0x403d8c
jmp 0x4072e5
push edi
push 0x16
lea esi, [ebp - 0x68]
call fcn.00407099
mov esi, eax
test esi, esi
jns 0x407207
push 0x403dbc
jmp 0x4072e5
mov edi, 0xa0000000
push edi
push ebx
lea esi, [ebp - 0x48]
call fcn.00407099
mov esi, eax
test esi, esi
jns 0x407226
push 0x403de4
jmp 0x4072e5
push edi
push 0x1b
lea esi, [ebp - 0x28]
call fcn.00407099
mov esi, eax
test esi, esi
jns 0x407241
push 0x403e0c
jmp 0x4072e5
lea eax, [ebp - 0x90]
push eax
push 0
lea eax, [ebp - 0x88]
push eax
push 4
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jle 0x40726b
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x407278
push 0x403e34
jmp 0x4072e5
push 0
push dword [ebp - 0x90]
push 1
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x4072b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4072a4
and esi, ebx
or esi, edi
test esi, esi
js 0x4072ab
mov esi, 0x80004005
push 0x403e4c
jmp 0x4072e5
push 0
push dword [ebp - 0x6c]
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
jne 0x4072ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4072d9
and esi, ebx
or esi, edi
test esi, esi
js 0x4072e0
mov esi, 0x80004005
push 0x403e74
push esi
call fcn.0040895c
pop ecx
pop ecx
jmp 0x40736c
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x8c]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40734c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40731b
and esi, ebx
or esi, edi
test esi, esi
js 0x407322
mov esi, 0x80004005
mov eax, dword [ebp - 0x8c]
push dword [eax + 8]
push 0x403e9c
push esi
call fcn.0040895c
jmp 0x407369
push edi
push dword [ebx + 8]
call fcn.0040954b
mov esi, eax
cmp esi, edi
jge 0x407352
push dword [ebx + 8]
jmp 0x40732b
mov ebx, dword [ebp - 0x8c]
push dword [ebx + 8]
call fcn.00408063
push dword [ebx + 8]
push 0x403ed0
push 1
call fcn.004088e0
add esp, 0xc
cmp dword [ebp - 0x98], 0
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x407395
push dword [ebp - 0x98]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
test eax, eax
jne 0x407395
call fcn.00409c65
cmp dword [ebp - 0x90], 0
je 0x4073aa
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ebx, [ebp - 0x6c]
mov dword [ebp - 0x8c], 4
mov eax, dword [ebx]
test eax, eax
je 0x4073d2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
test eax, eax
jne 0x4073d2
call fcn.00409c65
add ebx, 0x20
dec dword [ebp - 0x8c]
jne 0x4073b7
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418bf8
leave
ret 8