Function at 0x418ed0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445b66
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x45d0bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push esi
mov dword [ebp - 4], eax
call fcn.0041a3c0
add esp, 4
test al, al
je 0x419064
push esi
call fcn.0041a3c0
add esp, 4
test al, al
jne 0x418f5b
push esi
lea ecx, [ebp - 0x40]
call fcn.00405e70
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x94], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0xa8], xmm0
jmp 0x419026
mov edx, dword [0x45d048]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418f80
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00407d10
cmp dword [esi + 0x14], 8
mov ecx, esi
mov byte [ebp - 4], 1
jb 0x418fa7
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
jb 0x418fb1
mov esi, dword [esi]
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], dx
lea ecx, [esi + ecx*2]
cmp ecx, eax
je 0x418fdd
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.00407d10
movups xmm0, xmmword [ebp - 0x70]
xor eax, eax
lea ecx, [ebp - 0x70]
mov word [ebp - 0x70], ax
movups xmmword [ebp - 0xa8], xmm0
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x60]
movq qword [ebp - 0x94], xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
call fcn.00405dd0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00405dd0
lea ecx, [ebp - 0x28]
call fcn.00405dd0
movups xmm0, xmmword [ebp - 0xa8]
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x40], ax
movq xmm0, qword [ebp - 0x94]
movq qword [ebp - 0x18], xmm0
call fcn.00405dd0
jmp 0x419081
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x419081
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x419075
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00407d10
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xa4]
cmovae edx, dword [ebp - 0x28]
push dword [ebp - 0x90]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
lea eax, [edx + eax*2]
mov dword [ebp - 0x9c], 0
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
push edx
call fcn.004197e0
mov esi, dword [ebp - 0xa0]
mov edi, dword [ebp - 0xa4]
mov byte [ebp - 4], 2
cmp edi, esi
je 0x41921a
mov eax, esi
sub eax, edi
sar eax, 1
mov dword [ebp - 0x8c], eax
je 0x4194d8
movzx eax, word [edi]
mov edx, 1
mov dword [ebp - 0xb4], edx
cmp dword [ebp - 0x8c], edx
jbe 0x41921a
mov ecx, dword [ebp - 0xa4]
add edi, 2
add ecx, 4
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0x8c], esi
nop dword [eax]
nop word [eax + eax]
mov esi, dword [ebp - 0xb0]
movzx ecx, ax
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp - 0xac]
cmp ax, 0x2f
je 0x419169
cmp ax, 0x5c
je 0x419169
mov esi, dword [ebp - 0x8c]
jmp 0x4191cc
cmp word [ebp - 0xb0], 0x2f
cmove esi, dword [ebp - 0xb8]
mov eax, esi
sub eax, dword [ebp - 0xa4]
sar eax, 1
cmp eax, edx
jbe 0x4194d8
movzx eax, word [edi]
cmp eax, 0x2f
je 0x419197
cmp eax, 0x5c
jne 0x4191cc
cmp edi, ecx
je 0x4191bf
sub esi, ecx
push esi
push ecx
push edi
call fcn.00426480
mov ecx, dword [ebp - 0xac]
lea eax, [edi + esi]
mov edx, dword [ebp - 0xb4]
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov esi, eax
dec edx
sub edi, 2
sub ecx, 2
mov dword [ebp - 0xac], ecx
mov eax, esi
sub eax, dword [ebp - 0xa4]
sar eax, 1
cmp eax, edx
jbe 0x4194d8
movzx ecx, word [edi]
inc edx
add dword [ebp - 0xac], 2
add edi, 2
cmp edx, eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0xb4], edx
mov eax, ecx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0x8c], esi
jb 0x419140
mov edi, dword [ebp - 0xa4]
mov eax, esi
sub eax, edi
mov dword [ebp - 0x90], eax
sar eax, 1
cmp eax, 2
jb 0x4194dd
mov ecx, dword [ebp - 0x90]
mov eax, edi
inc ecx
mov dword [ebp - 0x8c], 0x5c
shr ecx, 1
xor edx, edx
mov dword [ebp - 0x90], ecx
xor ecx, ecx
cmp eax, esi
mov esi, dword [ebp - 0x90]
cmova esi, ecx
mov ecx, dword [ebp - 0xa0]
test esi, esi
je 0x419287
mov edi, dword [ebp - 0xa4]
lea ecx, [edx + 0x5c]
nop dword [eax]
cmp word [eax], 0x2f
jne 0x419279
mov word [eax], cx
inc edx
add eax, 2
cmp edx, esi
jne 0x419270
mov ecx, dword [ebp - 0xa0]
cmp word [edi], 0x5c
jne 0x419298
cmp word [edi + 2], 0x5c
je 0x419476
mov dword [ebp - 0x90], 0
cmp dword [ebp - 0x9c], ecx
je 0x4192ba
xor eax, eax
mov word [ecx], ax
add ecx, 2
mov dword [ebp - 0xa0], ecx
jmp 0x4192cd
lea eax, [ebp - 0x90]
push eax
push ecx
lea ecx, [ebp - 0xa4]
call fcn.00419710
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00419530
mov esi, dword [ebp - 0x90]
add esp, 8
mov eax, dword [ebp - 0xa4]
cmp esi, eax
jne 0x41931f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041aaa0
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push str.Invalid_directory:
push eax
call fcn.00409e00
add esp, 0x14
mov byte [ebp - 4], 6
jmp 0x419504
lea ecx, [ebp - 0x8c]
push ecx
push eax
push dword [ebp - 0xa0]
lea eax, [ebp - 0x90]
push eax
call fcn.00419880
add esp, 0x10
mov edi, dword [eax]
cmp edi, dword [ebp - 0xa4]
jne 0x419385
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041a800
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push str.CreateDirectorysChain___no_separator_in_path__
push eax
call fcn.00409e00
push 0x447de4
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
call fcn.00409990
add esp, 0x20
mov byte [ebp - 4], 9
jmp 0x419504
cmp esi, edi
je 0x419476
cmp esi, dword [ebp - 0xa0]
je 0x419476
lea eax, [ebp - 0x8c]
push eax
push edi
lea eax, [ebp - 0x90]
push esi
push eax
call fcn.00419850
mov esi, dword [ebp - 0x90]
add esp, 0x10
nop word [eax + eax]
movzx eax, word [esi]
mov edx, dword [ebp - 0xa4]
mov ecx, edx
mov dword [ebp - 0x8c], eax
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x90], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4193f0
sub ecx, dword [ebp - 0x90]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00407d10
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00419ea0
add esp, 8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
call fcn.00405dd0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4194a4
mov eax, dword [ebp - 0x8c]
mov word [esi], ax
add esi, 2
cmp esi, edi
je 0x419462
cmp word [esi], 0x5c
je 0x419462
add esi, 2
cmp esi, edi
jne 0x419455
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00405dd0
cmp esi, edi
jne 0x4193c0
lea ecx, [ebp - 0xa4]
call fcn.00419c40
lea ecx, [ebp - 0x28]
call fcn.00405dd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424185
mov esp, ebp
pop ebp
ret
push 0x409
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004219a0
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xd
push str.Cant_create_directory.
push eax
call fcn.00409e00
add esp, 0x18
mov byte [ebp - 4], 0xe
jmp 0x419504
call fcn.0040ecb0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041a800
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push str.Invalid_directory:
push eax
call fcn.00409e00
add esp, 0x14
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x98]
call fcn.00401440
push 0x45b95c
lea eax, [ebp - 0x98]
push eax
call fcn.00425c43
int3