Function at 0x40d510
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c488e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x51eee0]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edx, dword [0x520340]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x94], eax
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 0xd
jne 0x40d5b8
mov ax, word [0x4da0a4]
movq xmm0, qword [str.KCigGXY66]
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x7c]
movq qword [ebp - 0x7c], xmm0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d590
sub eax, edx
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
push eax
call fcn.004a7190
add esp, 8
push 0
lea ecx, [ebp - 0xa4]
call fcn.00442860
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
push str.success
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00442820
lea eax, [ebp - 0x8c]
push eax
push 0x4d968c
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 2
call fcn.00442d00
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00442a70
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x70], edi
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 3
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x58], esi
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 4
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x90], ebx
push str.success
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
call fcn.00442820
push 0x4d968c
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 7
call fcn.00442d00
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
call fcn.00442a70
mov ecx, dword [ebp - 0x64]
push str.hive
call fcn.00442de0
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004435b0
lea eax, [ebp - 0x60]
push eax
call fcn.0044ee90
add esp, 0x1c
mov edx, dword [eax]
lea ecx, [edi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x68], ecx
cmp eax, ecx
je 0x40d737
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x40d728
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40d728
push dword [ebp - 0x50]
call fcn.00404840
add esp, 4
mov dword [ebp - 0x50], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40d720
mov edx, dword [ebp - 0x68]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x50]
lea edi, [eax + 0x10]
mov dword [ebp - 0x70], edi
jmp 0x40d737
push dword [edx - 0xc]
lea ecx, [ebp - 0x70]
push edx
call fcn.00409950
mov edi, dword [ebp - 0x70]
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
or ecx, 0xffffffff
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d758
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
push ecx
mov ecx, dword [edi]
mov dword [ebp - 0x50], esp
mov eax, dword [ecx]
mov dword [ebp - 0x68], edi
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x40d783
cmp ecx, dword [edi]
jne 0x40d783
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40d7c6
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x60], edx
test edx, edx
jne 0x40d79a
call fcn.0040c2e0
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.004a7195
mov edi, dword [ebp - 0x60]
add esp, 0x10
mov ecx, dword [ebp - 0x50]
lea eax, [edi + 0x10]
mov dword [ecx], eax
call fcn.004155d0
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x40d8df
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push str.deleteRegElement_hive_error_
push eax
call fcn.0040b800
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 9
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xa
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xb
call fcn.00442d00
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xa
call fcn.00442a70
cmp dword [ebp - 0x18], 0x10
jb 0x40d85c
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d87f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d89c
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d8b9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d8d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
jmp 0x40e241
mov ecx, dword [ebp - 0x64]
push 0x4d9ab8
call fcn.00442de0
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004435b0
lea eax, [ebp - 0x54]
push eax
call fcn.0044ee90
add esp, 0x1c
mov edx, dword [eax]
lea ecx, [esi - 0x10]
lea edi, [edx - 0x10]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x60], ecx
cmp edi, ecx
je 0x40d964
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40d955
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x40d955
push edi
call fcn.00404840
or edi, 0xffffffff
add esp, 4
mov dword [ebp - 0x6c], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40d94d
mov edx, dword [ebp - 0x60]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x6c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x58], esi
jmp 0x40d967
push dword [edx - 0xc]
lea ecx, [ebp - 0x58]
push edx
call fcn.00409950
mov esi, dword [ebp - 0x58]
or edi, 0xffffffff
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d987
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x64]
push 0x4d9b70
call fcn.00443e00
test al, al
je 0x40da4c
mov ecx, dword [ebp - 0x64]
push 0x4d9b70
call fcn.00442de0
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004435b0
lea eax, [ebp - 0x60]
push eax
call fcn.0044ee90
add esp, 0x1c
mov edx, dword [eax]
lea ecx, [ebx - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x6c], ecx
cmp eax, ecx
je 0x40da2c
cmp dword [ecx + 0xc], 0
lea ebx, [ecx + 0xc]
jl 0x40da17
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40da17
push dword [ebp - 0x54]
call fcn.00404840
add esp, 4
mov dword [ebp - 0x54], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40da0c
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x90], ebx
jmp 0x40da2c
push dword [edx - 0xc]
lea ecx, [ebp - 0x90]
push edx
call fcn.00409950
mov ebx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40da4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xf023f
push esi
push dword [ebp - 0x50]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x59], 0
call fcn.0040bf10
test eax, eax
je 0x40dbab
push 0xf013f
push esi
push dword [ebp - 0x50]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x59], 1
call fcn.0040bf10
test eax, eax
je 0x40dbab
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043e100
add esp, 8
push eax
lea eax, [ebp - 0x50]
push str.deleteRegElement_Open_
push eax
mov byte [ebp - 4], 0xe
call fcn.0040b800
add esp, 0xc
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x10
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dac9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x11
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x12
call fcn.00442d00
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x11
call fcn.00442a70
cmp dword [ebp - 0x18], 0x10
jb 0x40db2b
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40db4b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40db68
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40db85
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dba2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
jmp 0x40e22c
cmp dword [ebx - 0xc], 0
jne 0x40e054
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40dbca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x7c], 0
mov ecx, dword [esi - 0xc]
mov dword [ebp - 0x78], 0
lea eax, [ecx - 1]
test eax, eax
js 0x40dbec
cmp eax, ecx
jg 0x40dbec
cmp word [esi + eax*2], 0x5c
jne 0x40dc24
dec ecx
mov dword [ebp - 0x54], ecx
jns 0x40dbf6
push 0x80070057
call fcn.00404480
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x40dc16
push ecx
lea ecx, [ebp - 0x58]
call fcn.004088a0
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [esi - 8]
jg 0x40dbec
xor eax, eax
mov dword [esi - 0xc], ecx
mov word [esi + ecx*2], ax
mov eax, dword [esi - 0xc]
push 0x5c
push esi
mov dword [ebp - 0x54], eax
call fcn.004a7759
add esp, 8
test eax, eax
jne 0x40dc3e
or eax, 0xffffffff
jmp 0x40dc42
sub eax, esi
sar eax, 1
mov ecx, dword [ebp - 0x54]
sub ecx, eax
dec ecx
push ecx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040c1c0
push 0x5c
push esi
mov byte [ebp - 4], 0x13
call fcn.004a7759
add esp, 8
test eax, eax
jne 0x40dc6d
or eax, 0xffffffff
jmp 0x40dc71
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040bd80
mov edx, dword [eax]
lea ecx, [esi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x6c], ecx
cmp eax, ecx
je 0x40dce1
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40dcd2
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40dcd2
push dword [ebp - 0x54]
call fcn.00404840
add esp, 4
mov dword [ebp - 0x54], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40dcca
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
lea esi, [eax + 0x10]
mov dword [ebp - 0x58], esi
jmp 0x40dce1
push dword [edx - 0xc]
lea ecx, [ebp - 0x58]
push edx
call fcn.00409950
mov esi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dd01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x59], 0
mov ecx, pe_nt_image_headers32
mov eax, 0x200
cmovne eax, ecx
or eax, 0xf003f
push eax
push esi
push dword [ebp - 0x50]
lea ecx, [ebp - 0x7c]
call fcn.0040bf10
test eax, eax
je 0x40de75
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043e100
add esp, 8
push eax
lea eax, [ebp - 0x50]
push str.deleteRegElement_Open_sub_
push eax
mov byte [ebp - 4], 0x15
call fcn.0040b800
add esp, 0xc
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x17
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dd6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x18
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x19
call fcn.00442d00
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x18
call fcn.00442a70
cmp dword [ebp - 0x18], 0x10
jb 0x40ddd1
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ddf1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40de11
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40de2e
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40de4b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dba2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
jmp 0x40e22c
push dword [ebp - 0x64]
lea ecx, [ebp - 0x7c]
call fcn.0040c070
test eax, eax
je 0x40dfd1
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043e100
add esp, 8
push eax
lea eax, [ebp - 0x50]
push str.deleteRegElement_RecurseDeleteKey_
push eax
mov byte [ebp - 4], 0x1a
call fcn.0040b800
add esp, 0xc
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1c
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40decb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x1d
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x1e
call fcn.00442d00
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x1d
call fcn.00442a70
cmp dword [ebp - 0x18], 0x10
jb 0x40df2d
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40df4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40df6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40df8a
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dfa7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dba2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
jmp 0x40e22c
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dff1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov dword [ebp - 4], 4
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e011
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e02e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e22c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e22c
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40dff1
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043e100
add esp, 8
push eax
lea eax, [ebp - 0x50]
push str.deleteRegElement_DeleteValue_
push eax
mov byte [ebp - 4], 0x1f
call fcn.0040b800
add esp, 0xc
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x21
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e0a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x22
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x23
call fcn.00442d00
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x22
call fcn.00442a70
cmp dword [ebp - 0x18], 0x10
jb 0x40e107
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e127
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e144
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e161
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dba2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
jmp 0x40e22c
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40e241
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x78], 0
call fcn.004449b0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 0x28
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x29
call fcn.004478c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x2a
jb 0x40e28c
mov edx, dword [edx]
sub esp, 0x18
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x40e2ab
xor ecx, ecx
jmp 0x40e2b9
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e2b0
sub ecx, ebx
push ecx
push edx
mov ecx, esi
call fcn.00401460
lea eax, [ebp - 0x54]
push eax
call fcn.0044ee90
add esp, 0x1c
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x2b
call fcn.00402af0
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x2a
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e2fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 4], 0x29
jb 0x40e310
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov ebx, dword [ebp - 0x94]
mov esi, dword [ebp - 0x50]
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x40e334
call fcn.0040c2e0
mov dword [ebx + 8], eax
call fcn.00417bc0
test al, al
jne 0x40e357
push 0xfc
push 0xfb
push str._d__d_n
call fcn.004a80de
add esp, 0xc
add esi, 0xfffffff0
mov byte [ebp - 4], 0x28
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40e372
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], 0x4d9684
jb 0x40e38e
push dword [ebp - 0x48]
call fcn.004a5bbe
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00444ab0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40e3b6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
call fcn.00442a70
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.004a63c4
mov esp, ebp
pop ebp
ret