Function at 0x100229b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [ebx]
push esi
push edi
mov eax, ebx
jmp 0x10022d9
cmp cl, 0x5c
je 0x10022dd
cmp cl, 0x2f
je 0x10022dd
cmp cl, 0x3a
jne 0x10022cc
mov cl, byte [eax + 1]
cmp cl, 0x5c
je 0x10022cc
cmp cl, 0x2f
jne 0x10022dd
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_CharNextExA]
mov cl, byte [eax]
test cl, cl
jne 0x10022b0
and byte [ebp - 0x104], 0
cmp byte [eax], 0
jne 0x10022ef
cmp dword [ebp + 0xc], 0
jne 0x10022f1
mov eax, ebx
cmp byte [eax], 0
je 0x100237f
mov cl, byte [eax]
test cl, cl
je 0x100237f
mov esi, eax
mov al, cl
xor edi, edi
cmp al, 0x5c
je 0x100232e
cmp al, 0x2f
je 0x100232e
cmp al, 0x3a
jne 0x100231d
mov al, byte [esi + 1]
cmp al, 0x5c
je 0x100231d
cmp al, 0x2f
jne 0x100232e
push edi
push esi
push edi
call dword [sym.imp.USER32.dll_CharNextExA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x1002306
mov al, byte [esi]
test al, al
jne 0x1002339
cmp dword [ebp + 0xc], edi
jne 0x1002373
mov edi, esi
sub edi, ebx
test edi, edi
jle 0x100234c
cmp al, 0x3a
je 0x100234b
cmp byte [esi - 1], 0x3a
jne 0x100234c
inc edi
push edi
lea eax, [ebp - 0x104]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
and byte [ebp + edi - 0x104], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.msvcrt.dll__mkdir]
add esp, 0x10
cmp byte [esi], 0
lea eax, [esi + 1]
jne 0x10022fa
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002388
sub eax, edx
mov dword [ebp + 0xc], eax
jne 0x10023c0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100239b
sub eax, edx
mov dword [ebp + 0xc], eax
je 0x10023c0
mov al, byte [ebx]
cmp al, 0x5c
je 0x10023b3
cmp al, 0x2f
jne 0x10023c0
and byte [ebp - 0x103], 0
mov byte [ebp - 0x104], al
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023c9
sub eax, edx
mov edx, eax
test edx, edx
mov dword [ebp + 8], edx
jle 0x10023ea
lea eax, [ebp + edx - 0x105]
push eax
call fcn.01002270
add edx, eax
and dword [ebp - 4], 0
and dword [ebp + 0xc], 0
mov esi, dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [sym.imp.msvcrt.dll___doserrno]
lea ebx, [ebp + edx - 0x104]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, dword [ebp + 0xc]
push eax
push 0x10012a8
push ebx
call dword [sym.imp.msvcrt.dll_sprintf]
push 0x180
lea eax, [ebp - 0x104]
push 0x502
push eax
call dword [sym.imp.msvcrt.dll__open]
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1002556
call esi
mov eax, dword [eax]
sub eax, 0xd
je 0x10024bb
sub eax, 4
je 0x10024c4
sub eax, 5
jne 0x1002507
call edi
cmp dword [eax], 0x12f
je 0x10024c4
call edi
mov ebx, eax
call esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x104]
push eax
push 0x1001260
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [ebp + 8]
and byte [ebp + eax - 0x104], 0
call edi
mov edi, eax
call esi
push dword [edi]
push dword [eax]
lea eax, [ebp - 0x104]
push eax
push 0x1001254
push 0x1001240
push dword [ebp + 0x10]
call fcn.010020f0
add esp, 0x2c
jmp 0x10024fe
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x100252d
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x3e7
jl 0x1002405
mov eax, dword [ebp + 8]
and byte [ebp + eax - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
push 0x1001238
push 0x1001204
push dword [ebp + 0x10]
call fcn.010020f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
dec eax
dec eax
jne 0x100245f
mov eax, dword [ebp + 8]
and byte [ebp + eax - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push 0x1001180
push 0x10011e8
jmp 0x1002549
mov eax, dword [ebp + 8]
and byte [ebp + eax - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push 0x1001180
push 0x10011c0
push dword [ebp + 0x10]
call fcn.010020f0
add esp, 0x10
jmp 0x10024fe
push eax
call dword [sym.imp.msvcrt.dll__close]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.msvcrt.dll__unlink]
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1002500