Function at 0x64014310
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x64142848
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, dword [0x6419e6d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ebx
call fcn.6401d6ed
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x6401435a
push 0x80004005
call fcn.64002cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
mov byte [esp + 0x30], 1
call fcn.640148c0
mov byte [esp + 0x2c], 2
mov eax, dword [eax]
push eax
lea edx, [esp + 0x18]
push 0x641737b8
push edx
call fcn.64002da0
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x640143ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.6401d6ed
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x640143d4
push 0x80004005
call fcn.64002cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
push ecx
mov esi, edi
mov byte [esp + 0x30], 3
call fcn.64014840
mov byte [esp + 0x2c], 4
mov eax, dword [eax]
push eax
lea edx, [esp + 0x1c]
push 0x64173820
push edx
call fcn.64002da0
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x64014434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push edx
push SysReAllocStringLen
mov dword [esp + 0x30], ebx
call esi
mov ebp, dword [esp + 0x18]
cmp eax, ebx
jne 0x6401446a
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x64014473
cmp eax, 2
je 0x6401450a
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x10]
call fcn.64011280
cmp eax, ebx
je 0x64014569
push eax
push str.CSxUsbDevice::LoadSettingsFromRegistry_reg.Create_HKEY_CURRENT_USER__strNewRegPath____ERROR_SUCCESS_:__d
push 3
mov esi, 0x641a62d4
call fcn.64004fe0
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 0xc
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x640144c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x640144e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x640144f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push ebp
push SysReAllocStringLen
mov dword [esp + 0x30], ebx
call esi
cmp eax, ebx
jne 0x64014532
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x6401453b
cmp eax, 2
je 0x64014606
mov edx, ebp
lea esi, [esp + 0x10]
call fcn.64011280
cmp eax, ebx
je 0x64014569
push eax
push 0x64173960
push 3
mov esi, 0x641a62d4
call fcn.64004fe0
mov byte [esp + 0x38], 1
lea eax, [ebp - 0x10]
jmp 0x640144a6
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x6401460a
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push str.AutoConnect
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], 4
call esi
cmp eax, ebx
je 0x640145ab
xor eax, eax
jmp 0x640145af
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, ebx
setne cl
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 4
mov eax, ecx
mov dword [edi + 0xb4], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.AutoDisConnect
push edx
call esi
cmp eax, ebx
mov eax, 1
jne 0x640145f7
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, ebx
setne cl
mov eax, ecx
mov dword [edi + 0xb0], eax
mov esi, dword [esp + 0x10]
lea eax, [ebp - 0x10]
mov byte [esp + 0x2c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x6401462b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6401464f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x6401465a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret