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

Disassembly:
mov eax, 0x166c
call fcn.004ace40
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 0x4c9a2f
cmp edx, ebp
jle 0x4c9a16
cmp edx, 0xc350
jge 0x4c9a16
mov eax, dword [esi + edx*4 + 0xc50]
cmp eax, ebp
je 0x4c9a2f
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x4c9a2f
cmp edx, 0x4190ab00
jl 0x4c9a2f
mov eax, dword [esi + edx*4 - 0x63f9270]
cmp eax, ebp
je 0x4c9a2f
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 0x4c9c43
mov eax, dword [esi + 0x14]
mov ecx, 2
cmp eax, ecx
jne 0x4c9c43
cmp edx, ebp
je 0x4c9c43
cmp edx, ecx
jne 0x4c9aa9
add esi, 0x3d0
lea ecx, [esp + 0x224]
push esi
push 0x4f6574
push 0x102
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x234]
push ebp
push edx
call fcn.004db580
add esp, 0x18
jmp 0x4c9c43
cmp ebx, ebp
je 0x4c9c43
cmp edx, ebp
jle 0x4c9ace
cmp edx, 0xc350
jge 0x4c9ace
mov eax, dword [esi + edx*4 + 0xc50]
cmp eax, ebp
je 0x4c9c43
jmp 0x4c9ae9
cmp edx, 0x4190ab00
jl 0x4c9c43
mov eax, dword [esi + edx*4 - 0x63f9270]
cmp eax, ebp
je 0x4c9c43
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4c9c43
cmp eax, dword [esi + 0x624]
jge 0x4c9c43
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 7
add eax, ebx
cmp eax, ebp
je 0x4c9c43
cmp dword [eax], edx
jne 0x4c9c43
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ebp
cmp edx, ecx
jne 0x4c9b2e
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 0x4c9bd7
mov ebp, dword [sym.imp.MSVCRT.dll_swprintf]
jmp 0x4c9b5f
mov esi, dword [esp + 0x18]
push ebx
mov ecx, esi
call fcn.004c8180
cmp eax, 0xffffffff
je 0x4c9c41
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 0x4f6574
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 0x4c9b5b
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.004ce300
lea ecx, [esp + 0x24]
push ebp
push ecx
call fcn.004db580
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ebp
lea edx, [esp + 0x42c]
lea eax, [esp + 0x1c]
push edx
push eax
je 0x4c9c24
push 0x4f6608
jmp 0x4c9c29
push str._s_s.url
lea ecx, [esp + 0x230]
push 0x102
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4c9c43
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 0x50fce0
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 0x4c9ccf
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