Function at 0x404610
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dbcd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4b5200]
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 - 0x48], edi
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x44], 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.0046b90c
add esp, 4
mov esi, eax
mov dword [ebp - 0x4c], esi
push 0x8020
push 0
push esi
call fcn.0046ce00
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 0x4046c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], 0
push ecx
mov edx, 0x20019
mov ecx, ebx
call fcn.004054e0
mov dword [edi], eax
mov edx, 2
test eax, eax
je 0x4048e8
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 0x4048e3
add eax, 0xffffffff
mov dword [ebp - 0x24], eax
js 0x4048e3
nop dword [eax]
cmp dword [edi], 0
je 0x4048d7
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 0x4048d4
cmp word [esi], ax
je 0x4048d4
mov eax, dword [ebp - 0x20]
mov edi, esi
mov dword [ebp - 0x54], 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 0x404798
cmp word [ebx], ax
je 0x404798
nop
inc eax
cmp word [ebx + eax*2], 0
jne 0x404790
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp word [ecx*2 + 0x49faa8], 0
jne 0x4047a0
add ecx, eax
xor eax, eax
cmp word [esi], ax
je 0x4047bd
inc eax
cmp word [esi + eax*2], 0
jne 0x4047b5
add ecx, eax
mov edx, 2
mov dword [ebp - 0x50], ecx
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
mov edx, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, eax
test edx, edx
je 0x404805
movzx esi, word [edx]
test si, si
je 0x404805
mov eax, esi
mov word [ecx], ax
lea edx, [edx + 2]
movzx eax, word [edx]
add ecx, 2
test ax, ax
jne 0x4047f4
test ebx, ebx
je 0x404831
movzx eax, word [ebx]
mov edx, eax
test ax, ax
je 0x404831
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 0x404820
mov esi, 0x49faa8
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 0x404840
mov esi, dword [ebp - 0x4c]
movzx eax, word [esi]
mov edx, eax
test ax, ax
je 0x404871
nop
mov word [ecx], ax
lea edi, [edi + 2]
movzx eax, word [edi]
add ecx, 2
test ax, ax
jne 0x404860
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x404886
push eax
call fcn.0046b303
add esp, 4
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x18], 1
test ecx, ecx
je 0x4048a9
push ecx
call fcn.0046b303
mov eax, dword [ebp - 0x20]
add esp, 4
test eax, eax
jne 0x4048c5
push 2
call fcn.0046b90c
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 - 0x48]
mov ecx, edi
push eax
mov byte [ebp - 0x18], 1
call fcn.00404610
mov eax, dword [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x24], eax
jns 0x404720
mov edx, 2
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
xor esi, esi
movq qword [ebp - 0x30], xmm0
test ebx, ebx
je 0x40490a
cmp word [ebx], si
je 0x40490a
inc esi
cmp word [ebx + esi*2], 0
jne 0x404902
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.0046b90c
add esp, 4
mov ebx, eax
mov dword [ebp - 0x30], ebx
test esi, esi
jle 0x404950
mov edi, dword [ebp - 0x44]
mov ecx, ebx
sub edi, ebx
mov edx, esi
nop word [eax + eax]
mov ax, word [ecx + edi]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x404940
xor eax, eax
mov word [ebx + esi*2], ax
push eax
push 1
push 0xffffffffffffffff
push 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
push 0x49faa8
mov byte [ebp - 0x28], al
call fcn.00402380
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
test eax, eax
je 0x4049d7
test esi, esi
jne 0x404993
test edi, edi
je 0x404990
cmp word [edi], si
je 0x404990
inc esi
cmp word [edi + esi*2], 0
jne 0x404988
mov dword [ebp - 0x2c], esi
cmp eax, esi
jl 0x40499b
mov eax, esi
jmp 0x4049a2
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov bl, 1
mov byte [ebp - 0x28], bl
test esi, esi
je 0x404a1d
sub esi, eax
xor ecx, ecx
mov dword [ebp - 0x2c], esi
test esi, esi
jle 0x4049cf
lea edx, [edi + eax*2]
nop dword [eax]
mov ax, word [edx]
lea edx, [edx + 2]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, esi
jl 0x4049c0
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x404a1d
test esi, esi
jne 0x4049ef
test edi, edi
je 0x4049ec
cmp word [edi], si
je 0x4049ec
inc esi
cmp word [edi + esi*2], 0
jne 0x4049e4
mov dword [ebp - 0x2c], esi
cmp esi, 1
jle 0x404a1a
cmp word [edi + esi*2 - 2], 0x3a
jne 0x404a1a
test edi, edi
je 0x404a09
push edi
call fcn.0046b303
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 0x404a1d
mov bl, byte [ebp - 0x28]
test bl, bl
je 0x404b00
test esi, esi
jne 0x404a3d
test edi, edi
je 0x404a3a
cmp word [edi], si
je 0x404a3a
inc esi
cmp word [edi + esi*2], 0
jne 0x404a32
mov dword [ebp - 0x2c], esi
push dword [ebp - 0x44]
lea ecx, [ebp - 0x20]
call fcn.00401a90
mov edx, eax
inc esi
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x404a6b
mov eax, dword [edx]
test eax, eax
je 0x404a68
cmp word [eax], cx
je 0x404a68
nop dword [eax]
inc ecx
cmp word [eax + ecx*2], 0
jne 0x404a60
mov dword [edx + 4], ecx
cmp esi, ecx
jl 0x404a73
mov esi, ecx
jmp 0x404a7a
xor eax, eax
test esi, esi
cmovs esi, eax
mov byte [edx + 8], 1
test ecx, ecx
je 0x404a8f
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 0x404aae
push 2
call fcn.0046b90c
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 - 0x48]
mov byte [ebp - 0x18], 1
mov eax, dword [ebx]
test eax, eax
je 0x404ac8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx], 0
push ecx
mov edx, 0x20019
mov ecx, esi
call fcn.004054e0
mov dword [ebx], eax
test eax, eax
je 0x404b00
test edi, edi
jne 0x404af0
push 2
call fcn.0046b90c
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 0x404b02
xor bl, bl
test edi, edi
je 0x404b0f
push edi
call fcn.0046b303
add esp, 4
push dword [ebp - 0x4c]
call fcn.0046b303
mov eax, dword [ebp - 0x20]
add esp, 4
test eax, eax
je 0x404b2a
push eax
call fcn.0046b303
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.0046b2f5
mov esp, ebp
pop ebp
ret 4