Function at 0x411da0
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 0x411df4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
test eax, eax
jne 0x411e00
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.00405930
add esp, 0x10
test eax, eax
je 0x411e61
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.00405930
add esp, 0x10
test eax, eax
jne 0x411df4
mov eax, dword [ebp + 8]
push edx
push ebx
push edi
push eax
call fcn.00405930
add esp, 0x10
test eax, eax
jne 0x411df4
push eax
mov eax, dword [ebp + 8]
push 0x10
push esi
push eax
call fcn.004053d0
add esp, 0x10
test eax, eax
jne 0x411df4
cmp dword [ebp - 0x3c], 0x54415453
jne 0x411df4
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
jmp 0x411dd3
mov ecx, dword [ebp + 8]
push eax
push ebx
push edi
push ecx
call fcn.00405930
add esp, 0x10
test eax, eax
jne 0x411df4
mov eax, dword [ebp + 8]
push edx
push 8
push esi
push eax
call fcn.004053d0
add esp, 0x10
test eax, eax
jne 0x411df4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
cmp eax, 0x41544144
je 0x411f7a
mov dword [ebp - 0x54], 0xffffffff
cmp eax, 0x454e4f44
je 0x411f7a
sub esp, 0xc
mov edx, dword [ebp - 0x54]
push edx
call fcn.004147e0
pop eax
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
inc eax
je 0x411f41
cmp dword [ebp - 0x14], 0x4c494146
je 0x411f0d
mov eax, dword [ebp - 0x14]
mov byte [0x4d83bc], 0
mov dword [0x4d83b8], eax
sub esp, 0xc
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ebx, dword [ebp + 0x10]
add eax, 0x40
push 0x4d83b8
push ebx
push edi
push str.failed_to_copy__s_to__s:__s_n
push eax
call fcn.00410750
xor eax, eax
add esp, 0x20
jmp 0x411df7
mov ebx, dword [ebp - 0x24]
cmp ebx, 0x100
jle 0x411f1d
mov ebx, 0x100
mov esi, dword [ebp + 8]
push eax
push ebx
push 0x4d83b8
push esi
call fcn.004053d0
add esp, 0x10
test eax, eax
jne 0x411df4
mov byte [ebx + 0x4d83b8], 0
jmp 0x411ee3
call sub.msvcrt.dll__errno
cmp dword [eax], 0xd
jne 0x411ecb
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 0x411ecb
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
jmp 0x411ecb
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
inc eax
je 0x412152
mov ebx, dword [ebp + 0x10]
jmp 0x411fb5
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 0x412100
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 0x411fe2
test ebx, ebx
je 0x411f95
cmp ebx, dword [ebp - 0x44]
jbe 0x411f95
test ebx, ebx
jne 0x411f98
push eax
push eax
mov eax, dword [ebp + 0x10]
push 0x1a4
push eax
call fcn.00416f40
add esp, 0x10
mov dword [ebp - 0x54], eax
test eax, eax
js 0x4121a5
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
cmp eax, 0x454e4f44
jne 0x4120b9
jmp 0x41218f
push eax
mov eax, dword [ebp + 8]
push ebx
push 0x4d83b8
push eax
call fcn.004053d0
add esp, 0x10
test eax, eax
jne 0x41213b
push eax
mov eax, dword [ebp - 0x54]
push ebx
push 0x4d83b8
push eax
call fcn.00405930
add esp, 0x10
test eax, eax
jne 0x412113
mov eax, ebx
mov edx, ebx
sar edx, 0x1f
add eax, dword [0x4d8390]
adc edx, dword [0x4d8394]
mov ecx, dword [ebp + 0x14]
mov dword [0x4d8390], eax
mov dword [0x4d8394], edx
test ecx, ecx
je 0x41208d
mov ecx, dword [ebp - 0x4c]
push ebx
push ebx
mov ebx, dword [ebp - 0x50]
push ecx
push ebx
call fcn.00410c10
add esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push 8
push esi
push ecx
call fcn.004053d0
add esp, 0x10
test eax, eax
jne 0x411df4
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp eax, 0x454e4f44
je 0x41218f
cmp eax, 0x41544144
jne 0x411eaf
cmp ebx, 0x10000
jle 0x412020
mov eax, dword [sym.imp.msvcrt.dll__iob]
push edx
add eax, 0x40
push edx
push str.data_overrun_n
push eax
call fcn.00410750
pop eax
mov eax, dword [ebp - 0x54]
push eax
call fcn.004147e0
or eax, 0xffffffff
add esp, 0x10
jmp 0x411df7
call sub.msvcrt.dll__errno
cmp dword [eax], 0x11
je 0x411fb5
jmp 0x411fe6
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.00410750
add esp, 0x20
sub esp, 0xc
mov ebx, dword [ebp - 0x54]
push ebx
call fcn.004147e0
or eax, 0xffffffff
add esp, 0x10
jmp 0x411df7
call sub.msvcrt.dll__errno
cmp dword [eax], 0xd
jne 0x411f90
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 0x411f90
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
jmp 0x411f90
sub esp, 0xc
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.004147e0
xor eax, eax
add esp, 0x10
jmp 0x411df7
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.00410750
or eax, 0xffffffff
add esp, 0x20
jmp 0x411df7