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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x1007e124]
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, 0x1005f6d4
mov dword [ebp - 0x524], edi
mov dword [ebp - 0x51c], eax
mov byte [ebp - 0x515], 0
je 0x1002b0f7
cmp byte [eax + 0x10], 0
je 0x1002b0f7
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 0x10065b7c
push 0x104
push eax
push 1
push 0x100798d8
call fcn.10017880
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002b036
and al, 0x50
cmp al, 0x10
je 0x1002b0f1
push esi
push 0x10065b84
lea edi, [ebp - 0x108]
mov eax, edi
push 0x104
push eax
call fcn.1002add0
push 0x10065b88
push 0x104
lea eax, [ebp - 0x410]
push eax
push 1
push 0x100798d8
call fcn.10017880
add esp, 0x24
mov dword [ebp - 0x520], eax
mov bl, byte [edi]
mov esi, edi
test bl, bl
je 0x1002b09e
nop dword [eax]
cmp bl, 0x5c
je 0x1002b094
cmp bl, 0x2f
je 0x1002b094
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x1002b080
jmp 0x1002b09e
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 0x10065b8c
push eax
lea eax, [ebp - 0x410]
add eax, edi
push eax
call fcn.1002add0
add edi, eax
lea eax, [ebp - 0x410]
push eax
mov dword [ebp - 0x520], edi
call fcn.1004db32
add esp, 0x14
test eax, eax
jne 0x1002b0e6
xor edi, edi
test bl, bl
cmovne edi, esi
test edi, edi
jne 0x1002b075
mov edi, dword [ebp - 0x524]
mov ebx, 0x1005f6d4
mov eax, dword [ebp - 0x51c]
mov edx, dword [eax + 8]
test edx, edx
je 0x1002b138
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002b103
mov eax, dword [ebp - 0x51c]
sub ecx, esi
je 0x1002b138
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.1002add0
add esp, 0x14
jmp 0x1002b159
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.1002add0
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.10017880
add esp, 0x18
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002b19a
test al, 0x50
je 0x1002b3dd
cmp byte [ebp - 0x515], 0
je 0x1002b446
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 0x1002b446
cmp dword [ebp - 0x51c], 0
je 0x1002b446
lea eax, [ebp - 0x514]
push 0x10065bb8
push eax
call fcn.1004b66b
mov ebx, eax
add esp, 8
mov dword [ebp - 0x524], ebx
test ebx, ebx
je 0x1002b426
push dword [0x1007e118]
push str.___This_file_was_auto_generated_by_SourceMod__v_s__n
push ebx
call fcn.1001ce90
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.1001ce90
push 0x10065c0c
push ebx
call fcn.1001ce90
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 0x1002b3c5
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 0x1002b3ae
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 0x1002b2a3
mov esi, ebx
sub edi, esi
mov esi, dword [ebp - 0x520]
sub edx, 1
je 0x1002b2a3
mov byte [eax], cl
inc eax
mov cl, byte [edi + eax]
test cl, cl
jne 0x1002b294
mov byte [eax], 0
mov al, byte [ebp - 0x208]
test al, al
je 0x1002b2ef
mov esi, dword [ebp - 0x524]
mov edi, ebx
test al, al
je 0x1002b2d2
nop dword [eax]
cmp al, 0xa
je 0x1002b2ce
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002b2c0
jmp 0x1002b2d2
mov byte [edi], 0
inc edi
push ebx
push str.____s_n
push esi
call fcn.1001ce90
mov al, byte [edi]
add esp, 0xc
mov ebx, edi
test al, al
jne 0x1002b2b6
mov esi, dword [ebp - 0x520]
mov ebx, dword [ebp - 0x524]
push str._____n
push ebx
call fcn.1001ce90
mov edi, dword [ebp - 0x52c]
add esp, 8
mov ecx, edi
call fcn.10003d60
push eax
push str.___Default:___s__n
push ebx
call fcn.1001ce90
add esp, 0xc
lea eax, [ebp - 0x528]
mov ecx, edi
push eax
call fcn.10003d20
test al, al
je 0x1002b352
movss xmm0, dword [ebp - 0x528]
sub esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.___Minimum:___02f__n
push ebx
call fcn.1001ce90
add esp, 0x10
lea eax, [ebp - 0x528]
mov ecx, edi
push eax
call fcn.10003d40
test al, al
je 0x1002b385
movss xmm0, dword [ebp - 0x528]
sub esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.___Maximum:___02f__n
push ebx
call fcn.1001ce90
add esp, 0x10
mov ecx, edi
call fcn.10003d60
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push eax
push str._s___s__n
push ebx
call fcn.1001ce90
push 0x10065c68
push ebx
call fcn.1001ce90
add esp, 0x18
mov eax, dword [ebp - 0x51c]
mov esi, dword [esi + 4]
mov dword [ebp - 0x520], esi
cmp esi, dword [eax]
jne 0x1002b250
push 0x10065c6c
push ebx
call fcn.1001ce90
push ebx
mov byte [ebp + 0x10], 0
call fcn.1004b530
add esp, 0xc
lea eax, [ebp - 0x30c]
push eax
push str.exec__s_n
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.1002a080
mov ecx, dword [0x1007f6f0]
lea edx, [ebp - 0x104]
add esp, 0x10
mov eax, dword [ecx]
push edx
call dword [eax + 0x90]
mov al, byte [ebp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100400c2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1007eba8]
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 [0x1007eba8]
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.100400c2
mov esp, ebp
pop ebp
ret