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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a849e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
call fcn.00429250
test eax, eax
je 0x4b6842
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push dword [0x613634]
mov dword [ebp - 4], 2
push 0x80000001
mov dword [ebp - 0x14], 0
call esi
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4b65ee
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x5b8734
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4b654f
cmp eax, 2
jne 0x4b65e4
lea ecx, [ebp - 0x10]
call fcn.00429c20
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x4b684c
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4b6585
push edx
lea ecx, [ebp - 0x10]
call fcn.00429eb0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x5b8734
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4b65de
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b65c9
push dword [eax - 8]
push eax
call fcn.0056b163
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b684c
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x4b684c
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + ecx*2], dx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b65ee
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
cmp dword [eax - 0xc], 0
jne 0x4b6765
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x20019
push 0
push dword [0x613634]
push 0x80000001
call esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4b66f1
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x5b8734
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4b6658
cmp eax, 2
jne 0x4b66e7
lea ecx, [ebp - 0x10]
call fcn.00429c20
mov ecx, dword [ebp - 0x18]
shr ecx, 1
add ecx, 1
js 0x4b684c
mov esi, dword [ebp - 0x10]
mov edx, 1
mov eax, dword [esi - 8]
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x4b668e
push ecx
lea ecx, [ebp - 0x10]
call fcn.00429eb0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x5b8734
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4b66e7
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b66d2
push dword [eax - 8]
push eax
call fcn.0056b163
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b684c
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x4b684c
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b66f1
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
cmp dword [eax - 0xc], 0
jne 0x4b6765
mov byte [ebp - 4], 3
call fcn.00429250
test eax, eax
je 0x4b6842
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b672b
push eax
call ebx
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 0x14], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b680b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00429f50
push str..exe
push dword [eax]
call fcn.0056b422
add esp, 8
test eax, eax
jne 0x4b6797
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b6797
xor bl, bl
jmp 0x4b6799
mov bl, 1
mov edx, dword [ebp - 0x1c]
or esi, 0xffffffff
mov dword [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b67bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4b681f
mov byte [ebp - 4], 5
call fcn.00429250
test eax, eax
je 0x4b6842
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b67ec
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4b680b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
call fcn.00448aa0
lea eax, [ebp - 0x10]
push eax
call fcn.00448aa0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00429b80
add esp, 0xc
jmp 0x4b67d5
push 0x80004005
call fcn.00429b60
push 0x80070057
call fcn.00429b60
int3