Function at 0x4cb350
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x689156
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x740184]
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.004cd220
add esp, 4
test al, al
je 0x4cb4e4
push esi
call fcn.004cd220
add esp, 4
test al, al
jne 0x4cb3db
push esi
lea ecx, [ebp - 0x40]
call fcn.0044d8b0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x94], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0xa8], xmm0
jmp 0x4cb4a6
mov edx, dword [0x740cd0]
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 0x4cb400
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0044eb60
cmp dword [esi + 0x14], 8
mov ecx, esi
mov byte [ebp - 4], 1
jb 0x4cb427
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
jb 0x4cb431
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 0x4cb45d
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.0044eb60
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.0044d800
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0044d800
lea ecx, [ebp - 0x28]
call fcn.0044d800
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.0044d800
jmp 0x4cb501
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4cb501
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4cb4f5
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.0044eb60
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.00486330
mov esi, dword [ebp - 0xa0]
mov edi, dword [ebp - 0xa4]
mov byte [ebp - 4], 2
cmp edi, esi
je 0x4cb69a
mov eax, esi
sub eax, edi
sar eax, 1
mov dword [ebp - 0x8c], eax
je 0x4cb958
movzx eax, word [edi]
mov edx, 1
mov dword [ebp - 0xb4], edx
cmp dword [ebp - 0x8c], edx
jbe 0x4cb69a
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 0x4cb5e9
cmp ax, 0x5c
je 0x4cb5e9
mov esi, dword [ebp - 0x8c]
jmp 0x4cb64c
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 0x4cb958
movzx eax, word [edi]
cmp eax, 0x2f
je 0x4cb617
cmp eax, 0x5c
jne 0x4cb64c
cmp edi, ecx
je 0x4cb63f
sub esi, ecx
push esi
push ecx
push edi
call fcn.004a2330
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 0x4cb958
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 0x4cb5c0
mov edi, dword [ebp - 0xa4]
mov eax, esi
sub eax, edi
mov dword [ebp - 0x90], eax
sar eax, 1
cmp eax, 2
jb 0x4cb95d
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 0x4cb707
mov edi, dword [ebp - 0xa4]
lea ecx, [edx + 0x5c]
nop dword [eax]
cmp word [eax], 0x2f
jne 0x4cb6f9
mov word [eax], cx
inc edx
add eax, 2
cmp edx, esi
jne 0x4cb6f0
mov ecx, dword [ebp - 0xa0]
cmp word [edi], 0x5c
jne 0x4cb718
cmp word [edi + 2], 0x5c
je 0x4cb8f6
mov dword [ebp - 0x90], 0
cmp dword [ebp - 0x9c], ecx
je 0x4cb73a
xor eax, eax
mov word [ecx], ax
add ecx, 2
mov dword [ebp - 0xa0], ecx
jmp 0x4cb74d
lea eax, [ebp - 0x90]
push eax
push ecx
lea ecx, [ebp - 0xa4]
call fcn.004cbcf0
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004cb9b0
mov esi, dword [ebp - 0x90]
add esp, 8
mov eax, dword [ebp - 0xa4]
cmp esi, eax
jne 0x4cb79f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0047d770
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push str.Invalid_directory:
push eax
call fcn.0045f300
add esp, 0x14
mov byte [ebp - 4], 6
jmp 0x4cb984
lea ecx, [ebp - 0x8c]
push ecx
push eax
push dword [ebp - 0xa0]
lea eax, [ebp - 0x90]
push eax
call fcn.004cbdf0
add esp, 0x10
mov edi, dword [eax]
cmp edi, dword [ebp - 0xa4]
jne 0x4cb805
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0045f8a0
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push str.CreateDirectorysChain___no_separator_in_path__
push eax
call fcn.0045f300
push 0x726354
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
call fcn.00456080
add esp, 0x20
mov byte [ebp - 4], 9
jmp 0x4cb984
cmp esi, edi
je 0x4cb8f6
cmp esi, dword [ebp - 0xa0]
je 0x4cb8f6
lea eax, [ebp - 0x8c]
push eax
push edi
lea eax, [ebp - 0x90]
push esi
push eax
call fcn.004cbdc0
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 0x4cb870
sub ecx, dword [ebp - 0x90]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0044eb60
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004cc640
add esp, 8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
call fcn.0044d800
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 0x4cb924
mov eax, dword [ebp - 0x8c]
mov word [esi], ax
add esi, 2
cmp esi, edi
je 0x4cb8e2
cmp word [esi], 0x5c
je 0x4cb8e2
add esi, 2
cmp esi, edi
jne 0x4cb8d5
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0044d800
cmp esi, edi
jne 0x4cb840
lea ecx, [ebp - 0xa4]
call fcn.00452970
lea ecx, [ebp - 0x28]
call fcn.0044d800
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.0048b49a
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.0047e430
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xd
push str.Cant_create_directory.
push eax
call fcn.0045f300
add esp, 0x18
mov byte [ebp - 4], 0xe
jmp 0x4cb984
call fcn.00453f30
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0045f8a0
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push str.Invalid_directory:
push eax
call fcn.0045f300
add esp, 0x14
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x98]
call fcn.0044c020
push 0x73d15c
lea eax, [ebp - 0x98]
push eax
call fcn.004a18e8
int3