Function at 0x4197e5
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8621
mov eax, dword fs:[0]
push eax
mov eax, 0x22cc
call fcn.0058c7d0
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x22d8]
call fcn.0046c48f
push 7
xor edi, edi
pop ecx
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x2254], ecx
mov dword [ebp - 0x2258], edi
mov word [ebp - 0x2268], ax
mov dword [ebp - 0x226c], ecx
mov dword [ebp - 0x2270], edi
mov word [ebp - 0x2280], ax
mov dword [ebp - 0x223c], ecx
mov dword [ebp - 0x2240], edi
mov word [ebp - 0x2250], ax
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2228], edi
mov word [ebp - 0x2238], ax
mov dword [ebp - 0x2284], ecx
mov dword [ebp - 0x2288], edi
mov word [ebp - 0x2298], ax
push 0x2f
push esi
lea ecx, [ebp - 0x22d8]
mov byte [ebp - 4], 5
call fcn.0046d9ee
lea ecx, [ebp - 0x22d8]
call fcn.0046c815
cmp eax, 4
jne 0x419d8b
push edi
lea ecx, [ebp - 0x22d8]
call fcn.0046caa8
mov esi, eax
cmp word [esi], di
jne 0x4198cb
mov eax, edi
jmp 0x4198d2
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2268]
call fcn.00403cef
push 1
lea ecx, [ebp - 0x22d8]
call fcn.0046caa8
mov esi, eax
cmp word [esi], di
jne 0x4198f7
mov eax, edi
jmp 0x4198fe
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2280]
call fcn.00403cef
push 2
lea ecx, [ebp - 0x22d8]
call fcn.0046caa8
mov esi, eax
cmp word [esi], di
jne 0x419923
mov eax, edi
jmp 0x41992a
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2250]
call fcn.00403cef
push 3
lea ecx, [ebp - 0x22d8]
call fcn.0046caa8
mov esi, eax
cmp word [esi], di
jne 0x41994f
mov eax, edi
jmp 0x419956
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2238]
call fcn.00403cef
push 8
pop ebx
cmp dword [ebp - 0x226c], ebx
lea eax, [ebp - 0x2280]
cmovae eax, dword [ebp - 0x2280]
mov esi, 0x5c3770
push esi
push eax
call fcn.0058b290
pop ecx
pop ecx
test eax, eax
jne 0x419d8b
cmp dword [ebp - 0x2224], ebx
lea eax, [ebp - 0x2238]
cmovae eax, dword [ebp - 0x2238]
push esi
push eax
call fcn.0058b290
pop ecx
pop ecx
test eax, eax
jne 0x419d8b
cmp dword [ebp - 0x2254], ebx
lea eax, [ebp - 0x2268]
cmovae eax, dword [ebp - 0x2268]
push 0x5c3774
push eax
call fcn.0058b527
pop ecx
pop ecx
test eax, eax
je 0x419d8b
cmp dword [ebp - 0x2254], ebx
lea eax, [ebp - 0x2268]
cmovae eax, dword [ebp - 0x2268]
push str.HKEY_LOCAL_MACHINE
push eax
call fcn.0058b527
pop ecx
pop ecx
test eax, eax
jne 0x419bad
lea ecx, [ebp - 0x22c0]
call fcn.00462e10
cmp dword [ebp - 0x226c], ebx
lea esi, [ebp - 0x2280]
cmovae esi, dword [ebp - 0x2280]
cmp dword [ebp - 0x223c], ebx
lea eax, [ebp - 0x2250]
cmovae eax, dword [ebp - 0x2250]
push 0x5c1a08
push eax
mov byte [ebp - 4], 6
call fcn.0058b073
pop ecx
pop ecx
test eax, eax
jne 0x419a5a
push edi
push 0x5bef10
lea ecx, [ebp - 0x2250]
call fcn.00403cef
cmp dword [ebp - 0x2224], ebx
lea eax, [ebp - 0x2238]
cmovae eax, dword [ebp - 0x2238]
push 0x5c1a08
push eax
call fcn.0058b073
pop ecx
pop ecx
test eax, eax
jne 0x419a8f
push edi
push 0x5bef10
lea ecx, [ebp - 0x2238]
call fcn.00403cef
test esi, esi
je 0x419a9c
cmp word [esi], 0x5c
jne 0x419a9c
add esi, 2
push 0x2000000
push esi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x22c0]
call fcn.004632c3
test eax, eax
jne 0x419acc
lea ecx, [ebp - 0x22c0]
mov byte [ebp - 4], 5
call fcn.00462e5e
mov esi, edi
jmp 0x419d8e
cmp dword [ebp - 0x2224], ebx
lea eax, [ebp - 0x2238]
cmovae eax, dword [ebp - 0x2238]
push 0x5bef10
push eax
call fcn.0058b073
pop ecx
pop ecx
test eax, eax
je 0x419b99
cmp dword [ebp - 0x2224], ebx
lea eax, [ebp - 0x2238]
cmovae eax, dword [ebp - 0x2238]
push 0x5c3780
push eax
call fcn.0058b527
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x22c0]
lea eax, [ebp - 0x2250]
jne 0x419b58
cmp dword [ebp - 0x223c], ebx
cmovae eax, dword [ebp - 0x2250]
push eax
call fcn.0046315b
test eax, eax
je 0x419ab6
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2220]
push 0x1001
push eax
call fcn.0058b12c
add esp, 0x10
jmp 0x419b99
cmp dword [ebp - 0x223c], ebx
cmovae eax, dword [ebp - 0x2250]
push eax
call fcn.0046315b
mov ecx, eax
test ecx, ecx
je 0x419ab6
cmp dword [ebp - 0x2224], ebx
lea eax, [ebp - 0x2238]
cmovae eax, dword [ebp - 0x2238]
push eax
push ecx
call fcn.0058b527
pop ecx
pop ecx
test eax, eax
jne 0x419ab6
lea ecx, [ebp - 0x22c0]
mov byte [ebp - 4], 5
call fcn.00462e5e
jmp 0x419d86
mov esi, 0x105
push esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x419c36
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.0058b1ea
pop ecx
pop ecx
test eax, eax
je 0x419bde
cmp word [eax + 2], di
je 0x419bf3
push 0x5bef0c
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0058af59
add esp, 0xc
cmp word [ebp - 0x21c], 0
jne 0x419c01
mov eax, edi
jmp 0x419c0e
lea eax, [ebp - 0x21c]
push eax
call fcn.00588144
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x2298]
call fcn.00403cef
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2268]
push eax
lea ecx, [ebp - 0x2298]
call fcn.00403ac5
cmp dword [ebp - 0x2284], ebx
lea eax, [ebp - 0x2298]
cmovae eax, dword [ebp - 0x2298]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419ac5
cmp dword [ebp - 0x2254], ebx
lea ecx, [ebp - 0x2268]
cmovae ecx, dword [ebp - 0x2268]
cmp dword [ebp - 0x223c], ebx
push ecx
push 0x1001
lea ecx, [ebp - 0x2220]
push ecx
lea edx, [ebp - 0x2250]
cmovae edx, dword [ebp - 0x2250]
cmp dword [ebp - 0x226c], ebx
push 0x5bef10
lea eax, [ebp - 0x2280]
cmovae eax, dword [ebp - 0x2280]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x2224], ebx
lea eax, [ebp - 0x2238]
cmovae eax, dword [ebp - 0x2238]
push 0x2a
push eax
call fcn.0058afc5
pop ecx
pop ecx
test eax, eax
jne 0x419cfc
cmp dword [ebp - 0x2224], ebx
lea eax, [ebp - 0x2238]
cmovae eax, dword [ebp - 0x2238]
push eax
lea eax, [ebp - 0x2220]
push eax
call fcn.0058b527
pop ecx
pop ecx
test eax, eax
jne 0x419ac5
jmp 0x419d86
lea ecx, [ebp - 0x22b0]
call fcn.0046c48f
cmp dword [ebp - 0x2224], ebx
lea eax, [ebp - 0x2238]
cmovae eax, dword [ebp - 0x2238]
push 0x2a
push eax
lea ecx, [ebp - 0x22b0]
mov byte [ebp - 4], 7
call fcn.0046d9ee
push edi
lea ecx, [ebp - 0x22b0]
call fcn.0046caa8
push edi
lea ecx, [ebp - 0x22b0]
mov esi, eax
call fcn.0046cb38
inc eax
test esi, esi
jne 0x419d4f
mov eax, edi
jmp 0x419d58
push eax
push esi
call fcn.0058b10d
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x2220]
push eax
push esi
call fcn.0058b693
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x22b0]
test eax, eax
je 0x419d81
call fcn.0046c546
jmp 0x419ac5
call fcn.0046c546
xor esi, esi
inc esi
jmp 0x419d8e
or esi, 0xffffffff
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [ebp - 0x2298]
call fcn.00403a7f
push edi
push ebx
lea ecx, [ebp - 0x2238]
call fcn.00403a7f
push edi
push ebx
lea ecx, [ebp - 0x2250]
call fcn.00403a7f
push edi
push ebx
lea ecx, [ebp - 0x2280]
call fcn.00403a7f
push edi
push ebx
lea ecx, [ebp - 0x2268]
call fcn.00403a7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22d8]
call fcn.0046c546
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588a1c
leave
ret 4