Function at 0x4045c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c73d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4b41e0]
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 - 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.0046a22b
add esp, 4
mov esi, eax
mov dword [ebp - 0x48], esi
push 0x8020
push 0
push esi
call fcn.0046b980
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 0x404671
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], 0
push ecx
mov edx, 0x20019
mov ecx, ebx
call fcn.00405480
mov dword [edi], eax
mov edx, 2
test eax, eax
je 0x404898
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 0x404893
add eax, 0xffffffff
mov dword [ebp - 0x24], eax
js 0x404893
nop word [eax + eax]
cmp dword [edi], 0
je 0x404887
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 0x404884
cmp word [esi], ax
je 0x404884
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 0x404748
cmp word [ebx], ax
je 0x404748
nop
inc eax
cmp word [ebx + eax*2], 0
jne 0x404740
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp word [ecx*2 + 0x49eab0], 0
jne 0x404750
add ecx, eax
xor eax, eax
cmp word [esi], ax
je 0x40476d
inc eax
cmp word [esi + eax*2], 0
jne 0x404765
add ecx, eax
mov edx, 2
mov dword [ebp - 0x4c], ecx
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a22b
mov edx, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, eax
test edx, edx
je 0x4047b5
movzx esi, word [edx]
test si, si
je 0x4047b5
mov eax, esi
mov word [ecx], ax
lea edx, [edx + 2]
movzx eax, word [edx]
add ecx, 2
test ax, ax
jne 0x4047a4
test ebx, ebx
je 0x4047e1
movzx eax, word [ebx]
mov edx, eax
test ax, ax
je 0x4047e1
mov esi, ebx
sub esi, ecx
nop word [eax + eax]
mov word [ecx], dx
add ecx, 2
movzx eax, word [esi + ecx]
mov edx, eax
test ax, ax
jne 0x4047d0
mov esi, 0x49eab0
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 0x4047f0
mov esi, dword [ebp - 0x48]
movzx eax, word [esi]
mov edx, eax
test ax, ax
je 0x404821
nop
mov word [ecx], ax
lea edi, [edi + 2]
movzx eax, word [edi]
add ecx, 2
test ax, ax
jne 0x404810
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x404836
push eax
call fcn.00469e73
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 0x404859
push ecx
call fcn.00469e73
mov eax, dword [ebp - 0x20]
add esp, 4
test eax, eax
jne 0x404875
push 2
call fcn.0046a22b
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.004045c0
mov eax, dword [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x24], eax
jns 0x4046d0
mov edx, 2
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
xor esi, esi
movq qword [ebp - 0x30], xmm0
test ebx, ebx
je 0x4048ba
cmp word [ebx], si
je 0x4048ba
inc esi
cmp word [ebx + esi*2], 0
jne 0x4048b2
xor ecx, ecx
mov dword [ebp - 0x2c], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a22b
add esp, 4
mov dword [ebp - 0x30], eax
test esi, esi
jle 0x4048f6
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 0x4048e3
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 0x49eab0
call fcn.00402320
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
test eax, eax
je 0x4049d3
test esi, esi
jne 0x40493d
test edi, edi
je 0x40493a
cmp word [edi], si
je 0x40493a
inc esi
cmp word [edi + esi*2], 0
jne 0x404932
mov dword [ebp - 0x2c], esi
cmp eax, esi
jl 0x404945
mov eax, esi
jmp 0x40494c
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov cl, 1
mov byte [ebp - 0x28], cl
test esi, esi
je 0x40497b
sub esi, eax
xor ecx, ecx
mov dword [ebp - 0x2c], esi
test esi, esi
jle 0x404972
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 0x404963
xor eax, eax
mov word [edi + esi*2], ax
mov cl, byte [ebp - 0x28]
test cl, cl
je 0x404aa6
test esi, esi
jne 0x40499b
test edi, edi
je 0x404998
cmp word [edi], si
je 0x404998
inc esi
cmp word [edi + esi*2], 0
jne 0x404990
mov dword [ebp - 0x2c], esi
push ebx
lea ecx, [ebp - 0x20]
call fcn.00401a20
mov edx, eax
inc esi
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x4049cb
mov eax, dword [edx]
test eax, eax
je 0x4049c8
cmp word [eax], cx
je 0x4049c8
nop dword [eax]
inc ecx
cmp word [eax + ecx*2], 0
jne 0x4049c0
mov dword [edx + 4], ecx
cmp esi, ecx
jl 0x404a19
mov esi, ecx
jmp 0x404a20
test esi, esi
jne 0x4049eb
test edi, edi
je 0x4049e8
cmp word [edi], si
je 0x4049e8
inc esi
cmp word [edi + esi*2], 0
jne 0x4049e0
mov dword [ebp - 0x2c], esi
cmp esi, 1
jle 0x404978
cmp word [edi + esi*2 - 2], 0x3a
jne 0x404978
test edi, edi
je 0x404a05
push edi
call fcn.00469e73
add esp, 4
xor edi, edi
mov cl, 1
xor esi, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], cl
jmp 0x40497b
xor eax, eax
test esi, esi
cmovs esi, eax
mov byte [edx + 8], 1
test ecx, ecx
je 0x404a35
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 0x404a54
push 2
call fcn.0046a22b
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 0x404a6e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx], 0
push ecx
mov edx, 0x20019
mov ecx, esi
call fcn.00405480
mov dword [ebx], eax
test eax, eax
je 0x404aa6
test edi, edi
jne 0x404a96
push 2
call fcn.0046a22b
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 0x404aa8
xor bl, bl
test edi, edi
je 0x404ab5
push edi
call fcn.00469e73
add esp, 4
push dword [ebp - 0x48]
call fcn.00469e73
mov eax, dword [ebp - 0x20]
add esp, 4
test eax, eax
je 0x404ad0
push eax
call fcn.00469e73
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.00469e65
mov esp, ebp
pop ebp
ret 4