Function at 0x10020e1
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
lea ecx, [ebp - 0x20c]
push esi
push edi
push dword [ebp + 8]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
cmp byte [ebp - 0x20c], 0x22
jne 0x1002118
lea eax, [ebp - 0x20b]
push 0x1001358
mov dword [ebp - 4], eax
jmp 0x1002126
lea eax, [ebp - 0x20c]
push 0x1001354
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.01002066
push dword [ebp - 4]
mov ebx, eax
call fcn.01002822
test eax, eax
jne 0x100215c
push 0x1015774
lea eax, [ebp - 0x108]
push eax
call edi
push dword [ebp - 4]
lea ecx, [ebp - 0x108]
push ecx
call fcn.010027e1
jmp 0x1002168
push dword [ebp - 4]
lea ecx, [ebp - 0x108]
push ecx
call edi
push 0x2e
push dword [ebp - 4]
call fcn.01005f40
add esp, 8
test eax, eax
je 0x10022c2
push 0x100134c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10022c2
push 0x1001348
mov dword [ebp - 4], ebx
lea ebx, [ebp - 4]
push ebx
call fcn.01002066
mov esi, eax
push 0x1010168
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test esi, esi
je 0x10021d8
cmp byte [esi], 0
je 0x10021bb
mov dword [ebp - 4], esi
push 0x1001344
lea eax, [ebp - 4]
push eax
call fcn.01002066
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x10021d8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x200
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor eax, eax
test esi, esi
jne 0x1002204
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.01003e4b
xor eax, eax
jmp 0x10023d8
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x1002211
mov eax, 0x1010168
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0x100133c
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x108]
push edx
mov dword [0x1015fd0], eax
push 8
mov dword [ecx], 1
push esi
push 0x1001338
push 0x100132c
push 0x1001324
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x100227d
mov eax, dword [ebp - 4]
or byte [0x1015fc4], 4
cmp byte [eax], 0
jne 0x100226b
mov eax, 0x1010168
push eax
push dword [ebp + 8]
call edi
lea ecx, [ebp - 0x108]
push ecx
jmp 0x10023cb
mov eax, dword [ebp - 4]
and byte [0x1015fc4], 0xfb
cmp byte [eax], 0
jne 0x1002291
mov eax, 0x1010168
cmp word [0x1016704], 0
lea ecx, [ebp - 0x108]
push ecx
push eax
mov eax, 0x1001318
je 0x10022ad
mov eax, 0x1001308
push eax
push 0x10100c8
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x10023ce
push 0x2e
push dword [ebp - 4]
call fcn.01005f40
add esp, 8
test eax, eax
je 0x1002347
push 0x1001300
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002347
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push str.Command.com__c__s
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
add esi, 8
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x100232c
push 0
push 0x10
push 0
push 0
push 0x4b5
push 0
call fcn.01003e4b
xor eax, eax
jmp 0x10023d8
lea eax, [ebp - 0x108]
push eax
push str.Command.com__c__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x10023ce
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
add esi, 0xa
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor eax, eax
test esi, esi
jne 0x1002389
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.01003e4b
xor eax, eax
jmp 0x10023d8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10023c8
test al, 0x10
jne 0x10023c8
lea eax, [ebp - 0x108]
push eax
push esi
call edi
test ebx, ebx
je 0x10023ce
cmp byte [ebx], 0
je 0x10023ce
push 0x1001354
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x10023ce
push dword [ebp + 8]
push esi
call edi
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc