Function at 0x40d990
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x661435
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.00441045
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00414a70
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], eax
call fcn.004237e3
mov ecx, eax
test ecx, ecx
je 0x40dc3c
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.00402920
test al, al
jne 0x40da1e
push 1
push 0x687afc
lea ecx, [ebp - 0x10]
call fcn.00408780
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x20]
call fcn.00409ef0
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 0x40da4f
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.004237e3
test eax, eax
je 0x40dc3c
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 0x40daa2
test edi, edi
jne 0x40da89
xor ecx, ecx
jmp 0x40da99
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40da90
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00408780
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00415250
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.00414ca0
cmp dword [ebp - 0x30], 2
jne 0x40dc16
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004237e3
mov ecx, eax
test ecx, ecx
je 0x40dc46
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.00402920
test al, al
jne 0x40db08
push 1
push 0x687b0c
lea ecx, [ebp - 0x10]
call fcn.00408780
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x20]
call fcn.00409ef0
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 0x40db36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x30], 0
jle 0x40dc50
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.00415250
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x38]
call fcn.00441648
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.00414ca0
call fcn.004237e3
mov ecx, eax
test ecx, ecx
je 0x40dc3c
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 0x40dbf6
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [eax]
test esi, esi
js 0x40dc50
cmp esi, edx
jge 0x40dc50
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.0040b740
push 0
push dword [ebp - 0x10]
call edi
push 1
push 0x687b0c
lea ecx, [ebp - 0x10]
call fcn.0040b740
mov edx, dword [ebp - 0x30]
inc esi
lea eax, [edx - 1]
cmp esi, eax
jl 0x40dbb0
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 0x40dc0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x40dc18
xor esi, esi
lea ecx, [ebp - 0x24]
call fcn.00414bd0
lea ecx, [ebp - 0x38]
call fcn.0044105c
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.00420632
int3