Function at 0x467ef0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e166
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x596634]
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 edi, ecx
mov dword [ebp - 0x238], edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dcfa0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x240], 1
push 2
push eax
mov dword [ebp - 0x23c], 0x208
call fcn.00432d80
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x467f66
mov eax, dword [eax]
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x240]
push ecx
push str.Setup_Path
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [ebp - 0x21c]
test eax, eax
sete bl
cmp edx, 8
jb 0x467fd1
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467fc7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46826e
push edx
push ecx
call fcn.00496936
add esp, 8
test bl, bl
je 0x467ff7
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x467fe0
sub edx, esi
mov ecx, edi
sar edx, 1
push edx
jmp 0x468246
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468023
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x468040
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.LdsLite
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x468223
push 0x55ac1c
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x218]
push eax
je 0x4680c7
call ebx
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call fcn.004155f0
call fcn.00470600
add esp, 4
test eax, eax
je 0x468252
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4680b7
jmp 0x46823b
call ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.004155f0
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 0
push eax
call fcn.00470150
mov edx, dword [ebp - 0x234]
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x468118
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x468135
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468125
jmp 0x46823b
lea eax, [ebp - 0x218]
push eax
call ebx
xor edi, edi
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x468273
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
push edi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push str.LdsLite_d
push eax
call fcn.0041dc70
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x218]
add esp, 0xc
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4681d5
lea eax, [ebp - 0x218]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4681c6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, 0xa
jl 0x468140
jmp 0x468252
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4681e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x238]
push eax
call fcn.0040de70
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x468252
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x468252
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468230
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push eax
call fcn.0040de70
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.00496d46
mov esp, ebp
pop ebp
ret
call fcn.004e8718
push 0x80004005
call fcn.0040af60
int3