Function at 0x402b9c
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c710
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x4132cc
mov eax, dword [edi + 8]
test eax, eax
jne 0x402bc0
mov eax, ebx
push 0xf003f
mov esi, 0x80000002
push eax
push esi
lea ecx, [ebp - 4]
call fcn.00403d28
test eax, eax
jne 0x402dd0
cmp dword [edi + 0x24], 2
jge 0x402c14
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x402beb
mov edi, ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x402dd0
cmp dword [ebp - 4], eax
je 0x402dcc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402dcc
mov eax, dword [edi + 8]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 8], 0x1000
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], ecx
jne 0x402c2c
mov eax, ebx
lea edx, [ebp - 0x14]
push edx
push 3
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x402dd0
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x402c4f
mov eax, ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x101c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c7a
cmp dword [ebp - 0x10], 7
je 0x402c8e
cmp dword [ebp - 0x10], 1
je 0x402c88
and byte [ebp - 0x101c], 0
mov dword [ebp - 8], 1
cmp dword [ebp - 0x10], 7
jne 0x402d07
cmp byte [ebp - 0x101c], 0
je 0x402db0
mov eax, dword [ebp - 0xc]
lea ebx, [ebp + eax - 0x101c]
push ebx
call fcn.0040bba0
mov esi, eax
mov eax, dword [edi + 0x2c]
inc esi
pop ecx
test eax, eax
jne 0x402cbb
mov eax, 0x4132cc
push eax
push ebx
call fcn.0040c620
pop ecx
test eax, eax
pop ecx
jne 0x402cf2
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
sub ecx, esi
sub ecx, eax
add eax, esi
push ecx
lea eax, [ebp + eax - 0x101c]
push eax
push ebx
call fcn.0040bf60
add esp, 0xc
sub dword [ebp - 8], esi
mov dword [ebp - 0x18], 1
jmp 0x402cf5
add dword [ebp - 0xc], esi
mov eax, dword [ebp - 0xc]
cmp byte [ebp + eax - 0x101c], 0
jne 0x402c9b
mov eax, dword [ebp - 8]
jmp 0x402d6a
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x402d10
mov eax, ebx
push eax
lea eax, [ebp - 0x101c]
push eax
call fcn.0040c370
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x402db0
mov esi, dword [edi + 0x30]
lea eax, [ebp - 0x101c]
add esi, ebx
cmp ebx, eax
je 0x402d3b
dec ebx
jmp 0x402d41
cmp byte [esi], 0x2c
jne 0x402d41
inc esi
push esi
call fcn.0040bba0
inc eax
push eax
push esi
push ebx
call fcn.0040bf60
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x18], 1
push eax
call fcn.0040bba0
add esp, 0x14
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x18], 0
je 0x402db0
mov edi, dword [edi + 0x18]
cmp eax, 3
jae 0x402d8d
test edi, edi
jne 0x402d81
mov edi, 0x4132cc
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x402dad
test edi, edi
jne 0x402d96
mov edi, 0x4132cc
push eax
lea eax, [ebp - 0x101c]
push eax
push dword [ebp - 0x10]
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0x1c], 0
jne 0x402dd0
cmp dword [ebp - 4], 0
je 0x402dcc
push dword [ebp - 4]
call esi
xor eax, eax
jmp 0x402de2
cmp dword [ebp - 4], 0
je 0x402ddf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret