Function at 0x4a1a00
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58abf1
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a8], ecx
call fcn.00402270
mov dword [ebp - 0x448], eax
xor eax, eax
mov word [ebp - 0x444], ax
push 0x40e
push 0
lea ecx, [ebp - 0x442]
push ecx
call fcn.00568440
add esp, 0xc
push 0x207
lea edx, [ebp - 0x444]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], 0
je 0x4a1aa8
cmp dword [ebp - 0x28], 0x7a
je 0x4a1aa8
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x59e248
lea ecx, [ebp - 0x444]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x4a1ad3
push 0x410
lea edx, [ebp - 0x444]
push edx
call fcn.004020c0
add esp, 8
push 0x207
push 0x59e26c
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea ecx, [ebp - 0x444]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a1ae9
jmp 0x4a1dbe
mov byte [ebp - 0x18], 0
xor edx, edx
mov dword [ebp - 0x17], edx
mov word [ebp - 0x13], dx
mov byte [ebp - 0x11], dl
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
push 0x59a60b
lea ecx, [ebp - 0x468]
call fcn.00406050
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
jne 0x4a1b3b
mov dword [ebp - 0x4ac], 0
jmp 0x4a1b9f
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3fffffff
jle 0x4a1b60
mov dword [ebp - 0x4b0], 0
jmp 0x4a1b93
mov eax, dword [ebp - 0x1c]
shl eax, 1
call fcn.00570840
mov dword [ebp - 0x4b4], esp
mov eax, dword [ebp - 0x448]
push eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x4b4]
push eax
call fcn.004022d0
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
mov dword [ebp - 0x4ac], ecx
mov edx, dword [ebp - 0x4ac]
push edx
push 8
lea eax, [ebp - 0x18]
push eax
push 0x59a61e
push str.FILE_READONLY
push 0x59e2a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4a1c3c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x484]
call fcn.00406050
mov dword [ebp - 0x4b8], eax
mov edx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4bc], edx
mov byte [ebp - 4], 1
push 0x59e2b0
mov eax, dword [ebp - 0x4bc]
push eax
call fcn.00407ad0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4a1c11
mov dword [ebp - 0x4c0], 0x59e2b4
jmp 0x4a1c1b
mov dword [ebp - 0x4c0], 0x59e2b8
mov edx, dword [ebp - 0x4c0]
push edx
lea ecx, [ebp - 0x468]
call fcn.00408050
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x484]
call fcn.004060d0
lea eax, [ebp - 0x444]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4a1c57
mov dword [ebp - 0x4c4], 0
jmp 0x4a1cbb
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3fffffff
jle 0x4a1c7c
mov dword [ebp - 0x4c8], 0
jmp 0x4a1caf
mov eax, dword [ebp - 0x1c]
shl eax, 1
call fcn.00570840
mov dword [ebp - 0x4cc], esp
mov edx, dword [ebp - 0x448]
push edx
mov eax, dword [ebp - 0x1c]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x4cc]
push edx
call fcn.004022d0
mov dword [ebp - 0x4c8], eax
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4c4], eax
mov ecx, dword [ebp - 0x4c4]
push ecx
push 8
lea edx, [ebp - 0x24]
push edx
push 0x59a61f
push str.FILE_HIDE
push 0x59e2c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4a1d58
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00406050
mov dword [ebp - 0x4d0], eax
mov ecx, dword [ebp - 0x4d0]
mov dword [ebp - 0x4d4], ecx
mov byte [ebp - 4], 2
push 0x59e2d4
mov edx, dword [ebp - 0x4d4]
push edx
call fcn.00407ad0
add esp, 8
movzx eax, al
test eax, eax
je 0x4a1d2d
mov dword [ebp - 0x4d8], 0x59e2d8
jmp 0x4a1d37
mov dword [ebp - 0x4d8], 0x59e2dc
mov ecx, dword [ebp - 0x4d8]
push ecx
lea ecx, [ebp - 0x468]
call fcn.00408050
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a0]
call fcn.004060d0
lea ecx, [ebp - 0x468]
call fcn.0045ba80
movzx edx, al
test edx, edx
je 0x4a1d7e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.004060d0
jmp 0x4a1dbe
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4a4], esp
lea eax, [ebp - 0x468]
push eax
call fcn.00406090
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp + 8]
call fcn.00406290
push eax
call fcn.004954f0
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.004060d0
lea esp, [ebp - 0x4e0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret 4