Function at 0x40ece0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov esi, dword [ebp + 0xc]
push esi
call sub.msvcrt_strlen
add esp, 0x10
mov ebx, eax
cmp eax, 0x400
jle 0x40ed09
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x20], eax
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push 8
mov dword [ebp - 0x24], 0x56434552
push eax
push edi
call fcn.00404770
add esp, 0x10
test eax, eax
jne 0x40ecfe
mov edx, dword [ebp + 8]
push ecx
push ebx
push esi
push edx
call fcn.00404770
add esp, 0x10
test eax, eax
jne 0x40ecfe
push eax
lea eax, [ebp - 0x24]
push 8
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00404990
add esp, 0x10
test eax, eax
jne 0x40ecfe
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
cmp eax, 0x41544144
je 0x40edce
or edi, 0xffffffff
cmp eax, 0x454e4f44
je 0x40edce
sub esp, 0xc
push edi
call fcn.00411740
pop eax
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
inc eax
je 0x40ef81
cmp dword [ebp - 0x10], 0x4c494146
je 0x40eefa
mov eax, dword [ebp - 0x10]
mov byte [0x42a2dc], 0
mov dword [0x42a2d8], eax
sub esp, 0xc
mov eax, dword [sym.imp.msvcrt__iob]
mov ebx, dword [ebp + 0x10]
add eax, 0x40
push 0x42a2d8
push ebx
push esi
push str.failed_to_copy__s_to__s:__s_n
push eax
call fcn.0040d8a0
xor eax, eax
add esp, 0x20
jmp 0x40ed01
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
inc eax
je 0x40ef31
mov ebx, dword [ebp + 0x10]
jmp 0x40ee10
test eax, eax
je 0x40edf1
cmp eax, edi
ja 0x40ee30
mov ebx, edi
sub esp, 0xc
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt__mkdir
add esp, 0x10
mov byte [ebx], 0x5c
test eax, eax
js 0x40ef6e
inc ebx
push edi
push edi
push 0x2f
push ebx
call sub.msvcrt_strchr
pop edx
pop ecx
push 0x5c
mov edi, eax
push ebx
call sub.msvcrt_strchr
add esp, 0x10
mov ebx, eax
test edi, edi
jne 0x40ede9
test ebx, ebx
jne 0x40edf3
mov ebx, dword [ebp + 0x10]
push edi
push edi
push 0x1a4
push ebx
call fcn.00413e90
add esp, 0x10
mov edi, eax
test eax, eax
js 0x40f022
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x20]
cmp eax, 0x454e4f44
je 0x40eee7
cmp eax, 0x41544144
jne 0x40ed6b
cmp ebx, 0x10000
jg 0x40effa
push eax
mov eax, dword [ebp + 8]
push ebx
push 0x42a2d8
push eax
call fcn.00404990
add esp, 0x10
test eax, eax
jne 0x40efe6
push eax
push ebx
push 0x42a2d8
push edi
call fcn.00404770
add esp, 0x10
test eax, eax
jne 0x40efbe
mov eax, dword [0x42a2b0]
mov edx, dword [ebp + 8]
add eax, ebx
push ecx
mov dword [0x42a2b0], eax
lea eax, [ebp - 0x24]
push 8
push eax
push edx
call fcn.00404990
add esp, 0x10
test eax, eax
jne 0x40ecfe
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp eax, 0x454e4f44
jne 0x40ee62
sub esp, 0xc
push edi
call fcn.00411740
xor eax, eax
add esp, 0x10
jmp 0x40ed01
mov ebx, dword [ebp - 0x20]
cmp ebx, 0x100
jle 0x40ef0a
mov ebx, 0x100
mov edi, dword [ebp + 8]
push eax
push ebx
push 0x42a2d8
push edi
call fcn.00404990
add esp, 0x10
test eax, eax
jne 0x40ecfe
mov byte [ebx + 0x42a2d8], 0
jmp 0x40eda4
call sub.msvcrt__errno
cmp dword [eax], 0xd
jne 0x40ede4
push eax
push eax
mov eax, dword [ebp + 0x10]
push 0x180
push eax
call sub.msvcrt.dll__chmod
add esp, 0x10
test eax, eax
jne 0x40ede4
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
jmp 0x40ede4
call sub.msvcrt__errno
cmp dword [eax], 0x11
je 0x40ee10
jmp 0x40ee34
call sub.msvcrt__errno
cmp dword [eax], 0xd
jne 0x40ed88
push eax
push eax
mov eax, dword [ebp + 0x10]
push 0x180
push eax
call sub.msvcrt.dll__chmod
add esp, 0x10
test eax, eax
jne 0x40ed88
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
jmp 0x40ed88
call sub.msvcrt__errno
sub esp, 0xc
mov eax, dword [eax]
push eax
call sub.msvcrt_strerror
push eax
mov eax, dword [sym.imp.msvcrt__iob]
add eax, 0x40
push esi
push str.cannot_write__s:__s_n
push eax
call fcn.0040d8a0
add esp, 0x20
sub esp, 0xc
push edi
call fcn.00411740
or eax, 0xffffffff
add esp, 0x10
jmp 0x40ed01
push eax
push eax
mov eax, dword [sym.imp.msvcrt__iob]
push str.data_overrun_n
add eax, 0x40
push eax
call fcn.0040d8a0
mov dword [esp], edi
call fcn.00411740
or eax, 0xffffffff
add esp, 0x10
jmp 0x40ed01
call sub.msvcrt__errno
sub esp, 0xc
mov ecx, dword [eax]
push ecx
call sub.msvcrt_strerror
push eax
mov eax, dword [sym.imp.msvcrt__iob]
mov edx, dword [ebp + 0x10]
add eax, 0x40
push edx
push str.cannot_create__s:__s_n
push eax
call fcn.0040d8a0
or eax, 0xffffffff
add esp, 0x20
jmp 0x40ed01