Function at 0x1002afd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x1007e12c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x1005f6e4
mov dword [ebp - 0x524], edi
mov dword [ebp - 0x51c], eax
mov byte [ebp - 0x515], 0
je 0x1002b127
cmp byte [eax + 0x10], 0
je 0x1002b127
mov eax, dword [eax + 8]
mov esi, ebx
test eax, eax
mov byte [ebp - 0x515], 1
cmovne esi, eax
lea eax, [ebp - 0x108]
push esi
push 0x10065b8c
push 0x104
push eax
push 1
push 0x100798d8
call fcn.10017860
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002b066
and al, 0x50
cmp al, 0x10
je 0x1002b121
push esi
push 0x10065b94
lea edi, [ebp - 0x108]
mov eax, edi
push 0x104
push eax
call fcn.1002ae00
push 0x10065b98
push 0x104
lea eax, [ebp - 0x410]
push eax
push 1
push 0x100798d8
call fcn.10017860
add esp, 0x24
mov dword [ebp - 0x520], eax
mov bl, byte [edi]
mov esi, edi
test bl, bl
je 0x1002b0ce
nop dword [eax]
cmp bl, 0x5c
je 0x1002b0c4
cmp bl, 0x2f
je 0x1002b0c4
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x1002b0b0
jmp 0x1002b0ce
lea eax, [esi + 1]
mov byte [esi], 0
mov bl, byte [eax]
mov esi, eax
push edi
mov edi, dword [ebp - 0x520]
mov eax, 0x104
sub eax, edi
push 0x10065b9c
push eax
lea eax, [ebp - 0x410]
add eax, edi
push eax
call fcn.1002ae00
add edi, eax
lea eax, [ebp - 0x410]
push eax
mov dword [ebp - 0x520], edi
call fcn.1004daa2
add esp, 0x14
test eax, eax
jne 0x1002b116
xor edi, edi
test bl, bl
cmovne edi, esi
test edi, edi
jne 0x1002b0a5
mov edi, dword [ebp - 0x524]
mov ebx, 0x1005f6e4
mov eax, dword [ebp - 0x51c]
mov edx, dword [eax + 8]
test edx, edx
je 0x1002b168
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002b133
mov eax, dword [ebp - 0x51c]
sub ecx, esi
je 0x1002b168
mov eax, dword [eax]
test eax, eax
cmovne ebx, eax
lea eax, [ebp - 0x30c]
push ebx
push edx
push str._s__s.cfg
push 0x104
push eax
call fcn.1002ae00
add esp, 0x14
jmp 0x1002b189
mov eax, dword [eax]
test eax, eax
cmovne ebx, eax
lea eax, [ebp - 0x30c]
push ebx
push str._s.cfg
push 0x104
push eax
call fcn.1002ae00
add esp, 0x10
lea eax, [ebp - 0x30c]
push eax
push str.cfg__s
push 0x104
lea eax, [ebp - 0x514]
push eax
push 1
push 0x100798d8
call fcn.10017860
add esp, 0x18
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002b1ca
test al, 0x50
je 0x1002b40d
cmp byte [ebp - 0x515], 0
je 0x1002b476
mov eax, dword [edi]
lea ecx, [ebp - 0x51c]
push 0
push ecx
push str.ConVarList
mov eax, dword [eax + 0x34]
mov ecx, edi
mov dword [ebp - 0x51c], 0
call eax
test al, al
je 0x1002b476
cmp dword [ebp - 0x51c], 0
je 0x1002b476
lea eax, [ebp - 0x514]
push 0x10065bc8
push eax
call fcn.1004b5db
mov ebx, eax
add esp, 8
mov dword [ebp - 0x524], ebx
test ebx, ebx
je 0x1002b456
push dword [0x1007e120]
push str.___This_file_was_auto_generated_by_SourceMod__v_s__n
push ebx
call fcn.1001cd70
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [eax + 0x18]
push eax
push str.___ConVars_for_plugin___s__n
push ebx
call fcn.1001cd70
push 0x10065c1c
push ebx
call fcn.1001cd70
mov eax, dword [ebp - 0x51c]
add esp, 0x14
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0x520], esi
cmp esi, eax
je 0x1002b3f5
nop
mov edi, dword [esi]
mov ecx, edi
push 0x20000
mov dword [ebp - 0x52c], edi
mov eax, dword [edi]
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x1002b3de
mov eax, dword [edi]
lea ebx, [ebp - 0x208]
mov ecx, edi
call dword [eax + 0x1c]
mov edi, eax
mov edx, 0xff
mov eax, ebx
mov cl, byte [edi]
test cl, cl
je 0x1002b2d3
mov esi, ebx
sub edi, esi
mov esi, dword [ebp - 0x520]
sub edx, 1
je 0x1002b2d3
mov byte [eax], cl
inc eax
mov cl, byte [edi + eax]
test cl, cl
jne 0x1002b2c4
mov byte [eax], 0
mov al, byte [ebp - 0x208]
test al, al
je 0x1002b31f
mov esi, dword [ebp - 0x524]
mov edi, ebx
test al, al
je 0x1002b302
nop dword [eax]
cmp al, 0xa
je 0x1002b2fe
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002b2f0
jmp 0x1002b302
mov byte [edi], 0
inc edi
push ebx
push str.____s_n
push esi
call fcn.1001cd70
mov al, byte [edi]
add esp, 0xc
mov ebx, edi
test al, al
jne 0x1002b2e6
mov esi, dword [ebp - 0x520]
mov ebx, dword [ebp - 0x524]
push str._____n
push ebx
call fcn.1001cd70
mov edi, dword [ebp - 0x52c]
add esp, 8
mov ecx, edi
call fcn.10003da0
push eax
push str.___Default:___s__n
push ebx
call fcn.1001cd70
add esp, 0xc
lea eax, [ebp - 0x528]
mov ecx, edi
push eax
call fcn.10003d60
test al, al
je 0x1002b382
movss xmm0, dword [ebp - 0x528]
sub esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.___Minimum:___02f__n
push ebx
call fcn.1001cd70
add esp, 0x10
lea eax, [ebp - 0x528]
mov ecx, edi
push eax
call fcn.10003d80
test al, al
je 0x1002b3b5
movss xmm0, dword [ebp - 0x528]
sub esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.___Maximum:___02f__n
push ebx
call fcn.1001cd70
add esp, 0x10
mov ecx, edi
call fcn.10003da0
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push eax
push str._s___s__n
push ebx
call fcn.1001cd70
push 0x10065c78
push ebx
call fcn.1001cd70
add esp, 0x18
mov eax, dword [ebp - 0x51c]
mov esi, dword [esi + 4]
mov dword [ebp - 0x520], esi
cmp esi, dword [eax]
jne 0x1002b280
push 0x10065c7c
push ebx
call fcn.1001cd70
push ebx
mov byte [ebp + 0x10], 0
call fcn.1004b4a0
add esp, 0xc
lea eax, [ebp - 0x30c]
push eax
push str.exec__s_n
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.1002a0b0
mov ecx, dword [0x1007f720]
lea edx, [ebp - 0x104]
add esp, 0x10
mov eax, dword [ecx]
push edx
call dword [eax + 0x94]
mov al, byte [ebp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040032
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1007ebc0]
mov ecx, edi
mov edx, dword [edi]
mov esi, dword [eax]
call dword [edx + 0x18]
push eax
push str.Failed_to_auto_generate_config_for__s__make_sure_the_directory_has_write_permission.
push dword [0x1007ebc0]
call dword [esi + 4]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, byte [ebp + 0x10]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10040032
mov esp, ebp
pop ebp
ret