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

Disassembly:
mov eax, 0x166c
call fcn.004acae0
push ebx
push ebp
mov edx, dword [esp + 0x1678]
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov dword [esp + 0x18], esi
mov ebx, dword [esi + 0x60c]
cmp ebx, ebp
je 0x4c96ff
cmp edx, ebp
jle 0x4c96e6
cmp edx, 0xc350
jge 0x4c96e6
mov eax, dword [esi + edx*4 + 0xc50]
cmp eax, ebp
je 0x4c96ff
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x4c96ff
cmp edx, 0x4190ab00
jl 0x4c96ff
mov eax, dword [esi + edx*4 - 0x63f9270]
cmp eax, ebp
je 0x4c96ff
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x226]
mov word [esp + 0x224], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x224]
test eax, eax
je 0x4c9913
mov eax, dword [esi + 0x14]
mov ecx, 2
cmp eax, ecx
jne 0x4c9913
cmp edx, ebp
je 0x4c9913
cmp edx, ecx
jne 0x4c9779
add esi, 0x3d0
lea ecx, [esp + 0x224]
push esi
push 0x4f6580
push 0x102
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x234]
push ebp
push edx
call fcn.004db1d0
add esp, 0x18
jmp 0x4c9913
cmp ebx, ebp
je 0x4c9913
cmp edx, ebp
jle 0x4c979e
cmp edx, 0xc350
jge 0x4c979e
mov eax, dword [esi + edx*4 + 0xc50]
cmp eax, ebp
je 0x4c9913
jmp 0x4c97b9
cmp edx, 0x4190ab00
jl 0x4c9913
mov eax, dword [esi + edx*4 - 0x63f9270]
cmp eax, ebp
je 0x4c9913
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4c9913
cmp eax, dword [esi + 0x624]
jge 0x4c9913
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 7
add eax, ebx
cmp eax, ebp
je 0x4c9913
cmp dword [eax], edx
jne 0x4c9913
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ebp
cmp edx, ecx
jne 0x4c97fe
mov dword [esp + 0x10], 1
mov ebx, dword [eax]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42e]
mov word [esp + 0x42c], bp
cmp ebx, 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x4c98a7
mov ebp, dword [sym.imp.MSVCRT.dll_swprintf]
jmp 0x4c982f
mov esi, dword [esp + 0x18]
push ebx
mov ecx, esi
call fcn.004c7e50
cmp eax, 0xffffffff
je 0x4c9911
mov ecx, dword [esp + 0x18]
lea eax, [eax + eax*4]
lea edi, [esp + 0x1e]
lea edx, [esp + 0x42c]
mov ebx, dword [ecx + 0x60c]
lea esi, [eax + eax*4]
shl esi, 7
add esi, ebx
mov ecx, 0x81
xor eax, eax
push edx
mov ebx, dword [esi + 8]
mov word [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20]
push 0x4f6580
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x1c]
add esi, 0x48
lea edx, [esp + 0x42c]
push ecx
push esi
push str._s_s
push edx
call ebp
add esp, 0x10
cmp ebx, 2
jne 0x4c982b
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.004ce010
lea ecx, [esp + 0x24]
push ebp
push ecx
call fcn.004db1d0
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ebp
lea edx, [esp + 0x42c]
lea eax, [esp + 0x1c]
push edx
push eax
je 0x4c98f4
push 0x4f6614
jmp 0x4c98f9
push str._s_s.url
lea ecx, [esp + 0x230]
push 0x102
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4c9913
xor ebp, ebp
lea edx, [esp + 0x224]
mov dword [esp + 0x14], ebp
push edx
push ebp
push str.IconIndex
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x636]
mov word [esp + 0x634], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x224]
lea ecx, [esp + 0x634]
push eax
push 0x823
push ecx
push 0x50fd10
push str.IconFile
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x634]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4c999f
push eax
lea eax, [esp + 0x18]
push eax
push ebp
lea ecx, [esp + 0x640]
push esi
push ecx
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x166c
ret 4