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

Disassembly:
mov eax, 0x166c
call fcn.004ba380
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 + 0x608]
cmp ebx, ebp
je 0x4d7cbf
cmp edx, ebp
jle 0x4d7ca6
cmp edx, 0xc350
jge 0x4d7ca6
mov eax, dword [esi + edx*4 + 0xc4c]
cmp eax, ebp
je 0x4d7cbf
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x4d7cbf
cmp edx, 0x4190ab00
jl 0x4d7cbf
mov eax, dword [esi + edx*4 - 0x63f9274]
cmp eax, ebp
je 0x4d7cbf
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
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]
test eax, eax
je 0x4d7ee0
mov eax, dword [esi + 0x14]
mov ecx, 2
cmp eax, ecx
jne 0x4d7ee0
cmp edx, ebp
je 0x4d7ee0
cmp edx, ecx
jne 0x4d7d2a
add esi, 0x3d0
lea ecx, [esp + 0x1c]
push esi
push 0x50f4e4
push 0x102
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x2c]
push ebp
push edx
call fcn.004f1940
add esp, 0x18
jmp 0x4d7ee0
cmp ebx, ebp
je 0x4d7ee0
cmp edx, ebp
jle 0x4d7d4f
cmp edx, 0xc350
jge 0x4d7d4f
mov eax, dword [esi + edx*4 + 0xc4c]
cmp eax, ebp
je 0x4d7ee0
jmp 0x4d7d6a
cmp edx, 0x4190ab00
jl 0x4d7ee0
mov eax, dword [esi + edx*4 - 0x63f9274]
cmp eax, ebp
je 0x4d7ee0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4d7ee0
cmp eax, dword [esi + 0x620]
jge 0x4d7ee0
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 7
add eax, ebx
cmp eax, ebp
je 0x4d7ee0
cmp dword [eax], edx
jne 0x4d7ee0
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ebp
cmp edx, ecx
jne 0x4d7daf
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 0x4d7e68
mov ebp, dword [sym.imp.MSVCRT.dll_swprintf]
jmp 0x4d7de0
mov esi, dword [esp + 0x18]
push ebx
mov ecx, esi
call fcn.004d6380
cmp eax, 0xffffffff
je 0x4d7ede
mov ecx, dword [esp + 0x18]
lea eax, [eax + eax*4]
lea edi, [esp + 0x226]
lea edx, [esp + 0x42c]
mov ebx, dword [ecx + 0x608]
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 + 0x228], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x228]
push 0x50f4e4
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x224]
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 0x4d7ddc
xor ebp, ebp
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]
push 0x104
push eax
call fcn.004dc910
lea ecx, [esp + 0x22c]
push ebp
push ecx
call fcn.004f1940
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ebp
lea edx, [esp + 0x42c]
lea eax, [esp + 0x224]
push edx
push eax
je 0x4d7ec4
push 0x50f5ec
jmp 0x4d7ec9
push str._s_s.url
lea ecx, [esp + 0x28]
push 0x102
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4d7ee0
xor ebp, ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x18], ebp
call ebx
test eax, eax
je 0x4d7f73
lea eax, [esp + 0x1c]
push eax
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
lea edx, [esp + 0x634]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
push 0x823
push edx
push 0x52a480
push str.IconFile
push str.InternetShortcut
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x634]
push eax
call ebx
cmp eax, 1
jne 0x4d7f73
lea ecx, [esp + 0x14]
push eax
push ecx
push ebp
lea edx, [esp + 0x640]
push esi
push edx
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