Function at 0x402e70
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, eax
lea esi, [ebp + 0x10010]
dec esi
add esi, 4
and esi, 0xffff0000
push 4
push 0x101000
push esi
push 0
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
test ebx, ebx
je 0x402c77
mov edi, ebx
mov dword [edi + 8], ebp
or esi, 4
mov dword [edi + 0xc], esi
call fcn.00402bd4
mov eax, dword [0x4bdac9]
mov dword [edi], 0x4bdac5
mov dword [0x4bdac9], ebx
mov dword [edi + 4], eax
mov dword [eax], ebx
mov byte [0x4bdac4], 0
add ebx, 0x10
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
lea edx, [eax + 3]
shr edx, 3
cmp eax, 0xa2c
push ebx
mov cl, byte [0x4bb051]
ja 0x4030d0
test cl, cl
movzx eax, byte [edx + 0x4bb8e0]
lea ebx, [eax*8 + 0x4b8078]
jne 0x402ef0
mov edx, dword [ebx + 4]
mov eax, dword [edx + 8]
mov ecx, 0xfffffff8
cmp edx, ebx
je 0x402ec0
add dword [edx + 0xc], 1
and ecx, dword [eax - 4]
mov dword [edx + 8], ecx
mov dword [eax - 4], edx
je 0x402ee0
mov byte [ebx], 0
pop ebx
ret
mov edx, dword [ebx + 0x10]
movzx ecx, word [ebx + 2]
add ecx, eax
cmp eax, dword [ebx + 0xc]
ja 0x402f44
add dword [edx + 0xc], 1
mov dword [ebx + 8], ecx
mov byte [ebx], 0
mov dword [eax - 4], edx
pop ebx
ret
mov ecx, dword [edx + 4]
mov dword [ecx + 0x14], ebx
mov dword [ebx + 4], ecx
mov byte [ebx], 0
pop ebx
ret
mov eax, 0x100
lock cmpxchg byte [ebx], ah
je 0x402e9a
add ebx, 0x20
mov eax, 0x100
lock cmpxchg byte [ebx], ah
je 0x402e9a
add ebx, 0x20
mov eax, 0x100
lock cmpxchg byte [ebx], ah
je 0x402e9a
sub ebx, 0x40
pause
cmp byte [0x4bb8d9], 0
jne 0x402ef0
push 0
call sub.advapi32.dll_RegDeleteValueW
mov eax, 0x100
lock cmpxchg byte [ebx], ah
je 0x402e9a
push 0xa
call sub.advapi32.dll_RegDeleteValueW
jmp 0x402ef0
push esi
push edi
cmp byte [0x4bb051], 0
je 0x402f88
mov eax, 0x100
lock cmpxchg byte [0x4bba37], ah
je 0x402f88
pause
cmp byte [0x4bb8d9], 0
jne 0x402f4f
push 0
call sub.advapi32.dll_RegDeleteValueW
mov eax, 0x100
lock cmpxchg byte [0x4bba37], ah
je 0x402f88
push 0xa
call sub.advapi32.dll_RegDeleteValueW
jmp 0x402f4f
movsx esi, byte [ebx + 1]
and esi, dword [0x4bba40]
je 0x403004
bsf eax, esi
lea esi, [eax*8]
mov ecx, dword [eax*4 + 0x4bba44]
bsf ecx, ecx
lea ecx, [ecx + esi*4]
lea edi, [ecx*8 + 0x4bbac4]
mov esi, dword [edi + 4]
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov dword [edx], edi
cmp edi, edx
jne 0x402fd8
mov edx, 0xfffffffe
rol edx, cl
and dword [eax*4 + 0x4bba44], edx
jne 0x402fd8
btr dword [0x4bba40], eax
mov edi, 0xfffffff0
and edi, dword [esi - 4]
cmp edi, 0x10a60
jb 0x403054
mov edx, edi
movzx edi, word [ebx + 0x1a]
sub edx, edi
lea eax, [edi + esi]
lea ecx, [edx + 3]
mov dword [eax - 4], ecx
mov dword [edx + eax - 8], edx
call fcn.00402a90
jmp 0x403059
movzx ecx, word [ebx + 0x18]
mov edi, dword [0x4bba3c]
cmp edi, ecx
jb 0x403038
mov esi, dword [0x4bba38]
movzx ecx, word [ebx + 0x1a]
lea edx, [ecx + 0xb30]
cmp edi, edx
jb 0x403028
mov edi, ecx
sub esi, edi
sub dword [0x4bba3c], edi
mov dword [0x4bba38], esi
jmp 0x403059
movzx eax, word [ebx + 0x1a]
mov edi, eax
call fcn.00402b5c
mov esi, eax
test eax, eax
jne 0x403059
mov byte [0x4bba37], al
mov byte [ebx], al
pop edi
pop esi
pop ebx
ret
and byte [edi + esi - 4], 0xf7
lea ecx, [edi + 6]
mov dword [esi - 4], ecx
xor eax, eax
mov byte [0x4bba37], al
mov dword [esi], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], 1
mov dword [ebx + 0x10], esi
lea eax, [esi + 0x20]
movzx ecx, word [ebx + 2]
lea edx, [ecx + eax]
mov dword [ebx + 8], edx
add edi, esi
sub edi, ecx
mov dword [ebx + 0xc], edi
mov byte [ebx], 0
mov dword [eax - 4], esi
pop edi
pop esi
pop ebx
ret
mov eax, 0x100
lock cmpxchg byte [0x4bba37], ah
je 0x4030ee
pause
cmp byte [0x4bb8d9], 0
jne 0x403094
push 0
call sub.advapi32.dll_RegDeleteValueW
mov eax, 0x100
lock cmpxchg byte [0x4bba37], ah
je 0x4030ee
push 0xa
call sub.advapi32.dll_RegDeleteValueW
jmp 0x403094
cmp eax, 0x40a2c
ja 0x4031e8
lea ebx, [eax + 0xd3]
and ebx, 0xffffff00
add ebx, 0x30
test cl, cl
jne 0x403094
lea edx, [ebx - 0xb30]
mov ecx, edx
shr edx, 0xd
shr ecx, 8
mov eax, 0xffffffff
shl eax, cl
and eax, dword [edx*4 + 0x4bba44]
je 0x403118
and ecx, 0xffffffe0
bsf eax, eax
or ecx, eax
jmp 0x403174
mov eax, 0xfffffffe
mov ecx, edx
shl eax, cl
and eax, dword [0x4bba40]
je 0x403140
bsf edx, eax
mov eax, dword [edx*4 + 0x4bba44]
bsf ecx, eax
mov eax, edx
shl eax, 5
or ecx, eax
jmp 0x403174
mov ecx, dword [0x4bba3c]
sub ecx, ebx
jb 0x403164
mov eax, dword [0x4bba38]
sub eax, ebx
mov dword [0x4bba38], eax
mov dword [0x4bba3c], ecx
or ebx, 2
mov dword [eax - 4], ebx
jmp 0x40316b
mov eax, ebx
call fcn.00402b5c
mov byte [0x4bba37], 0
pop ebx
ret
push esi
push edi
lea edi, [ecx*8 + 0x4bbac4]
mov esi, dword [edi + 4]
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov dword [eax], edi
cmp edi, eax
jne 0x4031a3
mov eax, 0xfffffffe
rol eax, cl
and dword [edx*4 + 0x4bba44], eax
jne 0x4031a3
btr dword [0x4bba40], edx
mov edi, 0xfffffff0
and edi, dword [esi - 4]
mov edx, edi
sub edx, ebx
je 0x4031d0
lea eax, [ebx + esi]
lea ecx, [edx + 3]
mov dword [eax - 4], ecx
mov dword [edx + eax - 8], edx
cmp edx, 0xb30
jb 0x4031d5
call fcn.00402a90
jmp 0x4031d5
and byte [edi + esi - 4], 0xf7
lea ecx, [ebx + 2]
mov dword [esi - 4], ecx
mov byte [0x4bba37], 0
mov eax, esi
pop edi
pop esi
pop ebx
ret
pop ebx
test eax, eax
jns 0x402c1c
xor eax, eax
ret