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

Disassembly:
push ebp
lea ebp, [esp - 0x594]
sub esp, 0x614
mov eax, dword [0x100a2cc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp + 0x59c]
mov dword [ebp + 0x590], eax
lea eax, [ebp + 0x388]
push eax
call esi
cmp byte [ebp + 0x388], 0x22
jne 0x1002456
lea eax, [ebp + 0x389]
push 0x1001348
jmp 0x1002461
lea eax, [ebp + 0x388]
push 0x1001344
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.010018ac
mov edi, dword [ebp - 0x7c]
push edi
mov dword [ebp - 0x80], eax
call fcn.01001e4a
test eax, eax
lea eax, [ebp + 0x48c]
jne 0x100249a
push 0x100ac44
push eax
call esi
push edi
lea eax, [ebp + 0x48c]
push eax
call fcn.01005f34
jmp 0x100249e
push edi
push eax
call esi
push 0x2e
push edi
call fcn.01005fea
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
je 0x1002634
push 0x100133c
push eax
call ebx
test eax, eax
jne 0x1002634
lea eax, [ebp + 0x48c]
push eax
call fcn.01005fcc
test eax, eax
jne 0x10024ea
push eax
push 0x10
push eax
lea ecx, [ebp + 0x48c]
push ecx
push 0x525
push eax
jmp 0x10026b7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
push 0x1001338
lea eax, [ebp - 0x7c]
push eax
call fcn.010018ac
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x100a0ac
mov edi, eax
call ebx
test edi, edi
je 0x1002534
cmp byte [edi], 0
je 0x1002519
mov dword [ebp - 0x7c], edi
push 0x1001334
lea eax, [ebp - 0x7c]
push eax
call fcn.010018ac
mov edi, dword [ebp - 0x7c]
cmp byte [edi], 0
je 0x1002537
push edi
call ebx
jmp 0x1002537
mov edi, dword [ebp - 0x7c]
push 0x200
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x7c], eax
jne 0x100255d
push ecx
push 0x10
push ecx
push ecx
push 0x4b5
push ecx
jmp 0x10026b7
cmp byte [edi], 0
mov ebx, 0x100a0ac
mov eax, edi
jne 0x100256b
mov eax, ebx
lea ecx, [ebp + 0x48c]
push ecx
push 0
push 0x100132c
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x100aa60], eax
mov eax, dword [ebp + 0x5a4]
mov dword [eax], 1
lea eax, [ebp + 0x48c]
push eax
push 8
push dword [ebp - 0x7c]
push 0x1001271
push 0x1001320
push 0x1001318
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x10025de
or dword [0x100b494], 4
cmp byte [edi], 0
jne 0x10025c4
mov edi, ebx
push edi
push dword [ebp + 0x59c]
call esi
lea eax, [ebp + 0x48c]
push eax
push dword [ebp - 0x7c]
call esi
jmp 0x100271b
and dword [0x100b494], 0xfffffffb
cmp word [0x100aa64], 0
jne 0x1002609
push 0x104
lea eax, [ebp + 0x48c]
push eax
push eax
mov esi, 0x100130c
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x100260e
mov esi, 0x10012fc
cmp byte [edi], 0
jne 0x1002615
mov edi, ebx
lea eax, [ebp + 0x48c]
push eax
push edi
push esi
push 0x100a01c
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x100271b
push 0x2e
push edi
call fcn.01005fea
xor edi, edi
cmp eax, edi
je 0x1002698
push 0x10012f4
push eax
call ebx
test eax, eax
jne 0x1002698
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, str.Command.com__c__s
push edi
call esi
mov ebx, eax
lea eax, [ebp + 0x48c]
push eax
call esi
lea eax, [ebx + eax + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x7c], eax
je 0x100254d
lea ecx, [ebp + 0x48c]
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x100271b
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x7c], eax
jne 0x10026c0
push edi
push 0x10
push edi
push edi
push 0x4b5
push edi
call fcn.01003a62
xor eax, eax
jmp 0x1002729
lea eax, [ebp + 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002703
test al, 0x10
jne 0x1002703
lea eax, [ebp + 0x48c]
push eax
lea eax, [ebp - 0x78]
push eax
call esi
mov ebx, dword [ebp - 0x80]
cmp ebx, edi
je 0x100270f
cmp byte [ebx], 0
je 0x100270f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1001344
lea eax, [ebp - 0x78]
push eax
call esi
push ebx
jmp 0x1002709
push dword [ebp + 0x59c]
lea eax, [ebp - 0x78]
push eax
call esi
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.010022f3
mov eax, dword [ebp + 0x5a0]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x590]
pop edi
pop esi
pop ebx
call fcn.01005e37
add ebp, 0x594
leave
ret 0xc