Function at 0x409070
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 0x4091f3
mov ebp, dword [esp + 0x7c]
test ebp, ebp
jne 0x409200
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.0041b830
test al, al
je 0x4091f3
mov eax, dword [esp + 0x74]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0041b830
test al, al
je 0x4091f3
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 8
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0041b4c0
test al, al
je 0x4091f3
mov ebp, dword [esp + 0x3c]
cmp ebp, 0x454e4f44
sete byte [esp + 0x24]
je 0x40913d
cmp ebp, 0x41544144
jne 0x409430
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
cmp eax, 0xffffffff
je 0x4094f0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x70], ebx
lea edi, [eax + 1]
mov esi, eax
jmp 0x409187
test eax, eax
je 0x4091b3
test edi, edi
je 0x40928f
mov byte [edi], 0
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__mkdir]
mov byte [edi], 0x5c
test eax, eax
js 0x409280
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 0x409165
cmp ebx, eax
jb 0x409161
mov edi, ebx
jmp 0x40916d
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.0049e490
mov dword [esp], esi
call fcn.00417be0
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.0041b830
test al, al
je 0x4091f3
mov eax, dword [esp + 0x74]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0041b830
test al, al
je 0x4091f3
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0x10
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0041b4c0
test al, al
je 0x4091f3
cmp dword [esp + 0x3c], 0x54415453
jne 0x4091f3
mov eax, dword [esp + 0x44]
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jmp 0x4090b8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0x11
je 0x409184
mov eax, dword [esp + 0x78]
mov dword [esp + 4], 0x1a4
mov ebx, dword [esp + 0x70]
mov dword [esp], eax
call fcn.004174e0
test eax, eax
mov esi, eax
js 0x40952c
cmp byte [esp + 0x24], 0
mov edi, dword [esp + 0x40]
jne 0x409470
cmp ebp, 0x41544144
jne 0x4093c2
cmp edi, 0x10000
jg 0x409480
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, edx
or ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x40933a
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 8
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0041b4c0
test al, al
je 0x4091f3
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
cmp eax, 0x454e4f44
je 0x409470
cmp eax, 0x41544144
jne 0x4093c0
cmp edi, 0x10000
jg 0x409480
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4de048
mov dword [esp], ebx
call fcn.0041b4c0
test al, al
je 0x4091eb
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4de048
mov dword [esp], esi
call fcn.0041b830
test al, al
je 0x4091b7
mov eax, edi
mov edi, dword [esp + 0x7c]
cdq
add eax, dword [0x4ee050]
adc edx, dword [0x4ee054]
test edi, edi
mov dword [0x4ee050], eax
mov dword [0x4ee054], edx
je 0x4092f0
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4092f0
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov dword [esp], edi
mov dword [esp + 4], ebp
call fcn.00408660
jmp 0x4092f0
mov ebp, eax
mov dword [esp], esi
call fcn.00417be0
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
cmp eax, 0xffffffff
je 0x4094b0
cmp ebp, 0x4c494146
je 0x409437
mov dword [0x4de048], ebp
mov byte [0x4de04c], 0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], 0x4de048
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.0049e490
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0xffffffff
jmp 0x4093c2
mov eax, dword [esp + 0x40]
mov esi, 0x100
mov dword [esp + 4], 0x4de048
mov dword [esp], ebx
cmp eax, 0x100
cmovle esi, eax
mov dword [esp + 8], esi
call fcn.0041b4c0
test al, al
je 0x4091f3
mov byte [esi + 0x4de048], 0
jmp 0x4093f4
mov dword [esp], esi
call fcn.00417be0
xor eax, eax
jmp 0x4091f8
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.0049e490
mov dword [esp], esi
call fcn.00417be0
mov eax, 0xffffffff
jmp 0x4091f8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0xd
jne 0x4093df
mov eax, dword [esp + 0x78]
mov dword [esp + 4], 0x180
mov dword [esp], eax
call sub.msvcrt.dll__chmod
test eax, eax
jne 0x4093df
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
jmp 0x4093df
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0xd
jne 0x409152
mov eax, dword [esp + 0x78]
mov dword [esp + 4], 0x180
mov dword [esp], eax
call sub.msvcrt.dll__chmod
test eax, eax
jne 0x409152
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
jmp 0x409152
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.0049e490
mov eax, 0xffffffff
jmp 0x4091f8