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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call edi
cmp byte [ebp - 0x210], 0x22
jne 0x1001938
lea eax, [ebp - 0x20f]
push 0x100131c
mov dword [ebp - 4], eax
jmp 0x1001946
lea eax, [ebp - 0x210]
push 0x1001318
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.010018a2
push dword [ebp - 4]
mov ebx, eax
call fcn.010021c5
test eax, eax
jne 0x100197c
lea eax, [ebp - 0x10c]
push 0x100ae84
push eax
call edi
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
call fcn.01005c31
jmp 0x1001988
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
call edi
push 0x2e
push dword [ebp - 4]
call fcn.01005bff
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1001b1d
push 0x1001310
push eax
call esi
test eax, eax
jne 0x1001b1d
lea eax, [ebp - 0x10c]
push eax
call fcn.01005be1
test eax, eax
jne 0x10019d6
push eax
push 0x10
lea ecx, [ebp - 0x10c]
push eax
push ecx
push 0x525
push eax
jmp 0x1001bab
lea eax, [ebp - 4]
push 0x100130c
push eax
mov dword [ebp - 4], ebx
call fcn.010018a2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x100a0b8
mov ebx, eax
call esi
test ebx, ebx
je 0x1001a1b
cmp byte [ebx], 0
je 0x1001a02
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push 0x1001308
push eax
call fcn.010018a2
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x1001a1b
push eax
call esi
push 0x200
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ebx, ebx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1001a41
push ebx
push 0x10
push ebx
push ebx
push 0x4b5
push ebx
jmp 0x1001bab
mov eax, dword [ebp - 4]
mov esi, 0x100a0b8
cmp byte [eax], 0
jne 0x1001a50
mov eax, esi
lea ecx, [ebp - 0x10c]
push ecx
push ebx
push 0x1001300
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x100b824], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
lea eax, [ebp - 0x10c]
push eax
push 8
push dword [ebp - 8]
push 0x10012fc
push 0x10012f0
push 0x10012e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x1001abf
mov eax, dword [ebp - 4]
or dword [0x100b6d4], 4
cmp byte [eax], 0
je 0x1001aa8
mov esi, eax
push esi
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 8]
call edi
jmp 0x1001c1e
and dword [0x100b6d4], 0xfffffffb
cmp word [0x100bc04], bx
jne 0x1001aef
lea eax, [ebp - 0x10c]
push 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
mov edi, 0x10012dc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x1001af4
mov edi, 0x10012cc
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x1001afe
mov esi, eax
lea eax, [ebp - 0x10c]
push eax
push esi
push edi
push 0x100a018
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x1001c1e
push 0x2e
push dword [ebp - 4]
call fcn.01005bff
test eax, eax
je 0x1001b8a
push 0x10012c4
push eax
call esi
test eax, eax
jne 0x1001b8a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x10c]
push eax
call esi
mov edi, str.Command.com__c__s
mov ebx, eax
push edi
call esi
lea eax, [ebx + eax + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov dword [ebp - 8], eax
cmp eax, ecx
jne 0x1001b73
push ecx
push 0x10
push ecx
push ecx
push 0x4b5
push ecx
jmp 0x1001bab
lea ecx, [ebp - 0x10c]
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x1001c1e
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor esi, esi
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x1001bb4
push esi
push 0x10
push esi
push esi
push 0x4b5
push esi
call fcn.01003e44
xor eax, eax
jmp 0x1001c29
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001c03
test al, 0x10
jne 0x1001c03
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x610]
push eax
call edi
cmp ebx, esi
je 0x1001c0f
cmp byte [ebx], 0
je 0x1001c0f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x610]
push 0x1001318
push eax
call esi
lea eax, [ebp - 0x610]
push ebx
push eax
call esi
jmp 0x1001c0f
push dword [ebp + 8]
lea eax, [ebp - 0x610]
push eax
call edi
push dword [ebp - 8]
lea eax, [ebp - 0x610]
push eax
call fcn.0100278f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push 1
mov dword [eax], ecx
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc