Function at 0x7cf5eaa2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb20
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x14], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsAndAttributesW]
test eax, eax
je 0x7cf5edc6
push dword [ebp + 8]
mov ebx, 0x21c
lea eax, [ebp - 0xb20]
push ebx
push eax
push 0x7cf3339c
push 0x7cf37ebc
push 0x7cf43830
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x7cf5eb17
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xb20]
push eax
call sym.SHELL32.dll_SHCLSIDFromString
test eax, eax
jl 0x7cf5eb17
lea edi, [esi + 0xc]
lea esi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [eax + 8], 1
push dword [ebp + 8]
lea eax, [ebp - 0xb20]
push ebx
push eax
push 0x7cf3339c
push 0
push 0x7cf43830
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0xb20], 0
lea ebx, [ebp - 0xb20]
je 0x7cf5edc6
mov ecx, 0x8d
xor eax, eax
lea edi, [ebp - 0x27c]
push 8
rep stosd dword es:[edi], eax
and dword [ebp - 8], 0
pop ecx
lea edi, [ebp - 0x38]
mov dword [ebp - 4], 0x500
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x27c]
push eax
push ebx
call sym.SHELL32.dll_SHCLSIDFromString
test eax, eax
jl 0x7cf5edaf
push 0x10
mov edi, 0x7cf39df0
pop ecx
lea esi, [ebp - 0x27c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x7cf5edaf
push dword [ebp + 8]
lea eax, [ebp - 0x2d8]
xor esi, esi
push 0x2d
push eax
push 0x7cf3339c
push ebx
push 0x7cf43830
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x7cf5ebda
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x2d8]
push eax
call sym.SHELL32.dll_SHCLSIDFromString
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0xc], ecx
push dword [ebp + 8]
push esi
push 0x7cf357ac
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
or eax, 0x80000000
push 0x10
mov dword [ebp - 0x25c], eax
mov word [ebp - 0x6e8], si
pop ecx
mov edi, 0x7cf39300
lea esi, [ebp - 0x27c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x7cf5ec7f
lea eax, [ebp - 0x6e8]
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.7cff98ca
test eax, eax
jl 0x7cf5ec7f
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
lea eax, [ebp - 0x6e8]
push 7
push eax
push 0x7cf3cb00
lea esi, [ebp - 0x6e8]
call edi
test eax, eax
jne 0x7cf5ec50
lea esi, [ebp - 0x6da]
jmp 0x7cf5ec6a
lea eax, [ebp - 0x6e8]
push 0x11
push eax
push 0x7cf439c8
call edi
test eax, eax
jne 0x7cf5ec6a
lea esi, [ebp - 0x6c6]
push esi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
and word [ebp - 0x4e2], 0
jmp 0x7cf5ecb4
push dword [ebp + 8]
push 0
push 0x7cf43980
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x258], eax
jne 0x7cf5ecb4
push 0x10
lea edi, [ebp - 0x27c]
pop ecx
mov esi, 0x7cf392f0
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x7cf5edaf
lea eax, [ebp - 0x254]
push 0x104
push eax
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.SHLWAPI.dll_SHUnicodeToUnicode]
mov eax, dword [ebp - 4]
add eax, eax
push eax
call sym.SHELL32.dll_SHAlloc
test eax, eax
mov dword [ebp - 8], eax
je 0x7cf5edaf
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x10], eax
xor esi, esi
push dword [ebp + 8]
push 0x8fffffff
push dword [esi + 0x7cf43868]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp + esi - 0x20], eax
add esi, 4
cmp esi, 8
jl 0x7cf5ecef
xor esi, esi
mov eax, esi
sub eax, 3
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push dword [esi*4 + 0x7cf43858]
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.7cff97e2
mov dword [ebp + esi*4 - 0x30], eax
inc esi
cmp esi, 3
jle 0x7cf5ed12
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 4]
test byte [ebp - 0x259], 0x20
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x4c], eax
jne 0x7cf5ed91
push 0x10
mov edi, 0x7cf39300
pop ecx
lea esi, [ebp - 0x27c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x7cf5ed91
push 0x10
mov edi, 0x7cf392f0
pop ecx
lea esi, [ebp - 0x27c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x7cf5edaf
mov ecx, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x27c]
push ParseURLA
push eax
call fcn.7cf60c12
push dword [ebp - 8]
call sym.SHELL32.dll_SHFree
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 + 2], 0
lea ebx, [ebx + eax*2 + 2]
jne 0x7cf5eb48
pop edi
pop esi
pop ebx
leave
ret 8