Function at 0x1002685
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100b02c]
push ebx
mov ebx, dword [ebp + 0x94]
mov cl, byte [ebx]
push esi
mov dword [ebp + 0x88], eax
push edi
mov eax, ebx
jmp 0x10026d6
cmp cl, 0x5c
je 0x10026da
cmp cl, 0x2f
je 0x10026da
cmp cl, 0x3a
jne 0x10026c9
mov cl, byte [eax + 1]
cmp cl, 0x5c
je 0x10026c9
cmp cl, 0x2f
jne 0x10026da
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_CharNextExA]
mov cl, byte [eax]
test cl, cl
jne 0x10026ad
mov byte [ebp - 0x78], 0
cmp byte [eax], 0
jne 0x10026ec
cmp dword [ebp + 0x98], 0
jne 0x10026ee
mov eax, ebx
cmp byte [eax], 0
je 0x1002786
mov cl, byte [eax]
test cl, cl
je 0x1002786
mov edi, eax
mov al, cl
xor esi, esi
cmp al, 0x5c
je 0x100272f
cmp al, 0x2f
je 0x100272f
cmp al, 0x3a
jne 0x100271e
mov al, byte [edi + 1]
cmp al, 0x5c
je 0x100271e
cmp al, 0x2f
jne 0x100272f
push esi
push edi
push esi
call dword [sym.imp.USER32.dll_CharNextExA]
mov edi, eax
mov al, byte [edi]
test al, al
jne 0x1002707
mov al, byte [edi]
test al, al
jne 0x100273d
cmp dword [ebp + 0x98], esi
jne 0x100277a
mov esi, edi
sub esi, ebx
test esi, esi
jle 0x1002750
cmp al, 0x3a
je 0x100274f
cmp byte [edi - 1], 0x3a
jne 0x1002750
inc esi
cmp esi, 0x100
jae 0x10028cd
push esi
lea eax, [ebp - 0x78]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
lea eax, [ebp - 0x78]
push eax
mov byte [ebp + esi - 0x78], 0
call dword [sym.imp.msvcrt.dll__mkdir]
add esp, 0x10
cmp byte [edi], 0
lea eax, [edi + 1]
jne 0x10026f7
lea eax, [ebp - 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100278c
sub eax, edx
mov dword [ebp + 0x98], eax
jne 0x10027c4
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10027a2
sub eax, edx
mov dword [ebp + 0x98], eax
je 0x10027c4
mov al, byte [ebx]
cmp al, 0x5c
je 0x10027bd
cmp al, 0x2f
jne 0x10027c4
mov byte [ebp - 0x78], al
mov byte [ebp - 0x77], 0
lea eax, [ebp - 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10027ca
sub eax, edx
mov edx, eax
test edx, edx
mov dword [ebp + 0x94], edx
jle 0x10027eb
lea eax, [ebp + edx - 0x79]
push eax
call fcn.010024ff
add edx, eax
and dword [ebp - 0x7c], 0
and dword [ebp + 0x98], 0
mov esi, dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [sym.imp.msvcrt.dll___doserrno]
mov dword [ebp - 0x80], 0x100
sub dword [ebp - 0x80], edx
lea ebx, [ebp + edx - 0x78]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, dword [ebp + 0x98]
push eax
push 0x10012e8
push dword [ebp - 0x80]
push ebx
call fcn.0100262d
push 0x180
lea eax, [ebp - 0x78]
push 0x502
push eax
call dword [sym.imp.msvcrt.dll__open]
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x1002993
call esi
mov eax, dword [eax]
sub eax, 0xd
je 0x10028dd
sub eax, 4
je 0x10028ea
sub eax, 5
jne 0x1002947
call edi
cmp dword [eax], 0x12f
je 0x10028ea
call edi
mov ebx, eax
call esi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
mov eax, dword [ebp - 0x7c]
push dword [eax]
lea eax, [ebp - 0x78]
push eax
push 0x10012a0
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [ebp + 0x94]
mov byte [ebp + eax - 0x78], 0
call edi
mov edi, eax
call esi
push dword [edi]
push dword [eax]
lea eax, [ebp - 0x78]
push eax
push 0x1001298
push 0x1001284
push dword [ebp + 0x9c]
call fcn.010022c0
add esp, 0x2c
jmp 0x100292d
push ebx
push 0x1001190
push 0x100126c
jmp 0x1002983
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], 5
jge 0x100296a
inc dword [ebp + 0x98]
cmp dword [ebp + 0x98], 0x3e7
jl 0x1002810
mov eax, dword [ebp + 0x94]
mov byte [ebp + eax - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x98]
push 0x1001264
push 0x1001230
push dword [ebp + 0x9c]
call fcn.010022c0
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
pop ebx
call fcn.01005588
add ebp, 0x8c
leave
ret 0xc
dec eax
dec eax
jne 0x1002874
mov eax, dword [ebp + 0x94]
mov byte [ebp + eax - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x1001190
push 0x1001214
jmp 0x1002983
mov eax, dword [ebp + 0x94]
mov byte [ebp + eax - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x1001190
push 0x10011ec
push dword [ebp + 0x9c]
call fcn.010022c0
add esp, 0x10
jmp 0x100292d
push eax
call dword [sym.imp.msvcrt.dll__close]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.msvcrt.dll__unlink]
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x100292f