Function at 0x409e10
Capabilities:
Create directory

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 0x400
mov edi, eax
jg 0x409f93
mov ebp, dword [esp + 0x7c]
test ebp, ebp
jne 0x409fa0
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 8
mov dword [esp], ebx
mov dword [esp + 0x3c], 0x56434552
mov dword [esp + 4], eax
mov dword [esp + 0x40], edi
call fcn.0041d0e0
test al, al
je 0x409f93
mov eax, dword [esp + 0x74]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0041d0e0
test al, al
je 0x409f93
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 8
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0041cd70
test al, al
je 0x409f93
mov ebp, dword [esp + 0x3c]
cmp ebp, 0x454e4f44
sete byte [esp + 0x24]
je 0x409edd
cmp ebp, 0x41544144
jne 0x40a1d0
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
cmp eax, 0xffffffff
je 0x40a290
mov eax, dword [esp + 0x78]
mov dword [esp + 0x70], ebx
lea edi, [eax + 1]
mov esi, eax
jmp 0x409f27
test eax, eax
je 0x409f53
test edi, edi
je 0x40a02f
mov byte [edi], 0
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__mkdir]
mov byte [edi], 0x5c
test eax, eax
js 0x40a020
add edi, 1
mov dword [esp], edi
mov dword [esp + 4], 0x2f
call sub.msvcrt.dll_strchr
mov dword [esp], edi
mov dword [esp + 4], 0x5c
mov ebx, eax
call sub.msvcrt.dll_strchr
test ebx, ebx
mov edi, eax
je 0x409f05
cmp ebx, eax
jb 0x409f01
mov edi, ebx
jmp 0x409f0d
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], str.cannot_write__s:__s_n
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
mov dword [esp], esi
call fcn.00419090
mov eax, 0xffffffff
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
mov dword [esp + 8], 8
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x3c], 0x54415453
mov dword [esp + 0x20], eax
call fcn.0041d0e0
test al, al
je 0x409f93
mov eax, dword [esp + 0x74]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0041d0e0
test al, al
je 0x409f93
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0x10
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0041cd70
test al, al
je 0x409f93
cmp dword [esp + 0x3c], 0x54415453
jne 0x409f93
mov eax, dword [esp + 0x44]
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jmp 0x409e58
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0x11
je 0x409f24
mov eax, dword [esp + 0x78]
mov dword [esp + 4], 0x1a4
mov ebx, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00418920
test eax, eax
mov esi, eax
js 0x40a2cc
cmp byte [esp + 0x24], 0
mov edi, dword [esp + 0x40]
jne 0x40a210
cmp ebp, 0x41544144
jne 0x40a162
cmp edi, 0x10000
jg 0x40a220
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, edx
or ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x40a0da
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 8
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0041cd70
test al, al
je 0x409f93
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
cmp eax, 0x454e4f44
je 0x40a210
cmp eax, 0x41544144
jne 0x40a160
cmp edi, 0x10000
jg 0x40a220
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4e3048
mov dword [esp], ebx
call fcn.0041cd70
test al, al
je 0x409f8b
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4e3048
mov dword [esp], esi
call fcn.0041d0e0
test al, al
je 0x409f57
mov eax, edi
mov edi, dword [esp + 0x7c]
cdq
add eax, dword [0x4f3050]
adc edx, dword [0x4f3054]
test edi, edi
mov dword [0x4f3050], eax
mov dword [0x4f3054], edx
je 0x40a090
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40a090
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov dword [esp], edi
mov dword [esp + 4], ebp
call fcn.004092e0
jmp 0x40a090
mov ebp, eax
mov dword [esp], esi
call fcn.00419090
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
cmp eax, 0xffffffff
je 0x40a250
cmp ebp, 0x4c494146
je 0x40a1d7
mov dword [0x4e3048], ebp
mov byte [0x4e304c], 0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], 0x4e3048
mov dword [esp + 4], str.failed_to_copy__s_to__s:__s_n
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0xffffffff
jmp 0x40a162
mov eax, dword [esp + 0x40]
mov esi, 0x100
mov dword [esp + 4], 0x4e3048
mov dword [esp], ebx
cmp eax, 0x100
cmovle esi, eax
mov dword [esp + 8], esi
call fcn.0041cd70
test al, al
je 0x409f93
mov byte [esi + 0x4e3048], 0
jmp 0x40a194
mov dword [esp], esi
call fcn.00419090
xor eax, eax
jmp 0x409f98
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.data_overrun_n
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
mov dword [esp], esi
call fcn.00419090
mov eax, 0xffffffff
jmp 0x409f98
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0xd
jne 0x40a17f
mov eax, dword [esp + 0x78]
mov dword [esp + 4], 0x180
mov dword [esp], eax
call sub.msvcrt.dll__chmod
test eax, eax
jne 0x40a17f
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
jmp 0x40a17f
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0xd
jne 0x409ef2
mov eax, dword [esp + 0x78]
mov dword [esp + 4], 0x180
mov dword [esp], eax
call sub.msvcrt.dll__chmod
test eax, eax
jne 0x409ef2
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
jmp 0x409ef2
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], str.cannot_create__s:__s_n
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
mov eax, 0xffffffff
jmp 0x409f98