Function at 0x406df0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43eae0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451530]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00402930
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], ebx
xor ebp, ebp
mov dword [esp + 0x54], ebp
mov edi, dword [ebx - 0xc]
lea eax, [edi - 1]
cmp eax, ebp
jl 0x406e97
cmp eax, edi
jg 0x406e97
mov al, byte [eax + ebx]
cmp al, 0x5c
je 0x406e81
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x406e6d
push esi
lea ecx, [esp + 0x20]
call fcn.004028e0
mov ebx, dword [esp + 0x1c]
cmp esi, ebp
mov byte [edi + ebx], 0x5c
jl 0x406e97
cmp esi, dword [ebx - 8]
jg 0x406e97
mov dword [ebx - 0xc], esi
mov byte [esi + ebx], 0
push 4
call fcn.0040a6c2
add esp, 4
cmp eax, ebp
je 0x406ea1
lea ecx, [esp + 0x30]
mov dword [eax], ecx
jmp 0x406ea3
push 0x80070057
call fcn.00401010
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov byte [esp + 0x54], 2
call fcn.0040ae6b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x406ed2
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x54], 3
mov eax, dword [ebx - 0xc]
xor ecx, ecx
cmp eax, ebp
mov byte [esp + 0x5c], 0
mov dword [esp + 0x20], ecx
jle 0x407018
jmp 0x406f0a
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
cmp ecx, ebp
jl 0x406e97
cmp ecx, eax
jg 0x406e97
mov bl, byte [ecx + ebx]
cmp bl, 0x5c
je 0x406f4f
cmp ecx, eax
jg 0x406e97
mov ebp, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebp + 1]
sub eax, edi
or eax, ecx
jge 0x406f47
push edi
lea ecx, [esp + 0x1c]
call fcn.004028e0
mov esi, dword [esp + 0x18]
mov byte [esi + ebp], bl
jmp 0x406fe8
mov edx, dword [esp + 0x3c]
test edx, edx
jne 0x406f5b
xor ecx, ecx
jmp 0x406f64
mov ecx, dword [esp + 0x44]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x40]
mov edi, eax
sub edi, edx
sar edi, 2
cmp edi, ecx
mov edi, eax
jae 0x406f9d
mov edx, dword [esp + 0x5c]
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
push 1
push eax
call fcn.00408b50
add esp, 0x14
add edi, 4
mov dword [esp + 0x40], edi
jmp 0x406fbf
cmp edx, eax
jbe 0x406fa6
call fcn.00428cf2
mov eax, dword [esp + 0x30]
push edi
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
call fcn.004083b0
mov ebp, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebp + 1]
sub eax, edi
or eax, ecx
jge 0x406fe4
push edi
lea ecx, [esp + 0x1c]
call fcn.004028e0
mov esi, dword [esp + 0x18]
mov byte [esi + ebp], 0x5c
test edi, edi
jl 0x406e97
cmp edi, dword [esi - 8]
jg 0x406e97
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov eax, dword [edx - 0xc]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x406f00
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp edi, eax
jbe 0x40702d
call fcn.00428cf2
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x30]
mov ebx, eax
cmp dword [esp + 0x3c], eax
jbe 0x40703e
call fcn.00428cf2
test ebp, ebp
je 0x407048
cmp ebp, dword [esp + 0x30]
je 0x40704d
call fcn.00428cf2
cmp edi, ebx
je 0x4070a0
test ebp, ebp
jne 0x407096
call fcn.00428cf2
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x407066
call fcn.00428cf2
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne byte [esp + 0x5c]
test ebp, ebp
jne 0x40709b
call fcn.00428cf2
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40708d
call fcn.00428cf2
mov eax, dword [esp + 0x40]
add edi, 4
jmp 0x407031
mov eax, dword [ebp]
jmp 0x40705c
mov eax, dword [ebp]
jmp 0x407083
add esi, 0xfffffff0
mov byte [esp + 0x54], 2
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4070c1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x54], 0
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x40710a
mov eax, dword [esp + 0x40]
mov edi, eax
cmp esi, eax
je 0x407101
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x4070d8
mov esi, dword [esp + 0x3c]
push esi
call fcn.0040a6f1
add esp, 4
mov ecx, dword [esp + 0x30]
xor eax, eax
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.0040a6f1
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40714d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret