Function at 0x402b50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a4796
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov edx, dword [ebp + 0x14]
mov eax, esi
mov dword [esp + 0x458], ebx
mov dword [esp + 0x28], edx
call fcn.004022a0
mov edi, eax
cmp edi, ebx
jl 0x4031cb
cmp word [esi], 0x7d
je 0x4031c9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4afd2c
push esi
mov dword [esp + 0x1c], 1
call edi
mov ebx, eax
neg ebx
push 0x4afd50
sbb ebx, ebx
push esi
add ebx, 1
call edi
test eax, eax
je 0x402c04
test ebx, ebx
je 0x402d16
mov ecx, dword [esp + 0x24]
mov eax, esi
call fcn.004022a0
mov edi, eax
test edi, edi
jl 0x4031ba
cmp dword [ebp + 0x10], 0
je 0x402d16
movzx ecx, word [esi]
test cx, cx
mov dword [esp + 0x1c], 0
mov eax, esi
je 0x402c57
movzx ecx, cx
cmp cx, 0x5c
je 0x402c4f
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x402c38
jmp 0x402c57
test eax, eax
jne 0x403153
mov edi, 0x4b2e10
lea esp, [esp]
mov eax, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402c93
add edi, 4
cmp edi, 0x4b2e40
jl 0x402c60
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
push esi
lea ecx, [esp + 0x20]
call fcn.004016a0
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x402d16
mov ebx, dword [esp + 0x24]
mov eax, esi
mov ecx, ebx
call fcn.004022a0
mov edi, eax
test edi, edi
jl 0x40316c
mov edi, esi
mov ecx, ebx
call fcn.004027b0
mov edi, eax
test edi, edi
jl 0x40316c
cmp word [esi], 0x7b
jne 0x402d07
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x402d07
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
push 0
push edx
push eax
push esi
mov ecx, ebx
call fcn.00402b50
mov edi, eax
test edi, edi
jl 0x4031ba
mov eax, esi
mov ecx, ebx
call fcn.004022a0
mov edi, eax
test edi, edi
jl 0x4031ba
cmp word [esi], 0x7d
jne 0x402bd1
jmp 0x4031ba
push 0x4afd3c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402d3f
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, esi
call fcn.004022a0
mov edi, eax
test edi, edi
jl 0x4031ba
push 0x4afd68
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402e47
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x23c]
mov ecx, ebx
call fcn.004022a0
mov edi, eax
test edi, edi
jl 0x4031ba
mov eax, esi
mov ecx, ebx
call fcn.004022a0
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x4031ba
cmp word [esi], 0x3d
jne 0x40315c
cmp dword [ebp + 0x10], eax
je 0x402dd8
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x45c], 1
mov dword [esp + 0x18], edx
push ecx
mov ecx, esi
mov edx, ebx
call fcn.004023f0
mov edi, eax
test edi, edi
mov dword [esp + 0x14], 0
jl 0x403172
mov byte [esp + 0x458], 0
jmp 0x402cc1
cmp dword [ebp + 0x14], eax
jne 0x402e39
cmp dword [esp + 0x14], eax
je 0x402e39
lea edx, [esp + 0x1c]
push edx
push 0x20006
push eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4031aa
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x23c]
push ecx
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x402e2e
cmp eax, 2
jne 0x4031aa
test edi, edi
je 0x402e39
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, esi
mov ecx, ebx
call fcn.004027b0
jmp 0x402cfd
movzx ecx, word [esi]
xor ebx, ebx
cmp cx, bx
mov eax, esi
je 0x402e75
movzx ecx, cx
cmp cx, 0x5c
je 0x402e6d
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x402e56
jmp 0x402e75
cmp eax, ebx
jne 0x40315c
cmp dword [ebp + 0x10], ebx
je 0x402f8f
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push ebx
push esi
push eax
mov dword [esp + 0x28], ebx
call edi
cmp eax, ebx
jne 0x402ec0
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x402eb0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x402f4f
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push esi
push eax
mov dword [esp + 0x28], 0
call edi
test eax, eax
jne 0x402efd
test ebx, ebx
je 0x402eef
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x402f4f
mov ebx, ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push esi
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x403186
test ebx, ebx
je 0x402f3d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov edx, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x18], edx
jne 0x403186
mov ebx, dword [esp + 0x24]
mov eax, esi
mov ecx, ebx
call fcn.004022a0
mov edi, eax
test edi, edi
jl 0x4031ba
cmp word [esi], 0x3d
jne 0x402cc1
push 0
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov edx, ebx
call fcn.004023f0
mov edi, eax
test edi, edi
jl 0x4031ba
jmp 0x402cc1
cmp dword [ebp + 0x14], ebx
jne 0x40309a
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push esi
push edx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402fd0
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x402fc8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x402fdf
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x3c]
push 0x104
push edx
call fcn.00487ed8
push eax
call fcn.00401090
mov ebx, dword [esp + 0x38]
add esp, 0x14
mov eax, esi
mov ecx, ebx
call fcn.004022a0
mov edi, eax
test edi, edi
jl 0x4031ba
mov edi, esi
mov ecx, ebx
call fcn.004027b0
mov edi, eax
test edi, edi
jl 0x4031ba
cmp word [esi], 0x7b
jne 0x40306c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40306c
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push 0
push ecx
push esi
mov ecx, ebx
call fcn.00402b50
mov edi, eax
test edi, edi
jge 0x403059
cmp dword [ebp + 0x14], 0
je 0x4031ba
mov eax, esi
mov ecx, ebx
call fcn.004022a0
mov edi, eax
test edi, edi
jl 0x4031ba
mov ecx, dword [esp + 0x1c]
cmp ecx, 2
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x14], eax
je 0x402d07
test ecx, ecx
je 0x4030a7
test eax, eax
jne 0x402d07
mov eax, ecx
call fcn.00401300
mov edi, eax
jmp 0x4031ba
mov dword [esp + 0x1c], 2
jmp 0x402fd8
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x4030e7
mov ecx, ebx
call fcn.00402770
test eax, eax
je 0x4030e7
lea ebx, [esp + 0x34]
call fcn.00402730
test eax, eax
je 0x402d07
cmp dword [esp + 0x14], 0
je 0x402d07
mov edx, ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.004016a0
jmp 0x402d07
mov ecx, ebx
call fcn.00402770
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x40310f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], 0
jne 0x403198
cmp dword [esp + 0x14], 0
je 0x402d07
cmp dword [esp + 0x1c], 0
jne 0x402d07
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov dword [esp + 0x14], 0
jne 0x4031aa
lea esi, [esp + 0x14]
call fcn.00401560
mov esi, dword [esp + 0x2c]
jmp 0x402d07
lea esi, [esp + 0x1c]
call fcn.00401560
lea esi, [esp + 0x18]
call fcn.00401560
mov eax, 0x80020009
jmp 0x4031cb
lea esi, [esp + 0x1c]
jmp 0x4031b5
lea esi, [esp + 0x14]
call fcn.00401560
lea esi, [esp + 0x18]
call fcn.00401560
jmp 0x4031c9
lea esi, [esp + 0x18]
call fcn.00401560
mov eax, edi
call fcn.00401300
jmp 0x4031cb
lea esi, [esp + 0x18]
call fcn.00401560
mov eax, ebx
call fcn.00401300
jmp 0x4031cb
call fcn.00401300
mov edi, eax
lea esi, [esp + 0x14]
call fcn.00401560
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4031c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.00488fa3
mov esp, ebp
pop ebp
ret 0x10