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

Disassembly:
push 0xffffffffffffffff
push 0x502496
mov eax, dword fs:[0]
push eax
sub esp, 0x56c
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x568], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x580]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x590]
push 0x208
push 0
push ebp
mov dword [esp + 0x20], ebp
call fcn.004cab10
add esp, 0xc
lea esi, [esp + 0x24]
mov dword [esp + 0x18], 0
call fcn.004411f0
mov esi, dword [esp + 0x38]
test esi, esi
je 0x435f07
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x37e]
push ecx
mov word [esp + 0x380], ax
call fcn.004cab10
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x20], 0x104
jae 0x435d2a
lea eax, [esp + 0x28]
inc esi
push esi
push eax
lea edx, [esp + 0x37c]
push 0x104
push edx
call fcn.004c5747
add esp, 0x10
xor edi, edi
cmp word [esp + 0x374], 0x22
jne 0x435d54
mov edi, 1
lea eax, [esp + 0x374]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x435d60
sub eax, edx
sar eax, 1
lea esi, [eax - 1]
cmp esi, edi
jle 0x435f07
lea ebx, [esp + esi*2 + 0x370]
push 3
push ebx
xor eax, eax
lea ecx, [esp + 0x16c]
push 4
push ecx
mov word [esp + 0x174], ax
mov dword [esp + 0x176], eax
mov word [esp + 0x17a], ax
call fcn.004c5747
lea eax, [esp + 0x174]
xor edx, edx
push 0x51f5b8
push eax
mov word [esp + 0x182], dx
call fcn.004c3add
add esp, 0x18
test eax, eax
je 0x435ddc
dec esi
sub ebx, 2
cmp esi, edi
jg 0x435d81
jmp 0x435f07
push 0x208
lea ecx, [esp + 0x170]
push 0
push ecx
call fcn.004cab10
sub esi, edi
lea ebp, [esi + 1]
push ebp
lea edi, [esp + edi*2 + 0x384]
push edi
lea edx, [esp + 0x180]
push 0x104
push edx
mov dword [esp + 0x180], edi
call fcn.004c5747
add esp, 0x1c
lea ecx, [esp + 0x40]
call fcn.004349d0
lea edi, [esp + 0x16c]
mov eax, edi
test eax, eax
jne 0x435e35
mov edi, 0x516254
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x435e40
sub eax, edx
sar eax, 1
lea ebx, [eax + 1]
mov ecx, ebx
lea esi, [esp + 0x48]
mov dword [esp + 0x44], eax
call fcn.004358a0
cmp byte [esp + 0x15c], 0
lea eax, [esp + 0x4c]
jne 0x435e73
mov eax, dword [esp + 0x48]
lea ecx, [ebx + ebx]
push ecx
add eax, 4
push edi
push eax
call fcn.004cab90
add esp, 0xc
cmp byte [esp + 0x15c], 0
lea eax, [esp + 0x4c]
jne 0x435e96
mov eax, dword [esp + 0x48]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x435ed1
shr eax, 4
not al
and al, 1
je 0x435ed1
mov edx, dword [esp + 0x164]
mov eax, dword [esp + 0x14]
push ebp
push edx
push 0x104
push eax
call fcn.004c5747
add esp, 0x10
mov dword [esp + 0x18], 1
cmp byte [esp + 0x15c], 0
mov dword [esp + 0x40], vtable.t_str.0
jne 0x435ef8
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
cmp eax, ecx
je 0x435ef8
push eax
call fcn.004c31b0
add esp, 4
cmp dword [esp + 0x18], 0
mov ebp, dword [esp + 0x14]
jne 0x435fb1
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435f9b
push 0x206
push eax
lea ecx, [esp + 0x176]
push ecx
mov word [esp + 0x178], ax
call fcn.004cab10
add esp, 0xc
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x16c]
push ecx
push 0
push str.ProgramFilesDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x435f9b
lea eax, [esp + 0x16c]
push eax
push str._sInternet_ExplorerIEXPLORE.exe
push 0x104
push ebp
call fcn.004c5708
add esp, 0x10
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x435faa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], 0
je 0x43602f
push 0x516248
lea ecx, [esp + 0x44]
call fcn.00434b00
push ebp
push 0x51620c
lea edx, [esp + 0x48]
call fcn.004351e0
push 0x516248
push 0x51620c
lea edx, [esp + 0x50]
call fcn.004351e0
add esp, 0x10
cmp byte [esp + 0x15c], 0
lea eax, [esp + 0x4c]
jne 0x435ff6
mov eax, dword [esp + 0x48]
add eax, 4
push eax
push 0x104
push ebp
call fcn.004c38b0
add esp, 0xc
cmp byte [esp + 0x15c], 0
mov dword [esp + 0x40], vtable.t_str.0
jne 0x43602f
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
cmp eax, ecx
je 0x43602f
push eax
call fcn.004c31b0
add esp, 4
cmp dword [esp + 0x3c], 8
jb 0x436043
mov edx, dword [esp + 0x28]
push edx
call fcn.004c55cd
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x580]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x568]
xor ecx, esp
call fcn.004c31a1
add esp, 0x578
ret