Function at 0x4020a0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x434304]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x1d
mov esi, str.SYSTEMCurrentControlSet_servicesBTHPORTParametersPnpId
lea edi, [ebp - 0x65c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x192
xor esi, esi
lea eax, [ebp - 0x5e6]
push esi
push eax
call fcn.0041d650
push 0x206
lea edx, [ebp - 0x24a]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0x664], esi
mov dword [ebp - 0x668], 8
mov word [ebp - 0x24c], cx
call fcn.0041d650
push 0x206
lea ecx, [ebp - 0x452]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x454], ax
call fcn.0041d650
mov edx, dword [str.BTHPAN]
mov eax, dword [0x42931c]
mov ecx, dword [0x429320]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], edx
mov dx, word [0x429324]
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov eax, dword [str.MS_BTHPAN]
mov word [ebp - 0x18], dx
mov edx, dword [0x429330]
add esp, 0x24
mov dword [ebp - 0x44], eax
mov eax, dword [0x429334]
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x660]
push edx
mov dword [ebp - 0x38], eax
xor eax, eax
push 0xf003f
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x42932c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], ax
push esi
lea eax, [ebp - 0x65c]
mov dword [ebp - 0x40], ecx
mov ecx, dword [0x429338]
push eax
push 0x80000002
mov dword [ebp - 0x670], 0x208
mov dword [ebp - 0x66c], esi
mov dword [ebp - 0x34], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4021f2
mov edx, dword [ebp - 0x660]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x664]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x402204
mov eax, dword [ebp - 0x660]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041558a
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x664], esi
jbe 0x4022d2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x402220
push 0x208
lea ecx, [ebp - 0x24c]
push 0
push ecx
call fcn.0041d650
add esp, 0xc
lea edx, [ebp - 0x670]
push edx
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x674]
push ecx
mov ecx, dword [ebp - 0x660]
push 0
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0x24c]
push eax
push esi
push ecx
mov dword [ebp - 0x668], 0x104
call edi
test eax, eax
jne 0x4022a1
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.004157e0
add esp, 8
test eax, eax
jne 0x4022a1
lea ecx, [ebp - 0x454]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.004157e0
add esp, 8
test eax, eax
je 0x4022b0
inc esi
cmp esi, dword [ebp - 0x664]
jb 0x402220
jmp 0x4022d2
mov ecx, dword [ebp - 0x660]
lea eax, [ebp - 0x24c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4022d2
mov dword [ebp - 0x66c], 1
mov edx, dword [ebp - 0x660]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x66c]
pop edi
xor ecx, ebp
pop esi
call fcn.0041558a
mov esp, ebp
pop ebp
ret