Function at 0x401450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405278
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x409034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x4062b8
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x4014ca
mov ecx, eax
movzx edi, cx
push edi
call fcn.00401fd0
add esp, 4
cmp eax, esi
je 0x4014dc
push eax
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.00401ef0
jmp 0x4014dc
push 0x4062b8
mov edi, 0x15
lea ebx, [ebp - 0x10]
call fcn.00401cf0
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x10]
push edx
mov ebx, 0x80000001
call fcn.00402270
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, str.ChromePath
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x401535
mov ecx, eax
movzx esi, cx
push esi
call fcn.00401fd0
add esp, 4
test eax, eax
je 0x401547
push eax
mov eax, esi
lea edi, [ebp - 0x1c]
call fcn.00401ef0
jmp 0x401547
push str.ChromePath
mov edi, 0xa
lea ebx, [ebp - 0x1c]
call fcn.00401cf0
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x10]
push edx
mov ebx, 0x80000001
call fcn.00402270
test eax, eax
jne 0x40161f
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40161f
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x40159a
cmp eax, 2
jne 0x40161f
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
shr eax, 1
mov dword [ebp - 0x20], eax
jns 0x4015b1
push 0x80070057
call fcn.004021d0
mov ecx, dword [ebx + 0x214]
mov edx, 1
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, eax
or ecx, edx
jge 0x4015d3
lea ecx, [ebx + 0x214]
call fcn.00401e20
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebx + 0x214]
push ecx
lea edx, [ebp - 0x30]
push edx
lea edi, [ebp - 0x20]
call fcn.004021f0
mov eax, dword [ebx + 0x214]
mov ecx, dword [eax - 8]
test eax, eax
je 0x401605
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x4015a7
mov ecx, dword [ebx + 0x214]
cmp eax, dword [ecx - 8]
jg 0x4015a7
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx + 0x214]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, str.360ChromePath
mov byte [ebp - 4], 5
test eax, 0xffff0000
jne 0x401663
mov ecx, eax
movzx esi, cx
push esi
call fcn.00401fd0
add esp, 4
test eax, eax
je 0x401675
push eax
mov eax, esi
lea edi, [ebp - 0x18]
call fcn.00401ef0
jmp 0x401675
push str.360ChromePath
mov edi, 0xd
lea ebx, [ebp - 0x18]
call fcn.00401cf0
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x10]
push edx
mov ebx, 0x80000001
call fcn.00402270
test eax, eax
jne 0x401755
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401755
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x4016c8
cmp eax, 2
jne 0x401755
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
shr eax, 1
mov dword [ebp - 0x20], eax
jns 0x4016df
push 0x80070057
call fcn.004021d0
mov ecx, dword [ebx + 0x21c]
mov edx, 1
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, eax
or ecx, edx
jge 0x401701
lea ecx, [ebx + 0x21c]
call fcn.00401e20
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebx + 0x21c]
push ecx
lea edx, [ebp - 0x30]
push edx
lea edi, [ebp - 0x20]
call fcn.004021f0
mov eax, dword [ebx + 0x21c]
mov ecx, dword [eax - 8]
test eax, eax
je 0x401737
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x4015a7
mov ecx, dword [ebx + 0x21c]
cmp eax, dword [ecx - 8]
jg 0x4015a7
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx + 0x21c]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.360Path
mov byte [ebp - 4], 7
test eax, 0xffff0000
jne 0x401799
mov ecx, eax
movzx esi, cx
push esi
call fcn.00401fd0
add esp, 4
test eax, eax
je 0x4017ab
push eax
mov eax, esi
lea edi, [ebp - 0x14]
call fcn.00401ef0
jmp 0x4017ab
push str.360Path
mov edi, 7
lea ebx, [ebp - 0x14]
call fcn.00401cf0
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x10]
push edx
mov ebx, 0x80000001
call fcn.00402270
test eax, eax
jne 0x40188b
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40188b
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x4017fe
cmp eax, 2
jne 0x40188b
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
shr eax, 1
mov dword [ebp - 0x24], eax
jns 0x401815
push 0x80070057
call fcn.004021d0
mov ecx, dword [ebx + 0x218]
mov edx, 1
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, eax
or ecx, edx
jge 0x401837
lea ecx, [ebx + 0x218]
call fcn.00401e20
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebx + 0x218]
push ecx
lea edx, [ebp - 0x30]
push edx
lea edi, [ebp - 0x24]
call fcn.004021f0
mov eax, dword [ebx + 0x218]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40186d
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x4015a7
mov ecx, dword [ebx + 0x218]
cmp eax, dword [ecx - 8]
jg 0x4015a7
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx + 0x218]
xor edx, edx
mov word [ecx + eax*2], dx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401917
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x401925
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4