Function at 0x40dae0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66a6d5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x71cf78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x38]
call fcn.004413d3
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00414e10
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], eax
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x40dd8c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x690b5c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402920
test al, al
jne 0x40db6e
push 1
push 0x690b5c
lea ecx, [ebp - 0x10]
call fcn.00408780
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x20]
call fcn.00409f70
mov edx, dword [ebp - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40db9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x14], esi
call fcn.00423b74
test eax, eax
je 0x40dd8c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov edi, dword [ebp + 8]
mov ecx, esi
push edi
mov byte [ebp - 4], 4
call fcn.00402920
test al, al
jne 0x40dbf2
test edi, edi
jne 0x40dbd9
xor ecx, ecx
jmp 0x40dbe9
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dbe0
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00408780
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004155f0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.00415040
cmp dword [ebp - 0x30], 2
jne 0x40dd66
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x40dd96
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x690b6c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00402920
test al, al
jne 0x40dc58
push 1
push 0x690b6c
lea ecx, [ebp - 0x10]
call fcn.00408780
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x20]
call fcn.00409f70
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dc86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x30], 0
jle 0x40dda0
push ecx
mov esi, esp
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00407700
add esp, 4
lea ecx, [ebp - 0x24]
add eax, 0x10
mov dword [esi], eax
call fcn.004155f0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x38]
call fcn.004419d6
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.00415040
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x40dd8c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x30]
xor esi, esi
mov byte [ebp - 4], 7
lea ecx, [edx - 1]
test ecx, ecx
jle 0x40dd46
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [eax]
test esi, esi
js 0x40dda0
cmp esi, edx
jge 0x40dda0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.0040b8d0
push 0
push dword [ebp - 0x10]
call edi
push 1
push 0x690b6c
lea ecx, [ebp - 0x10]
call fcn.0040b8d0
mov edx, dword [ebp - 0x30]
inc esi
lea eax, [edx - 1]
cmp esi, eax
jl 0x40dd00
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40dd5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x40dd68
xor esi, esi
lea ecx, [ebp - 0x24]
call fcn.00414f70
lea ecx, [ebp - 0x38]
call fcn.004413ea
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004020e0
push 0x80004005
call fcn.004020e0
call fcn.004209c4
int3