Function at 0x411870
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.dll_strlen
add esp, 0x10
mov ebx, eax
cmp eax, 0x400
jle 0x411899
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.00405b20
add esp, 0x10
test eax, eax
jne 0x41188e
mov edx, dword [ebp + 8]
push ecx
push ebx
push esi
push edx
call fcn.00405b20
add esp, 0x10
test eax, eax
jne 0x41188e
push eax
lea eax, [ebp - 0x24]
push 8
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004055c0
add esp, 0x10
test eax, eax
jne 0x41188e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
cmp eax, 0x41544144
je 0x41195e
or edi, 0xffffffff
cmp eax, 0x454e4f44
je 0x41195e
sub esp, 0xc
push edi
call fcn.00414270
pop eax
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
inc eax
je 0x411b16
cmp dword [ebp - 0x10], 0x4c494146
je 0x411a8f
mov eax, dword [ebp - 0x10]
mov byte [0x4c92fc], 0
mov dword [0x4c92f8], eax
sub esp, 0xc
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ebx, dword [ebp + 0x10]
add eax, 0x40
push 0x4c92f8
push ebx
push esi
push str.failed_to_copy__s_to__s:__s_n
push eax
call fcn.00410440
xor eax, eax
add esp, 0x20
jmp 0x411891
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
inc eax
je 0x411ac6
mov ebx, dword [ebp + 0x10]
jmp 0x4119a0
test eax, eax
je 0x411981
cmp eax, edi
ja 0x4119c0
mov ebx, edi
sub esp, 0xc
mov byte [ebx], 0
mov edi, dword [ebp + 0x10]
push edi
call sub.msvcrt.dll__mkdir
add esp, 0x10
mov byte [ebx], 0x5c
test eax, eax
js 0x411b03
inc ebx
push edi
push edi
push 0x2f
push ebx
call sub.msvcrt.dll_strchr
pop edx
pop ecx
push 0x5c
mov edi, eax
push ebx
call sub.msvcrt.dll_strchr
add esp, 0x10
mov ebx, eax
test edi, edi
jne 0x411979
test ebx, ebx
jne 0x411983
mov edx, dword [ebp + 0x10]
push ecx
push ecx
push 0x1a4
push edx
call fcn.004169c0
add esp, 0x10
mov edi, eax
test eax, eax
js 0x411bb7
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x20]
cmp eax, 0x454e4f44
je 0x411a7c
cmp eax, 0x41544144
jne 0x4118fb
cmp ebx, 0x10000
jg 0x411b8f
push eax
mov eax, dword [ebp + 8]
push ebx
push 0x4c92f8
push eax
call fcn.004055c0
add esp, 0x10
test eax, eax
jne 0x411b7b
push eax
push ebx
push 0x4c92f8
push edi
call fcn.00405b20
add esp, 0x10
test eax, eax
jne 0x411b53
mov edx, ebx
lea eax, [ebp - 0x24]
sar edx, 0x1f
add dword [0x4c92d0], ebx
adc dword [0x4c92d4], edx
mov edx, dword [ebp + 8]
push ecx
push 8
push eax
push edx
call fcn.004055c0
add esp, 0x10
test eax, eax
jne 0x41188e
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp eax, 0x454e4f44
jne 0x4119f2
sub esp, 0xc
push edi
call fcn.00414270
xor eax, eax
add esp, 0x10
jmp 0x411891
mov ebx, dword [ebp - 0x20]
cmp ebx, 0x100
jle 0x411a9f
mov ebx, 0x100
mov edi, dword [ebp + 8]
push eax
push ebx
push 0x4c92f8
push edi
call fcn.004055c0
add esp, 0x10
test eax, eax
jne 0x41188e
mov byte [ebx + 0x4c92f8], 0
jmp 0x411934
call sub.msvcrt.dll__errno
cmp dword [eax], 0xd
jne 0x411974
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 0x411974
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
jmp 0x411974
call sub.msvcrt.dll__errno
cmp dword [eax], 0x11
je 0x4119a0
jmp 0x4119c4
call sub.msvcrt.dll__errno
cmp dword [eax], 0xd
jne 0x411918
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 0x411918
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
jmp 0x411918
call sub.msvcrt.dll__errno
sub esp, 0xc
mov ebx, dword [eax]
push ebx
call sub.msvcrt.dll_strerror
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push esi
push str.cannot_write__s:__s_n
push eax
call fcn.00410440
add esp, 0x20
sub esp, 0xc
push edi
call fcn.00414270
or eax, 0xffffffff
add esp, 0x10
jmp 0x411891
push eax
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str.data_overrun_n
add eax, 0x40
push eax
call fcn.00410440
mov dword [esp], edi
call fcn.00414270
or eax, 0xffffffff
add esp, 0x10
jmp 0x411891
call sub.msvcrt.dll__errno
sub esp, 0xc
mov eax, dword [eax]
push eax
call sub.msvcrt.dll_strerror
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push str.cannot_create__s:__s_n
push eax
call fcn.00410440
or eax, 0xffffffff
add esp, 0x20
jmp 0x411891