Function at 0x100963d
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1016a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharNextExA]
push esi
push edi
mov edi, dword [ebp + 8]
mov cl, byte [edi]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x11c], edi
mov eax, edi
jmp 0x1009698
cmp cl, 0x5c
je 0x100969c
cmp cl, 0x2f
je 0x100969c
cmp cl, 0x3a
jne 0x100968f
mov cl, byte [eax + 1]
cmp cl, 0x5c
je 0x100968f
cmp cl, 0x2f
jne 0x100969c
push 0
push eax
push 0
call ebx
mov cl, byte [eax]
test cl, cl
jne 0x1009673
mov byte [ebp - 0x104], 0
cmp byte [eax], 0
jne 0x10096ae
cmp dword [ebp + 0xc], 0
jne 0x10096b0
mov eax, edi
cmp byte [eax], 0
je 0x100973e
mov cl, byte [eax]
test cl, cl
je 0x100973e
mov esi, eax
mov al, cl
cmp al, 0x5c
je 0x10096e9
cmp al, 0x2f
je 0x10096e9
cmp al, 0x3a
jne 0x10096da
mov al, byte [esi + 1]
cmp al, 0x5c
je 0x10096da
cmp al, 0x2f
jne 0x10096e9
push 0
push esi
push 0
call ebx
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x10096c3
mov cl, byte [esi]
test cl, cl
jne 0x10096f5
cmp dword [ebp + 0xc], 0
jne 0x1009732
mov eax, esi
sub eax, edi
test eax, eax
jle 0x1009709
cmp cl, 0x3a
je 0x1009708
cmp byte [esi - 1], 0x3a
jne 0x1009709
inc eax
push eax
push edi
push 0x100
lea eax, [ebp - 0x104]
push eax
call fcn.010094bb
test eax, eax
jl 0x10098c4
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.msvcrt.dll__mkdir]
pop ecx
cmp byte [esi], 0
lea eax, [esi + 1]
jne 0x10096b9
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009747
sub eax, edx
jne 0x1009779
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009757
sub eax, edx
je 0x1009779
mov al, byte [edi]
cmp al, 0x5c
je 0x100976c
cmp al, 0x2f
jne 0x1009779
mov byte [ebp - 0x104], al
mov byte [ebp - 0x103], 0
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009782
sub eax, edx
mov edx, eax
mov dword [ebp - 0x114], edx
test edx, edx
jle 0x10097b2
cmp edx, 0xfe
ja 0x10098c4
lea eax, [ebp + edx - 0x105]
push eax
call fcn.010093ea
add edx, eax
and dword [ebp - 0x110], 0
and dword [ebp - 0x10c], 0
mov esi, dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [sym.imp.msvcrt.dll___doserrno]
mov dword [ebp - 0x118], 0x100
sub dword [ebp - 0x118], edx
lea ebx, [ebp + edx - 0x104]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, dword [ebp - 0x10c]
push eax
push 0x10031a0
push dword [ebp - 0x118]
push ebx
call fcn.01009508
add esp, 0x10
test eax, eax
jl 0x100997a
push 0x180
lea eax, [ebp - 0x104]
push 0x502
push eax
call dword [sym.imp.msvcrt.dll__open]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10099a9
call esi
mov eax, dword [eax]
sub eax, 0xd
je 0x10098df
sub eax, 4
je 0x10098f2
sub eax, 5
jne 0x100994e
call edi
cmp dword [eax], 0x12f
je 0x10098f2
call edi
mov ebx, eax
call esi
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
mov eax, dword [ebp - 0x11c]
push dword [eax]
lea eax, [ebp - 0x104]
push eax
push 0x1003158
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [ebp - 0x114]
mov 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 0x100314c
push 0x1003138
push dword [ebp - 0x108]
call fcn.01009022
add esp, 0x2c
jmp 0x100993b
push edi
push 0x10018a0
push 0x1002764
push dword [ebp - 0x108]
call fcn.01009022
add esp, 0x10
jmp 0x100993b
inc dword [ebp - 0x110]
cmp dword [ebp - 0x110], 5
jge 0x1009985
inc dword [ebp - 0x10c]
cmp dword [ebp - 0x10c], 0x3e7
jl 0x10097e3
mov eax, dword [ebp - 0x114]
mov byte [ebp + eax - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
push 0x1001900
push 0x1003104
push dword [ebp - 0x108]
call fcn.01009022
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100dc5b
leave
ret 0xc
dec eax
dec eax
jne 0x100985c
mov eax, dword [ebp - 0x114]
mov byte [ebp + eax - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push 0x10018a0
push 0x10030e8
jmp 0x10098cf
push dword [ebp - 0x11c]
jmp 0x10098c5
mov eax, dword [ebp - 0x114]
mov byte [ebp + eax - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push 0x10018a0
push 0x10030c0
jmp 0x10098cf
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 0x100993d