Function at 0x4ade60
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538f06
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x57c06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x568], esi
push 0x208
push 0
push esi
call fcn.004e5200
add esp, 8
lea ecx, [ebp - 0x440]
xor ebx, ebx
call fcn.004b3660
add esp, 4
mov edi, dword [ebp - 0x430]
test edi, edi
je 0x4adf86
push 0x208
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.004e5200
cmp dword [ebp - 0x42c], 8
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x56c], 0x104
cmovae ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x220]
push ecx
push 0x104
push eax
call fcn.004f8404
lea esi, [ebp - 0x220]
add esp, 0x1c
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4adf16
sub esi, ecx
mov eax, 1
sar esi, 1
dec esi
cmp word [ebp - 0x220], 0x22
cmove ebx, eax
cmp esi, ebx
jle 0x4adf7e
lea edi, [ebp + esi*2 - 0x224]
push 3
push edi
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push 4
push eax
movq qword [ebp - 0x18], xmm0
call fcn.004f8404
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push 0x561e10
push eax
call fcn.004f89f8
add esp, 0x18
test eax, eax
je 0x4ae0db
dec esi
sub edi, 2
cmp esi, ebx
jg 0x4adf41
mov esi, dword [ebp - 0x568]
xor ebx, ebx
lea eax, [ebp - 0x568]
mov dword [ebp - 0x568], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ae00f
push 0x208
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004e5200
add esp, 0xc
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 0x568]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ae00f
lea eax, [ebp - 0x428]
push eax
push str._sInternet_ExplorerIEXPLORE.exe
push 0x104
push esi
call fcn.0049c5d0
add esp, 0x10
mov ebx, 1
mov eax, dword [ebp - 0x568]
test eax, eax
je 0x4ae020
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4ae0b2
push 0x561db8
lea ecx, [ebp - 0x564]
call fcn.004ad210
push esi
lea eax, [ebp - 0x564]
push 0x561dd0
push eax
call fcn.004ad730
push 0x561db8
lea eax, [ebp - 0x564]
push 0x561dd0
push eax
call fcn.004ad730
cmp byte [ebp - 0x448], 0
lea eax, [ebp - 0x558]
cmove eax, dword [ebp - 0x55c]
add eax, 4
push eax
push 0x104
push esi
call fcn.004f3967
add esp, 0x24
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
cmp byte [ebp - 0x448], 0
jne 0x4ae0b2
mov eax, dword [ebp - 0x55c]
lea ecx, [ebp - 0x558]
cmp eax, ecx
je 0x4ae0b2
push eax
call fcn.004e4a56
add esp, 4
lea ecx, [ebp - 0x440]
call fcn.0040b3f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e24d7
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004e5200
sub esi, ebx
lea edi, [ebp - 0x220]
inc esi
lea edi, [edi + ebx*2]
push esi
push edi
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.004f8404
add esp, 0x1c
lea ecx, [ebp - 0x564]
call fcn.004ad0c0
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x564]
call fcn.004ad300
cmp byte [ebp - 0x448], 0
lea eax, [ebp - 0x558]
cmove eax, dword [ebp - 0x55c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ae176
shr eax, 4
not al
and al, 1
je 0x4ae176
push esi
mov esi, dword [ebp - 0x568]
push edi
push 0x104
push esi
call fcn.004f8404
add esp, 0x10
mov ebx, 1
jmp 0x4ae17e
mov esi, dword [ebp - 0x568]
xor ebx, ebx
cmp byte [ebp - 0x448], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4ae1aa
mov eax, dword [ebp - 0x55c]
lea ecx, [ebp - 0x558]
cmp eax, ecx
je 0x4ae1aa
push eax
call fcn.004e4a56
add esp, 4
test ebx, ebx
jne 0x4ae028
jmp 0x4adf86