Function at 0x407070
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.0041d340
add esp, 0xc
push dword [ebp + 0xc]
mov eax, ebx
push dword [ebp + 8]
call fcn.0040737d
mov esi, eax
cmp esi, edi
jge 0x4070d3
push 0x403cfc
jmp 0x407272
cmp dword [ebx + 0x14], edi
jne 0x4072c5
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 0x40711f
mov esi, 0x8007000e
push 0x403d2c
jmp 0x407272
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x407156
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x407145
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x40714c
mov esi, 0x80004005
push 0x403d60
jmp 0x407272
mov edi, 0x1f01ff
push edi
push 0x1a
lea esi, [ebp - 0x88]
call fcn.00407026
mov esi, eax
test esi, esi
jns 0x407179
push 0x403d8c
jmp 0x407272
push edi
push 0x16
lea esi, [ebp - 0x68]
call fcn.00407026
mov esi, eax
test esi, esi
jns 0x407194
push 0x403dbc
jmp 0x407272
mov edi, 0xa0000000
push edi
push ebx
lea esi, [ebp - 0x48]
call fcn.00407026
mov esi, eax
test esi, esi
jns 0x4071b3
push 0x403de4
jmp 0x407272
push edi
push 0x1b
lea esi, [ebp - 0x28]
call fcn.00407026
mov esi, eax
test esi, esi
jns 0x4071ce
push 0x403e0c
jmp 0x407272
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 0x4071f8
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x407205
push 0x403e34
jmp 0x407272
push 0
push dword [ebp - 0x90]
push 1
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x40723f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x407231
and esi, ebx
or esi, edi
test esi, esi
js 0x407238
mov esi, 0x80004005
push 0x403e4c
jmp 0x407272
push 0
push dword [ebp - 0x6c]
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
jne 0x40727c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x407266
and esi, ebx
or esi, edi
test esi, esi
js 0x40726d
mov esi, 0x80004005
push 0x403e74
push esi
call fcn.004088ec
pop ecx
pop ecx
jmp 0x4072f9
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 0x4072d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4072a8
and esi, ebx
or esi, edi
test esi, esi
js 0x4072af
mov esi, 0x80004005
mov eax, dword [ebp - 0x8c]
push dword [eax + 8]
push 0x403e9c
push esi
call fcn.004088ec
jmp 0x4072f6
push edi
push dword [ebx + 8]
call fcn.004094db
mov esi, eax
cmp esi, edi
jge 0x4072df
push dword [ebx + 8]
jmp 0x4072b8
mov ebx, dword [ebp - 0x8c]
push dword [ebx + 8]
call fcn.00407ff3
push dword [ebx + 8]
push 0x403ed0
push 1
call fcn.00408870
add esp, 0xc
cmp dword [ebp - 0x98], 0
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x407322
push dword [ebp - 0x98]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
test eax, eax
jne 0x407322
call fcn.00409bf5
cmp dword [ebp - 0x90], 0
je 0x407337
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 0x40735f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
test eax, eax
jne 0x40735f
call fcn.00409bf5
add ebx, 0x20
dec dword [ebp - 0x8c]
jne 0x407344
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418955
leave
ret 8