Function at 0x40dae0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6616b5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x714f78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x38]
call fcn.0044121d
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00414b50
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], eax
call fcn.00423a0b
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 0x687afc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402ad0
test al, al
jne 0x40db6e
push 1
push 0x687afc
lea ecx, [ebp - 0x10]
call fcn.00408790
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a060
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.00423a0b
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.00402ad0
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.00408790
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00415330
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.00414d80
cmp dword [ebp - 0x30], 2
jne 0x40dd66
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00423a0b
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 0x687b0c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00402ad0
test al, al
jne 0x40dc58
push 1
push 0x687b0c
lea ecx, [ebp - 0x10]
call fcn.00408790
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a060
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.00407710
add esp, 4
lea ecx, [ebp - 0x24]
add eax, 0x10
mov dword [esi], eax
call fcn.00415330
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x38]
call fcn.00441820
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.00414d80
call fcn.00423a0b
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.0040b8b0
push 0
push dword [ebp - 0x10]
call edi
push 1
push 0x687b0c
lea ecx, [ebp - 0x10]
call fcn.0040b8b0
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.00414cb0
lea ecx, [ebp - 0x38]
call fcn.00441234
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.00420832
int3