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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec241
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4a0
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x49c], edx
mov esi, ecx
mov dword [ebp - 0x494], esi
mov dword [ebp - 0x498], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebx + 0x10]
push 0x410
mov dword [ebp - 0x4a0], eax
lea eax, [ebp - 0x428]
push 0
push eax
mov dword [ebp - 0x498], esi
call fcn.004beec0
add esp, 0xc
mov dword [ebp - 0x490], 0x410
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.flash_ver_url
push str.SoftwareSogouSogouExplorerPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40d0da
lea eax, [ebp - 0x428]
push 0x7c
push eax
call fcn.004be819
mov edi, eax
add esp, 8
mov dword [ebp - 0x4a4], edi
test edi, edi
je 0x40d0da
xor eax, eax
mov dword [ebp - 0x45c], 7
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x470], eax
mov word [edi], ax
lea edx, [ecx + 2]
mov dword [ebp - 0x460], eax
mov word [ebp - 0x470], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ca60
sub ecx, edx
lea eax, [ebp - 0x428]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x470]
call fcn.00407890
lea eax, [edi + 2]
mov dword [ebp - 4], 0
push 0x7c
push eax
call fcn.004be819
add esp, 8
test eax, eax
je 0x40d071
cmp word [eax + 2], 0
lea ecx, [eax + 2]
mov dword [ebp - 0x498], ecx
je 0x40d071
mov esi, dword [ebp - 0x494]
xor ecx, ecx
mov dword [ebp - 0x488], 0
xor edx, edx
mov word [ebp - 0x488], cx
mov edi, 7
mov ecx, dword [ebp - 0x4a4]
add ecx, 2
mov dword [ebp - 0x478], edx
mov dword [ebp - 0x474], edi
cmp ecx, eax
je 0x40cb09
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x488]
call fcn.00407890
mov edi, dword [ebp - 0x474]
mov edx, dword [ebp - 0x478]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x460], 0
je 0x40d004
test edx, edx
je 0x40d004
xor eax, eax
mov dword [ebp - 0x490], 0x410
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.CC_FLASH
push str.SoftwareSogouSogouExplorerPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40ce3c
cmp dword [ebp - 0x45c], 8
lea eax, [ebp - 0x470]
xorps xmm0, xmm0
mov byte [ebp - 0x489], 1
cmovae eax, dword [ebp - 0x470]
mov dword [ebp - 0x494], eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x428]
push str._d._d._d._d
push eax
movups xmmword [ebp - 0x438], xmm0
movups xmmword [ebp - 0x450], xmm0
call fcn.004191f0
add esp, 0x18
cmp eax, 4
je 0x40cbce
or ecx, 0xffffffff
jmp 0x40cc40
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x450]
push eax
push str._d._d._d._d
push dword [ebp - 0x494]
call fcn.004191f0
add esp, 0x18
cmp eax, 4
je 0x40cc09
mov ecx, 1
jmp 0x40cc40
mov byte [ebp - 0x489], 0
xor eax, eax
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [ebp + eax - 0x438]
mov edx, dword [ebp + eax - 0x450]
cmp ecx, edx
jne 0x40cc3e
add eax, 4
cmp eax, 0x10
jl 0x40cc20
xor ecx, ecx
jmp 0x40cc40
sub ecx, edx
cmp word [ebp - 0x428], 0
je 0x40ce3c
cmp byte [ebp - 0x489], 0
jne 0x40ce3c
test ecx, ecx
js 0x40ce3c
push dword [ebp - 0x49c]
lea ecx, [ebp - 0x458]
call fcn.00403e90
push 0x11
push str.User_DataFlash_
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 2
call fcn.00404090
lea ecx, [ebp - 0x428]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cc93
sub ecx, edx
lea eax, [ebp - 0x428]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x458]
call fcn.00404090
push 0x13
push str.pepflashplayer.dll
lea ecx, [ebp - 0x458]
call fcn.00404090
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cdf8
push str.flash_ver_url
push str.SoftwareSogouSogouExplorerPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov edx, dword [ebp - 0x444]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, 8
jb 0x40cd58
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d128
push edx
push ecx
call fcn.0045b5e1
add esp, 8
xor eax, eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
cmp edi, 8
jb 0x40cdaf
mov ecx, dword [ebp - 0x488]
lea edx, [edi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cda5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d128
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov edx, dword [ebp - 0x45c]
cmp edx, 8
jb 0x40d108
mov ecx, dword [ebp - 0x470]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cde9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d128
push edx
push ecx
call fcn.0045b5e1
add esp, 8
jmp 0x40d108
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x444]
cmp edx, 8
jb 0x40ce3c
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d128
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov ecx, dword [ebp - 0x4a8]
test ecx, ecx
je 0x40ce6a
lea eax, [ebp - 0x470]
cmp ecx, eax
je 0x40ce6a
cmp dword [ebp - 0x45c], 8
push dword [ebp - 0x460]
cmovae eax, dword [ebp - 0x470]
push eax
call fcn.00407890
mov edi, dword [ebp - 0x4ac]
test edi, edi
je 0x40cf5b
push dword [ebp - 0x49c]
lea ecx, [ebp - 0x458]
call fcn.00403e90
push 0x11
push str.User_DataFlash_
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.00404090
push 0x15
push str.install_flash_player_
lea ecx, [ebp - 0x458]
call fcn.00404090
cmp dword [ebp - 0x45c], 8
lea eax, [ebp - 0x470]
push dword [ebp - 0x460]
cmovae eax, dword [ebp - 0x470]
lea ecx, [ebp - 0x458]
push eax
call fcn.00404090
push 4
push str..exe
lea ecx, [ebp - 0x458]
call fcn.00404090
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x430], xmm0
movups xmm0, xmmword [ebp - 0x458]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x448]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x42c]
movq qword [edi + 0x10], xmm0
cmp edx, 8
jb 0x40cf5b
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d12d
push edx
push ecx
call fcn.0045b5e1
add esp, 8
cmp dword [ebp - 0x4a0], 0
je 0x40cf8c
mov ecx, dword [ebp - 0x498]
mov edx, ecx
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40cf70
sub edx, edi
sar edx, 1
push edx
push ecx
mov ecx, dword [ebp - 0x4a0]
call fcn.00407890
movups xmm0, xmmword [ebp - 0x488]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x478]
movq qword [esi + 0x10], xmm0
mov edx, dword [ebp - 0x45c]
cmp edx, 8
jb 0x40d108
mov ecx, dword [ebp - 0x470]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cde9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d12d
push edx
push ecx
call fcn.0045b5e1
add esp, 8
jmp 0x40d108
push str.flash_ver_url
push str.SoftwareSogouSogouExplorerPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edi, 8
jb 0x40cfb7
mov ecx, dword [ebp - 0x488]
lea edx, [edi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d062
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d12d
push edx
push ecx
call fcn.0045b5e1
add esp, 8
jmp 0x40cfb7
push str.flash_ver_url
push str.SoftwareSogouSogouExplorerPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov edx, dword [ebp - 0x45c]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, 8
jb 0x40d108
mov ecx, dword [ebp - 0x470]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cde9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d12d
jmp 0x40cde9
push str.flash_ver_url
push str.SoftwareSogouSogouExplorerPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045b5b0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004c1e0f
call fcn.004c1e0f
int3