Function at 0x408680
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cfed
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4b4200]
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, ecx
mov dword [ebp - 0x44], edi
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x18], 1
mov dword [ebp - 4], 0
push 0x8020
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
call fcn.0046a3df
add esp, 4
mov esi, eax
mov dword [ebp - 0x48], esi
push 0x8020
push 0
push esi
call fcn.0046ba40
add esp, 0xc
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 1
mov eax, dword [edi]
test eax, eax
je 0x408734
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], 0
push ecx
mov edx, 0x20019
mov ecx, ebx
call fcn.00409550
mov dword [edi], eax
mov ecx, 2
test eax, eax
je 0x40895b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x408956
add eax, 0xffffffff
mov dword [ebp - 0x24], eax
js 0x408956
nop dword [eax]
cmp dword [edi], 0
je 0x40894a
xor ecx, ecx
mov dword [ebp - 0x34], 0x4010
push ecx
push ecx
push ecx
push ecx
mov word [esi], cx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
push dword [edi]
mov dword [ebp - 0x3c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x408947
cmp word [esi], ax
je 0x408947
mov eax, dword [ebp - 0x20]
mov edi, esi
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x3c], 0xfffffffe
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
test ebx, ebx
je 0x408808
cmp word [ebx], ax
je 0x408808
nop
inc eax
cmp word [ebx + eax*2], 0
jne 0x408800
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp word [ecx*2 + 0x49eae8], 0
jne 0x408810
add ecx, eax
xor eax, eax
cmp word [esi], ax
je 0x40882d
inc eax
cmp word [esi + eax*2], 0
jne 0x408825
add ecx, eax
mov dword [ebp - 0x4c], ecx
lea eax, [ecx + 1]
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0046a3df
mov edx, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, eax
test edx, edx
je 0x408877
movzx esi, word [edx]
test si, si
je 0x408877
mov eax, esi
movzx eax, ax
lea edx, [edx + 2]
mov word [ecx], ax
add ecx, 2
movzx eax, word [edx]
test ax, ax
jne 0x408863
test ebx, ebx
je 0x4088a1
movzx eax, word [ebx]
mov edx, eax
test ax, ax
je 0x4088a1
mov esi, ebx
sub esi, ecx
nop dword [eax]
mov word [ecx], dx
add ecx, 2
movzx eax, word [esi + ecx]
mov edx, eax
test ax, ax
jne 0x408890
mov esi, 0x49eae8
mov edx, 0x5c
sub esi, ecx
nop dword [eax]
mov word [ecx], dx
add ecx, 2
movzx eax, word [esi + ecx]
mov edx, eax
test ax, ax
jne 0x4088b0
mov esi, dword [ebp - 0x48]
movzx eax, word [esi]
mov edx, eax
test ax, ax
je 0x4088e4
nop
movzx eax, ax
lea edi, [edi + 2]
mov word [ecx], ax
add ecx, 2
movzx eax, word [edi]
test ax, ax
jne 0x4088d0
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4088f9
push eax
call fcn.00469dd3
add esp, 4
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x18], 1
test ecx, ecx
je 0x40891c
push ecx
call fcn.00469dd3
mov eax, dword [ebp - 0x20]
add esp, 4
test eax, eax
jne 0x408938
push 2
call fcn.0046a3df
add esp, 4
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp - 0x44]
mov ecx, edi
push eax
mov byte [ebp - 0x18], 1
call fcn.00408680
mov eax, dword [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x24], eax
jns 0x408790
mov ecx, 2
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
xor esi, esi
movq qword [ebp - 0x30], xmm0
test ebx, ebx
je 0x40897d
cmp word [ebx], si
je 0x40897d
inc esi
cmp word [ebx + esi*2], 0
jne 0x408975
lea eax, [esi + 1]
mov dword [ebp - 0x2c], esi
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0046a3df
add esp, 4
mov dword [ebp - 0x30], eax
test esi, esi
jle 0x4089b8
mov edi, ebx
mov ecx, eax
sub edi, eax
mov edx, esi
mov ax, word [edi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x4089a5
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov word [eax + esi*2], cx
push ecx
push 1
push 0xffffffffffffffff
mov byte [ebp - 4], 2
push 1
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x30]
push 0x49eae8
call fcn.00406350
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
test eax, eax
je 0x408a38
test esi, esi
jne 0x4089fb
test edi, edi
je 0x4089f8
cmp word [edi], si
je 0x4089f8
inc esi
cmp word [edi + esi*2], 0
jne 0x4089f0
mov dword [ebp - 0x2c], esi
cmp eax, esi
jl 0x408a03
mov eax, esi
jmp 0x408a0a
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov bl, 1
mov byte [ebp - 0x28], bl
test esi, esi
je 0x408a7e
sub esi, eax
xor ecx, ecx
mov dword [ebp - 0x2c], esi
test esi, esi
jle 0x408a30
lea edx, [edi + eax*2]
mov ax, word [edx]
lea edx, [edx + 2]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, esi
jl 0x408a21
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x408a7e
test esi, esi
jne 0x408a50
test edi, edi
je 0x408a4d
cmp word [edi], si
je 0x408a4d
inc esi
cmp word [edi + esi*2], 0
jne 0x408a45
mov dword [ebp - 0x2c], esi
cmp esi, 1
jle 0x408a7b
cmp word [edi + esi*2 - 2], 0x3a
jne 0x408a7b
test edi, edi
je 0x408a6a
push edi
call fcn.00469dd3
add esp, 4
xor edi, edi
mov bl, 1
xor esi, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], bl
jmp 0x408a7e
mov bl, byte [ebp - 0x28]
test bl, bl
je 0x408b60
push dword [ebp - 0x54]
lea ecx, [ebp - 0x20]
call fcn.00405a60
mov edx, eax
test esi, esi
jne 0x408aab
test edi, edi
je 0x408aa8
cmp word [edi], si
je 0x408aa8
inc esi
cmp word [edi + esi*2], 0
jne 0x408aa0
mov dword [ebp - 0x2c], esi
mov ecx, dword [edx + 4]
inc esi
test ecx, ecx
jne 0x408acb
mov eax, dword [edx]
test eax, eax
je 0x408ac8
cmp word [eax], cx
je 0x408ac8
nop
inc ecx
cmp word [eax + ecx*2], 0
jne 0x408ac0
mov dword [edx + 4], ecx
cmp esi, ecx
jl 0x408ad3
mov esi, ecx
jmp 0x408ada
xor eax, eax
test esi, esi
cmovs esi, eax
mov byte [edx + 8], 1
test ecx, ecx
je 0x408aef
mov eax, dword [edx]
sub ecx, esi
mov dword [edx + 4], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x408b0e
push 2
call fcn.0046a3df
add esp, 4
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp - 0x44]
mov byte [ebp - 0x18], 1
mov eax, dword [ebx]
test eax, eax
je 0x408b28
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx], 0
push ecx
mov edx, 0x20019
mov ecx, esi
call fcn.00409550
mov dword [ebx], eax
test eax, eax
je 0x408b60
test edi, edi
jne 0x408b50
push 2
call fcn.0046a3df
mov edi, eax
add esp, 4
xor eax, eax
mov word [edi], ax
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
jmp 0x408b62
xor bl, bl
test edi, edi
je 0x408b6f
push edi
call fcn.00469dd3
add esp, 4
push dword [ebp - 0x48]
call fcn.00469dd3
mov eax, dword [ebp - 0x20]
add esp, 4
test eax, eax
je 0x408b8a
push eax
call fcn.00469dd3
add esp, 4
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.00469dc5
mov esp, ebp
pop ebp
ret 4