Function at 0x411dd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
mov edi, dword [ebp + 0xc]
push edi
call sub.msvcrt.dll_strlen
add esp, 0x10
mov ebx, eax
cmp eax, 0x400
jg 0x411e24
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
test eax, eax
jne 0x411e30
lea esi, [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
push 8
mov dword [ebp - 0x28], 0x56434552
push esi
mov dword [ebp - 0x24], ebx
push eax
call fcn.004058d0
add esp, 0x10
test eax, eax
je 0x411e91
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
lea esi, [ebp - 0x3c]
push 8
mov dword [ebp - 0x3c], 0x54415453
push esi
mov dword [ebp - 0x38], ebx
push ecx
call fcn.004058d0
add esp, 0x10
test eax, eax
jne 0x411e24
mov eax, dword [ebp + 8]
push edx
push ebx
push edi
push eax
call fcn.004058d0
add esp, 0x10
test eax, eax
jne 0x411e24
push eax
mov eax, dword [ebp + 8]
push 0x10
push esi
push eax
call fcn.00405370
add esp, 0x10
test eax, eax
jne 0x411e24
cmp dword [ebp - 0x3c], 0x54415453
jne 0x411e24
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
jmp 0x411e03
mov ecx, dword [ebp + 8]
push eax
push ebx
push edi
push ecx
call fcn.004058d0
add esp, 0x10
test eax, eax
jne 0x411e24
mov eax, dword [ebp + 8]
push edx
push 8
push esi
push eax
call fcn.00405370
add esp, 0x10
test eax, eax
jne 0x411e24
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
cmp eax, 0x41544144
je 0x411faa
mov dword [ebp - 0x54], 0xffffffff
cmp eax, 0x454e4f44
je 0x411faa
sub esp, 0xc
mov edx, dword [ebp - 0x54]
push edx
call fcn.004148a0
pop eax
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
inc eax
je 0x411f71
cmp dword [ebp - 0x14], 0x4c494146
je 0x411f3d
mov eax, dword [ebp - 0x14]
mov byte [0x4d73bc], 0
mov dword [0x4d73b8], eax
sub esp, 0xc
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ebx, dword [ebp + 0x10]
add eax, 0x40
push 0x4d73b8
push ebx
push edi
push str.failed_to_copy__s_to__s:__s_n
push eax
call fcn.00410700
xor eax, eax
add esp, 0x20
jmp 0x411e27
mov ebx, dword [ebp - 0x24]
cmp ebx, 0x100
jle 0x411f4d
mov ebx, 0x100
mov esi, dword [ebp + 8]
push eax
push ebx
push 0x4d73b8
push esi
call fcn.00405370
add esp, 0x10
test eax, eax
jne 0x411e24
mov byte [ebx + 0x4d73b8], 0
jmp 0x411f13
call sub.msvcrt.dll__errno
cmp dword [eax], 0xd
jne 0x411efb
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 0x411efb
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
jmp 0x411efb
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
inc eax
je 0x412182
mov ebx, dword [ebp + 0x10]
jmp 0x411fe5
mov ebx, dword [ebp - 0x44]
sub esp, 0xc
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__mkdir
add esp, 0x10
mov byte [ebx], 0x5c
test eax, eax
js 0x412130
inc ebx
push eax
push eax
push 0x2f
push ebx
call sub.msvcrt.dll_strchr
pop edx
mov dword [ebp - 0x44], eax
pop ecx
push 0x5c
push ebx
call sub.msvcrt.dll_strchr
add esp, 0x10
mov ebx, eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x412012
test ebx, ebx
je 0x411fc5
cmp ebx, dword [ebp - 0x44]
jbe 0x411fc5
test ebx, ebx
jne 0x411fc8
push eax
push eax
mov eax, dword [ebp + 0x10]
push 0x1a4
push eax
call fcn.00417000
add esp, 0x10
mov dword [ebp - 0x54], eax
test eax, eax
js 0x4121d5
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
cmp eax, 0x454e4f44
jne 0x4120e9
jmp 0x4121bf
push eax
mov eax, dword [ebp + 8]
push ebx
push 0x4d73b8
push eax
call fcn.00405370
add esp, 0x10
test eax, eax
jne 0x41216b
push eax
mov eax, dword [ebp - 0x54]
push ebx
push 0x4d73b8
push eax
call fcn.004058d0
add esp, 0x10
test eax, eax
jne 0x412143
mov eax, ebx
mov edx, ebx
sar edx, 0x1f
add eax, dword [0x4d7390]
adc edx, dword [0x4d7394]
mov ecx, dword [ebp + 0x14]
mov dword [0x4d7390], eax
mov dword [0x4d7394], edx
test ecx, ecx
je 0x4120bd
mov ecx, dword [ebp - 0x4c]
push ebx
push ebx
mov ebx, dword [ebp - 0x50]
push ecx
push ebx
call fcn.00410bd0
add esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push 8
push esi
push ecx
call fcn.00405370
add esp, 0x10
test eax, eax
jne 0x411e24
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp eax, 0x454e4f44
je 0x4121bf
cmp eax, 0x41544144
jne 0x411edf
cmp ebx, 0x10000
jle 0x412050
mov eax, dword [sym.imp.msvcrt.dll__iob]
push edx
add eax, 0x40
push edx
push str.data_overrun_n
push eax
call fcn.00410700
pop eax
mov eax, dword [ebp - 0x54]
push eax
call fcn.004148a0
or eax, 0xffffffff
add esp, 0x10
jmp 0x411e27
call sub.msvcrt.dll__errno
cmp dword [eax], 0x11
je 0x411fe5
jmp 0x412016
call sub.msvcrt.dll__errno
sub esp, 0xc
mov esi, dword [eax]
push esi
call sub.msvcrt.dll_strerror
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push edi
push str.cannot_write__s:__s_n
push eax
call fcn.00410700
add esp, 0x20
sub esp, 0xc
mov ebx, dword [ebp - 0x54]
push ebx
call fcn.004148a0
or eax, 0xffffffff
add esp, 0x10
jmp 0x411e27
call sub.msvcrt.dll__errno
cmp dword [eax], 0xd
jne 0x411fc0
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 0x411fc0
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
jmp 0x411fc0
sub esp, 0xc
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.004148a0
xor eax, eax
add esp, 0x10
jmp 0x411e27
call sub.msvcrt.dll__errno
sub esp, 0xc
mov edi, dword [eax]
push edi
call sub.msvcrt.dll_strerror
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov esi, dword [ebp + 0x10]
add eax, 0x40
push esi
push str.cannot_create__s:__s_n
push eax
call fcn.00410700
or eax, 0xffffffff
add esp, 0x20
jmp 0x411e27