Function at 0x4223fe
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x186c
call fcn.00466f70
mov dx, word [0x469bb8]
push ebx
push esi
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x61a]
mov word [ebp - 0x61c], dx
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x20a]
cmp dword [ebp + 0x18], 0
mov word [ebp - 0x20c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x422454
cmp dword [ebp + 0x18], 1
jne 0x422458
or dword [ebp + 0x18], 0xffffffff
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
push dword [esi + 4]
call fcn.00452d97
xor edi, edi
cmp dword [esi + 8], edi
je 0x42258a
mov ax, word [0x469bb8]
mov ecx, 0x81
mov word [ebp - 0x414], ax
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x61c]
push eax
push 0x40be54
lea eax, [ebp - 0x414]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0044dd66
add esp, 0x18
test eax, eax
je 0x422582
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
push 0x469bb8
push 0x40be40
push 0x40be20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x422582
mov ax, word [0x469bb8]
mov ecx, 0x81
mov word [ebp - 0x824], ax
xor eax, eax
lea edi, [ebp - 0x822]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
xor edi, edi
push eax
push edi
push 0x40be0c
push 0x40be20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, edi
jl 0x422579
lea ecx, [ebp - 4]
push 1
push ecx
push edi
push eax
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp dword [ebp - 4], edi
jne 0x422656
push 1
pop edi
jmp 0x4226ab
lea eax, [esi + 0x214]
push 4
push eax
push 0x40be00
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x422651
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
push 0x469bb8
push 0x40be40
push 0x40bddc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4226ab
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x422635
mov ax, word [0x469bb8]
mov ecx, 0x411
mov word [ebp - 0x186c], ax
xor eax, eax
lea edi, [ebp - 0x186a]
push 0x824
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosw word es:[edi], ax
lea eax, [ebp - 0x186c]
push eax
push dword [esi + 4]
call fcn.00452e20
push 0
lea eax, [ebp - 0x186c]
push 0
push eax
call fcn.00426a41
add esp, 0xc
mov dword [ebp - 4], eax
xor edi, edi
jmp 0x42264a
lea eax, [ebp - 4]
push 1
push eax
push edi
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp dword [ebp - 4], edi
jne 0x422656
jmp 0x4226ab
cmp dword [ebp - 4], edi
je 0x422677
push dword [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 0xffffffff
jne 0x4226ab
xor edi, edi
mov ecx, dword [ebp + 8]
push 1
push edi
push edi
push 1
push dword [esi + 4]
call fcn.0045328c
push edi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov esi, eax
push esi
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret