Function at 0x678f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68d579
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x78a6d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x678f7b
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00678c40
add esp, 4
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push 0x20019
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x678fca
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x6790b3
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x48]
push ecx
push 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x48], 0
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x50], 0
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x48]
call fcn.005a79f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x679033
push eax
push eax
push 0x8007000e
push str.malloc
push 0x45
push 0x51
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnDownloaderRegistry.cpp
push str.GetRegistryStringDefault
call fcn.00612830
add esp, 0x20
xor bl, bl
jmp 0x6790b3
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x48]
push ecx
push esi
lea ecx, [ebp - 0x50]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x4c]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x679065
push ebx
jmp 0x679074
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x679087
cmp eax, 2
je 0x679087
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.0059a280
add esp, 4
xor bl, bl
jmp 0x6790b3
mov edx, esi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x679090
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push esi
call fcn.00447250
push esi
call fcn.0059a280
add esp, 4
mov bl, 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x6790e9
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x6790df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x679151
push edx
push ecx
call fcn.0058ab22
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x679133
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x679129
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x679151
push edx
push ecx
call fcn.0058ab22
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret
call fcn.005968cf
int3