Function at 0x4065d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x57a898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
xor ecx, ecx
mov word [ebp - 0x4c], cx
mov ecx, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], esi
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x406615
sub ecx, edi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00406c10
mov dword [ebp - 4], esi
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x40663c
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x3c]
mov ebx, 0x5c
cmp word [eax + edx*2 - 2], bx
je 0x406655
lea edi, [ebp - 0x4c]
call fcn.004069c0
xor esi, esi
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], esi
mov edx, 7
xor eax, eax
xor edi, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
mov word [ebp - 0x30], di
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], esi
cmp dword [ebp - 0x3c], edi
ja 0x4066a5
mov edi, ecx
cmp ecx, ebx
je 0x4067fb
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [edi + 0x14], 8
jb 0x4067dd
mov eax, dword [edi]
jmp 0x4067df
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x4c]
cmp edi, 8
jae 0x4066b3
lea ecx, [ebp - 0x4c]
cmp word [ecx + esi*2], 0x5c
je 0x406730
mov ecx, dword [ebp - 0x4c]
cmp edi, 8
jae 0x4066c5
lea ecx, [ebp - 0x4c]
movzx ebx, word [ecx + esi*2]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x4067d3
lea edi, [eax + 1]
cmp edi, 0x7ffffffe
ja 0x4067d3
cmp edx, edi
jae 0x4066f7
push eax
push edi
lea edx, [ebp - 0x30]
push edx
call fcn.00406d20
jmp 0x40670e
test edi, edi
jne 0x406713
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], edi
cmp edx, 8
jae 0x406709
lea eax, [ebp - 0x30]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x20]
test edi, edi
setne cl
test cl, cl
je 0x4067be
mov ecx, dword [ebp - 0x30]
mov edx, 8
cmp dword [ebp - 0x1c], edx
jae 0x4067a3
lea ecx, [ebp - 0x30]
jmp 0x4067a3
lea ecx, [ebp - 0x30]
lea ebx, [ebp - 0x60]
call fcn.00406a50
mov eax, dword [ebp - 0x20]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x4067d3
lea edi, [eax + 1]
cmp edi, 0x7ffffffe
ja 0x4067d3
mov ecx, dword [ebp - 0x1c]
cmp ecx, edi
jae 0x40676b
push eax
push edi
lea edx, [ebp - 0x30]
push edx
call fcn.00406d20
jmp 0x406782
test edi, edi
jne 0x406787
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], edi
cmp ecx, 8
jae 0x40677d
lea eax, [ebp - 0x30]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x20]
test edi, edi
setne cl
test cl, cl
je 0x4067be
mov ecx, dword [ebp - 0x30]
mov edx, 8
cmp dword [ebp - 0x1c], edx
jae 0x40679e
lea ecx, [ebp - 0x30]
mov ebx, 0x5c
mov word [ecx + eax*2], bx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x1c], edx
jae 0x4067b5
lea eax, [ebp - 0x30]
xor edx, edx
mov word [eax + edi*2], dx
mov eax, dword [ebp - 0x20]
inc esi
cmp esi, dword [ebp - 0x3c]
jb 0x4066a2
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
jmp 0x406681
push str.string_too_long
call fcn.0051e01a
mov eax, edi
push 0
push eax
call esi
neg eax
sbb eax, eax
neg eax
add edi, 0x1c
mov dword [ebp - 0x50], eax
cmp edi, ebx
jne 0x406691
mov ecx, dword [ebp - 0x60]
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], esi
jb 0x406818
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040d812
mov ecx, dword [ebp - 0x60]
add esp, 4
mov byte [ebp - 4], 0
test ecx, ecx
je 0x40685c
mov edi, ecx
cmp ecx, ebx
je 0x406853
cmp dword [edi + 0x14], esi
jb 0x406839
mov eax, dword [edi]
push eax
call fcn.0040d812
mov ecx, dword [ebp - 0x60]
add esp, 4
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], dx
add edi, 0x1c
cmp edi, ebx
jne 0x406826
push ecx
call fcn.0040d812
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x38], esi
jb 0x406874
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0040d812
add esp, 4
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00502eb5
mov esp, ebp
pop ebp
ret 4