Function at 0x4ae91d
Capabilities:
Check if file exists
Get file system object information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x560c66
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x17dc
call fcn.005482e0
mov eax, dword [0x5afee0]
xor eax, esp
mov dword [esp + 0x17d8], eax
push ebx
push esi
push edi
mov eax, dword [0x5afee0]
xor eax, esp
push eax
lea eax, [esp + 0x17f0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], edi
call esi
test eax, eax
je 0x4af0b3
push edi
call esi
test eax, eax
je 0x4af0b3
lea eax, [esp + 0xac]
push eax
call fcn.004b213d
xor esi, esi
mov dword [esp + 0x17f8], esi
lea eax, [esp + 0xac]
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], esi
call fcn.004b220f
mov ecx, ebx
lea edi, [esp + 0xac]
call fcn.004b1e1b
mov dword [esp + 0x17f8], 1
cmp dword [esp + 0xc8], esi
jle 0x4af0a7
lea eax, [esp + 0x8c]
push eax
call fcn.004afb58
push 0x414
lea eax, [esp + 0xd4]
push esi
mov byte [esp + 0x1800], 2
push eax
mov dword [esp + 0xd8], esi
call fcn.00537010
add esp, 0xc
jmp 0x4aea1c
xor esi, esi
mov eax, dword [esp + 0xc4]
cmp eax, esi
jl 0x4aec96
cmp eax, dword [esp + 0xc8]
jge 0x4aec96
push eax
lea esi, [esp + 0xb0]
call fcn.004b2179
mov ecx, 0x106
mov esi, eax
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
inc dword [esp + 0xc4]
xor esi, esi
cmp dword [esp + 0xcc], esi
je 0x4aeb59
push 0x2b0
lea eax, [esp + 0x4ec]
push esi
push eax
mov dword [esp + 0x4f0], esi
call fcn.00537010
add esp, 0xc
push 0x200
push 0x2b4
lea eax, [esp + 0x4ec]
push eax
push esi
lea eax, [esp + 0xe0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea edi, [esp + 0x60]
call fcn.004ad9c2
mov eax, dword [ebp + 0x10]
mov byte [esp + 0x17f8], 3
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 1
lea eax, [esp + 0x4f0]
cmp word [esp + 0x4f0], si
jne 0x4aeae1
lea eax, [esp + 0x2d8]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004082ed
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.004082ed
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00408273
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x1800], 4
call fcn.004afbac
lea ebx, [esp + 0x60]
mov esi, eax
call fcn.004af0ed
mov eax, dword [esp + 0x18]
jmp 0x4aec5d
xor eax, eax
push 0x1046
mov word [esp + 0x7a0], ax
lea eax, [esp + 0x7a2]
push esi
push eax
call fcn.00537010
add esp, 0xc
lea eax, [esp + 0xd0]
push eax
push 0x824
lea eax, [esp + 0x7a4]
push eax
push 0x577458
push 0x583f40
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
cmp ax, word [esp + 0x79c]
je 0x4aea1a
lea eax, [esp + 0x2d8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea edi, [esp + 0x60]
call fcn.004ad9c2
mov eax, dword [ebp + 0x10]
mov byte [esp + 0x17f8], 5
and dword [esp + 0x74], 0
mov dword [esp + 0x70], eax
lea eax, [esp + 0x79c]
push eax
lea eax, [esp + 0x84]
push eax
call fcn.004082ed
lea eax, [esp + 0x2d8]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004082ed
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.004082ed
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00408273
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x1800], 6
call fcn.004afbac
mov ebx, edi
mov esi, eax
call fcn.004af0ed
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
lea esi, [esp + 0x70]
mov byte [esp + 0x17f8], 2
call fcn.004ada08
push 0x418
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.00537010
mov ebx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4aea1a
lea eax, [esp + 0x30]
push eax
call fcn.004b213d
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x17f8], 7
mov dword [esp + 0x1c], esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x4aecb3
sub eax, ecx
sar eax, 1
mov esi, eax
push esi
push dword [esp + 0x30]
push ebx
call fcn.005330a4
add esp, 0xc
test eax, eax
jne 0x4aef74
push 0x206
mov word [esp + 0x4e8], ax
xor edi, edi
lea eax, [esp + 0x4ea]
push edi
push eax
call fcn.00537010
add esp, 0xc
push ebx
push 0x57cb68
lea eax, [esp + 0x4ec]
push 0x103
push eax
call fcn.00532a01
add esp, 0x10
lea eax, [esp + 0x4e4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
xor ebx, ebx
push edi
inc ebx
push ebx
call fcn.00406a55
pop ecx
pop ecx
cmp eax, edi
je 0x4aed3a
lea ecx, [esp + 0x48]
mov dword [eax], ecx
jmp 0x4aed3c
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
push dword [esp + 0x28]
lea edx, [esp + esi*2 + 0x4e8]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x17fc], 9
call fcn.004af6fa
test eax, eax
je 0x4aef31
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
push 0xc
cdq
pop ecx
idiv ecx
mov dword [esp + 0x1c], ebx
xor ebx, ebx
test eax, eax
jbe 0x4aee13
and dword [esp + 0x18], ebx
cmp ebx, eax
jb 0x4aed99
call fcn.00530cad
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
add eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.004afcbd
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
lea edi, [esp + 0x20]
lea esi, [esp + 0x10]
mov dword [esp + 0x20], eax
call fcn.00470a9c
test al, al
jne 0x4aedfb
call fcn.00446b9d
mov dword [eax + 0x28], 1
call fcn.00446b9d
add eax, 4
push eax
lea esi, [esp + 0x34]
call fcn.004afd7b
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
push 0xc
cdq
pop ecx
idiv ecx
add dword [esp + 0x18], 0xc
inc ebx
cmp ebx, eax
jb 0x4aed99
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
push 0x2c
cdq
pop ecx
idiv ecx
cmp dword [esp + 0xa8], eax
je 0x4aef2f
lea eax, [esp + 0x60]
push eax
call fcn.004b213d
mov byte [esp + 0x17f8], 0xa
mov eax, dword [esp + 0xa4]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
lea edi, [esp + 0x20]
lea esi, [esp + 0x10]
mov dword [esp + 0x20], eax
call fcn.00470a9c
test al, al
jne 0x4aeea7
call fcn.00446b9d
cmp dword [eax + 0x28], 0
jne 0x4aee9c
call fcn.00446b9d
add eax, 4
push eax
lea esi, [esp + 0x64]
call fcn.004afd7b
lea esi, [esp + 0x10]
call fcn.004b0a78
jmp 0x4aee58
mov ebx, dword [esp + 0x70]
mov eax, ebx
sub eax, dword [esp + 0x6c]
push 0x2c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4aef26
cmp dword [esp + 0x6c], ebx
jbe 0x4aeec6
call fcn.00530cad
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x60]
cmp edi, dword [esp + 0x70]
jbe 0x4aeed9
call fcn.00530cad
push ebx
push esi
push edi
push dword [esp + 0x6c]
call fcn.004b0f47
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x7c]
add esp, 0x10
push 0x2c
cdq
pop ecx
idiv ecx
xor edi, edi
test eax, eax
jbe 0x4aef26
push edi
lea esi, [esp + 0x64]
call fcn.004afd55
push eax
lea esi, [esp + 0x34]
call fcn.004afd7b
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x6c]
push 0x2c
cdq
pop ecx
idiv ecx
inc edi
cmp edi, eax
jb 0x4aeeff
lea esi, [esp + 0x60]
call fcn.004afd28
xor edi, edi
mov byte [esp + 0x17f8], 7
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x4aef54
push dword [esp + 0x58]
call fcn.004b07c7
push dword [esp + 0x54]
call fcn.0052f7c5
pop ecx
push dword [esp + 0x48]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call fcn.0052f7c5
pop ecx
cmp dword [esp + 0x1c], edi
jne 0x4af011
mov eax, dword [esp + 0xa4]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
lea edi, [esp + 0x20]
lea esi, [esp + 0x10]
mov dword [esp + 0x20], eax
call fcn.00470a9c
test al, al
jne 0x4aefd0
call fcn.00446b9d
add eax, 4
push eax
lea esi, [esp + 0x34]
call fcn.004afd7b
lea esi, [esp + 0x10]
call fcn.004b0a78
jmp 0x4aef8c
mov ebx, dword [esp + 0x40]
mov eax, ebx
sub eax, dword [esp + 0x3c]
push 0x2c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4af011
cmp dword [esp + 0x3c], ebx
jbe 0x4aefef
call fcn.00530cad
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
cmp edi, dword [esp + 0x40]
jbe 0x4af002
call fcn.00530cad
push ebx
push esi
push edi
push dword [esp + 0x3c]
call fcn.004b0f47
add esp, 0x10
lea edi, [esp + 0x8c]
call fcn.004afc99
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
push 0x2c
cdq
pop ecx
idiv ecx
xor ebx, ebx
test eax, eax
jbe 0x4af089
push ebx
lea esi, [esp + 0x34]
call fcn.004afd55
mov esi, eax
cmp dword [esi + 0x14], 0
push esi
je 0x4af067
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax]
test eax, eax
je 0x4af089
push dword [esi + 0x18]
mov eax, dword [esi + 0x28]
push dword [esp + 0x30]
mov ecx, edi
push eax
call fcn.004ae91d
jmp 0x4af076
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax]
test eax, eax
je 0x4af089
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
push 0x2c
cdq
pop ecx
idiv ecx
inc ebx
cmp ebx, eax
jb 0x4af031
lea esi, [esp + 0x30]
call fcn.004afd28
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x17fc], 1
call fcn.004afc71
lea esi, [esp + 0xac]
call fcn.00472ee9
xor eax, eax
inc eax
mov ecx, dword [esp + 0x17f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x17d8]
xor ecx, esp
call fcn.0052f7d0
mov esp, ebp
pop ebp
ret 0xc