Function at 0x405930
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46220d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x47b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x405da3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push dword [0x47df38]
push dword [0x47df10]
push dword [0x47def8]
push dword [0x47df34]
push dword [0x47df3c]
push dword [0x47df30]
push str._s__s__s__s__s__s
push eax
call fcn.00406780
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
add esp, 0x20
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x405da3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x47021c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004062e0
test al, al
jne 0x405a17
push 1
push 0x47021c
lea ecx, [ebp - 0x14]
call fcn.004065f0
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
cmp esi, edi
je 0x405a51
mov edx, dword [esi]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405a3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
mov eax, 0xffffffff
cmp esi, edi
jne 0x405a28
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x3c], eax
call fcn.004064a0
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 4
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x405dad
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 5
nop dword [eax]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x405aa0
mov dword [ebp - 0x28], 0xffffffff
jmp 0x405ad4
cmp dword [esi - 0xc], 0
jge 0x405aaf
mov dword [ebp - 0x28], 0xffffffff
jmp 0x405ad4
push eax
push esi
call fcn.00439cd9
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x405ac8
mov dword [ebp - 0x28], 0xffffffff
jmp 0x405ad4
sub ebx, esi
sar ebx, 1
mov dword [ebp - 0x28], ebx
cmp ebx, 0xffffffff
jne 0x405b4e
lea ecx, [esi - 0x10]
lea ebx, [edi - 0x10]
cmp ecx, ebx
je 0x405b12
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x405b3d
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x405b3d
call fcn.004064a0
mov dword [ebp - 0x2c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x405b0c
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x30], edi
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x18]
je 0x405c7f
lea ecx, [edi - 0x10]
call fcn.004064a0
mov ecx, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ecx], eax
add dword [ebp - 0x1c], 4
jmp 0x405c8e
push dword [esi - 0xc]
lea ecx, [ebp - 0x30]
push esi
call fcn.004065f0
mov edi, dword [ebp - 0x30]
jmp 0x405b12
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407a00
mov byte [ebp - 4], 6
lea ecx, [edi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x28], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x2c], eax
cmp eax, ecx
je 0x405bbc
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x405bad
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x405bad
mov ecx, dword [ebp - 0x2c]
call fcn.004064a0
mov dword [ebp - 0x2c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x405ba5
mov edi, dword [ebp - 0x28]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x30], edi
jmp 0x405bbc
push dword [edx - 0xc]
lea ecx, [ebp - 0x30]
push edx
call fcn.004065f0
mov edi, dword [ebp - 0x30]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405bdb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov eax, dword [esi - 0xc]
add ecx, ebx
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407c10
mov byte [ebp - 4], 7
lea ecx, [esi - 0x10]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
lea edx, [eax - 0x10]
mov dword [ebp - 0x28], edx
cmp edx, ecx
je 0x405c5a
cmp dword [ecx + 0xc], 0
jl 0x405c48
mov esi, dword [ebp - 0x2c]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x405c48
mov ecx, edx
call fcn.004064a0
mov dword [ebp - 0x2c], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405c40
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
jmp 0x405c57
push dword [eax - 0xc]
lea ecx, [ebp - 0x34]
push eax
call fcn.004065f0
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov dword [ebp - 0x28], ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405b12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x405b15
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00408690
test ebx, ebx
jns 0x405a90
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x405cb4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405ccf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405ced
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
cmp edi, eax
je 0x405d63
nop word [eax + eax]
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x405da3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x14]
push dword [edi]
push 0x470220
push eax
call fcn.00406780
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405d5b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [ebp - 0x38]
jne 0x405d00
lea ecx, [ebp - 0x20]
call fcn.00406220
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x405d87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438436
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022c0
push 0x80004005
call fcn.004022c0
int3