Function at 0x10066720
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100d703c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x1006675f
mov bl, 1
jmp 0x10066922
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
test edx, edx
je 0x100667f5
cmp esi, 0x10
lea ecx, [ebp + 8]
cmovae ecx, edi
nop dword [eax]
cmp esi, 0x10
lea eax, [ebp + 8]
cmovae eax, edi
add eax, edx
cmp ecx, eax
je 0x100667c3
cmp byte [ecx], 0x5c
jne 0x100667c0
mov byte [ecx], 0x2f
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
inc ecx
jmp 0x100667a0
lea ecx, [edx - 1]
cmp edx, ecx
jbe 0x100669e6
cmp esi, 0x10
lea eax, [ebp + 8]
cmovae eax, edi
cmp byte [ecx + eax], 0x2f
je 0x100667f5
push 1
push 0x100bc1d8
lea ecx, [ebp + 8]
call fcn.1001eaf0
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
cmp esi, 0x10
lea ebx, [ebp + 8]
cmovae ebx, edi
test edx, edx
je 0x10066818
push edx
push 0x2f
push ebx
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10066818
sub esi, ebx
jmp 0x1006681b
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x1006690a
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop word [eax + eax]
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.10010590
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0
jbe 0x10066886
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x48], esp
push eax
call fcn.10003940
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
call fcn.10066670
add esp, 0x18
test al, al
jne 0x10066886
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x10066959
mov eax, dword [ebp + 0x18]
lea edi, [ebp + 8]
inc esi
cmp dword [ebp + 0x1c], 0x10
cmovae edi, dword [ebp + 8]
cmp esi, eax
jae 0x100668b4
sub eax, esi
push eax
lea eax, [edi + esi]
push 0x2f
push eax
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100668b4
sub esi, edi
jmp 0x100668b7
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100668ef
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100668e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10066983
push edx
push ecx
call fcn.1009eaad
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp esi, 0xffffffff
jne 0x10066830
mov bl, 1
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100669b6
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100669ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100669ac
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10066993
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10066989
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10066989
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1009eaad
add esp, 8
mov dword [ebp - 0x18], 0
xor bl, bl
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x1006690c
push edx
push ecx
call fcn.1009eaad
add esp, 8
mov dword [ebp + 0x18], 0
mov al, bl
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009ea6c
mov esp, ebp
pop ebp
ret
call fcn.10003d10
int3