Function at 0x413340
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425578
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x434304]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov ecx, dword [0x4357a0]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x413396
mov eax, dword [eax]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], dx
lea esi, [ecx + 2]
jmp 0x4133b0
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4133b0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x34]
call fcn.0040b550
mov eax, esi
push eax
mov edx, edi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.0040a290
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 8
jb 0x4133f2
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00416027
add esp, 4
mov dword [ebp - 0x38], ebx
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x413677
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
push 0x2c
sub esp, 0x1c
lea ecx, [ebx*8]
sub ecx, ebx
lea eax, [edi + ecx*4]
mov ecx, esp
mov dword [ebp - 0x54], esp
mov byte [ebp - 4], 3
push edx
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edx
xor edi, edi
or eax, 0xffffffff
lea esi, [ebp - 0x28]
mov word [ecx], di
call fcn.0040b130
mov ecx, esi
call fcn.0040a480
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov ecx, edi
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0x20
cmp eax, 3
je 0x41350f
test ebx, ebx
je 0x4134c6
mov esi, ebx
nop
cmp esi, edi
je 0x4134bd
cmp dword [esi + 0x14], 8
jb 0x4134a5
mov ecx, dword [esi]
push ecx
call fcn.00416027
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
jmp 0x413490
push ebx
call fcn.00416027
add esp, 4
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4136bb
mov esi, edi
cmp esi, dword [ebp - 0x48]
je 0x413501
cmp dword [esi + 0x14], 8
jb 0x4134e9
mov eax, dword [esi]
push eax
call fcn.00416027
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
jmp 0x4134d3
push edi
call fcn.00416027
add esp, 4
jmp 0x4136bb
mov eax, dword [ebx + 0x48]
lea esi, [ebx + 0x38]
mov edi, 1
mov dword [0x4357a0], 0x80000002
cmp eax, edi
jae 0x41352e
mov edi, eax
test edi, edi
je 0x413573
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x41353a
mov edx, dword [esi]
jmp 0x41353c
mov edx, esi
cmp ecx, 8
jb 0x413545
mov ecx, dword [esi]
jmp 0x413547
mov ecx, esi
sub eax, edi
add eax, eax
push eax
lea edx, [edx + edi*2]
push edx
push ecx
call fcn.004166f0
mov eax, dword [esi + 0x10]
sub eax, edi
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
jb 0x41356b
mov ecx, dword [esi]
jmp 0x41356d
mov ecx, esi
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [ebx + 0x48]
mov eax, dword [esi + 0x10]
dec ecx
mov edi, 1
cmp eax, ecx
jae 0x41358d
push str.invalid_string_position
call fcn.0041551c
sub eax, ecx
cmp eax, 1
jae 0x41359a
mov edi, eax
test edi, edi
je 0x4135e8
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x4135a6
mov ebx, dword [esi]
jmp 0x4135a8
mov ebx, esi
cmp edx, 8
jb 0x4135b1
mov edx, dword [esi]
jmp 0x4135b3
mov edx, esi
sub eax, edi
add eax, eax
push eax
lea eax, [ecx + edi]
lea eax, [ebx + eax*2]
push eax
lea ecx, [edx + ecx*2]
push ecx
call fcn.004166f0
mov eax, dword [esi + 0x10]
sub eax, edi
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
jb 0x4135dd
mov ecx, dword [esi]
jmp 0x4135df
mov ecx, esi
mov ebx, dword [ebp - 0x28]
xor edx, edx
mov word [ecx + eax*2], dx
cmp dword [esi + 0x14], 8
jb 0x4135f0
mov esi, dword [esi]
mov ecx, dword [0x4357a4]
mov edx, dword [0x4357a0]
lea eax, [ebp - 0x3c]
push eax
push ecx
push 0
push str.SYSTEMCurrentControlSetServicesBTHPORTParametersUnsupportedServices
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
cmp eax, edi
jne 0x41362a
mov eax, dword [ebp - 0x3c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov esi, ebx
cmp esi, dword [ebp - 0x24]
je 0x41365a
cmp dword [esi + 0x14], 8
jb 0x413646
mov edx, dword [esi]
push edx
call fcn.00416027
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
add esi, 0x1c
jmp 0x413630
push ebx
call fcn.00416027
add esp, 4
inc dword [ebp - 0x38]
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
jmp 0x4133f5
xor ebx, ebx
cmp edi, ebx
je 0x4136b3
mov esi, edi
nop
cmp esi, dword [ebp - 0x48]
je 0x4136aa
cmp dword [esi + 0x14], 8
jb 0x413696
mov ecx, dword [esi]
push ecx
call fcn.00416027
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
add esi, 0x1c
jmp 0x413680
push edi
call fcn.00416027
add esp, 4
mov eax, dword [ebp - 0x50]
mov dword [0x4357a0], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041558a
mov esp, ebp
pop ebp
ret