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

Disassembly:
mov eax, 0x166c
call fcn.0049bb40
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 0x4b81ff
cmp edx, ebp
jle 0x4b81e6
cmp edx, 0xc350
jge 0x4b81e6
mov eax, dword [esi + edx*4 + 0xc50]
cmp eax, ebp
je 0x4b81ff
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x4b81ff
cmp edx, 0x4190ab00
jl 0x4b81ff
mov eax, dword [esi + edx*4 - 0x63f9270]
cmp eax, ebp
je 0x4b81ff
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 0x4b8405
mov eax, dword [esi + 0x14]
mov ecx, 2
cmp eax, ecx
jne 0x4b8405
cmp edx, ebp
je 0x4b8405
cmp edx, ecx
jne 0x4b826b
add esi, 0x3d0
lea ecx, [esp + 0x224]
push esi
push 0x4e33c0
push 0x102
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
jmp 0x4b8405
cmp ebx, ebp
je 0x4b8405
cmp edx, ebp
jle 0x4b8290
cmp edx, 0xc350
jge 0x4b8290
mov eax, dword [esi + edx*4 + 0xc50]
cmp eax, ebp
je 0x4b8405
jmp 0x4b82ab
cmp edx, 0x4190ab00
jl 0x4b8405
mov eax, dword [esi + edx*4 - 0x63f9270]
cmp eax, ebp
je 0x4b8405
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4b8405
cmp eax, dword [esi + 0x624]
jge 0x4b8405
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 7
add eax, ebx
cmp eax, ebp
je 0x4b8405
cmp dword [eax], edx
jne 0x4b8405
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ebp
cmp edx, ecx
jne 0x4b82f0
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 0x4b8399
mov ebp, dword [sym.imp.MSVCRT.dll_swprintf]
jmp 0x4b8321
mov esi, dword [esp + 0x18]
push ebx
mov ecx, esi
call fcn.004b6b60
cmp eax, 0xffffffff
je 0x4b8403
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 0x4e33c0
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 0x4b831d
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.004bc7e0
lea ecx, [esp + 0x24]
push ebp
push ecx
call fcn.004ca180
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ebp
lea edx, [esp + 0x42c]
lea eax, [esp + 0x1c]
push edx
push eax
je 0x4b83e6
push 0x4e37b8
jmp 0x4b83eb
push str._s_s.url
lea ecx, [esp + 0x230]
push 0x102
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4b8405
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 0x4f5820
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 0x4b8491
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