Function at 0x402c8d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x734
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x402ca5
cmp dword [ebp + 0xc], 0
jne 0x402cac
xor esi, esi
jmp 0x4030b3
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
call fcn.00408890
lea eax, [ebp - 0x11c]
push 0x5c
push eax
call fcn.00408ef0
add esp, 0x10
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
test esi, esi
je 0x4030b3
and byte [eax], 0
lea ebx, [eax + 1]
mov edi, str.HKLM
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402d05
mov eax, 0x80000002
jmp 0x402dc1
lea eax, [ebp - 0x11c]
push str.HKCU
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402d26
mov eax, 0x80000001
jmp 0x402dc1
lea eax, [ebp - 0x11c]
push str.HKCC
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402d44
mov eax, 0x80000005
jmp 0x402dc1
lea eax, [ebp - 0x11c]
push str.HKCR
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402d62
mov eax, 0x80000000
jmp 0x402dc1
lea eax, [ebp - 0x11c]
push 0x413c00
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402d80
mov eax, 0x80000003
jmp 0x402dc1
lea eax, [ebp - 0x11c]
push str.HKPD
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402d9e
mov eax, 0x80000004
jmp 0x402dc1
lea eax, [ebp - 0x11c]
push str.HKDD
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402dbc
mov eax, 0x80000006
jmp 0x402dc1
mov eax, dword [ebp + 8]
xor esi, esi
test esi, esi
je 0x4030b3
lea ecx, [ebp - 0xc]
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x4030b3
push dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push eax
call fcn.00408890
lea eax, [ebp - 0x220]
push 0x5c
push eax
call fcn.00408ef0
add esp, 0x10
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
test esi, esi
je 0x4030b3
and byte [eax], 0
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402e39
mov edi, 0x80000002
jmp 0x402ef5
lea eax, [ebp - 0x220]
push str.HKCU
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402e5a
mov edi, 0x80000001
jmp 0x402ef5
lea eax, [ebp - 0x220]
push str.HKCC
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402e78
mov edi, 0x80000005
jmp 0x402ef5
lea eax, [ebp - 0x220]
push str.HKCR
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402e96
mov edi, 0x80000000
jmp 0x402ef5
lea eax, [ebp - 0x220]
push 0x413c00
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402eb4
mov edi, 0x80000003
jmp 0x402ef5
lea eax, [ebp - 0x220]
push str.HKPD
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402ed2
mov edi, 0x80000004
jmp 0x402ef5
lea eax, [ebp - 0x220]
push str.HKDD
push eax
call fcn.00408e50
pop ecx
test eax, eax
pop ecx
jne 0x402ef0
mov edi, 0x80000006
jmp 0x402ef5
mov edi, dword [ebp + 8]
xor esi, esi
test esi, esi
je 0x4030b3
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push edi
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x402f2b
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x4030b3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x104
lea eax, [ebp - 0x52c]
push edi
push eax
push 0
push dword [ebp - 0xc]
mov dword [ebp - 4], 1
call ebx
test eax, eax
jne 0x40301c
push dword [ebp + 8]
lea eax, [ebp - 0x324]
push eax
call fcn.00408890
lea eax, [ebp - 0x324]
push eax
call fcn.00408810
add esp, 0xc
cmp byte [ebp + eax - 0x325], 0x5c
je 0x402f8f
lea eax, [ebp - 0x324]
push 0x413894
push eax
call fcn.004088a0
pop ecx
pop ecx
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.004088a0
push dword [ebp + 0xc]
lea eax, [ebp - 0x428]
push eax
call fcn.00408890
lea eax, [ebp - 0x428]
push eax
call fcn.00408810
add esp, 0x14
cmp byte [ebp + eax - 0x429], 0x5c
je 0x402fdd
lea eax, [ebp - 0x428]
push 0x413894
push eax
call fcn.004088a0
pop ecx
pop ecx
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004088a0
pop ecx
lea eax, [ebp - 0x428]
pop ecx
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.00402c8d
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
lea ecx, [ebp - 0x52c]
push edi
push ecx
push eax
push dword [ebp - 0xc]
jmp 0x402f4a
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0x734]
mov dword [ebp - 8], edi
push eax
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
call ebx
test eax, eax
jne 0x4030a3
push dword [ebp - 0x10]
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x734]
push dword [ebp - 0x18]
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x630]
push ecx
lea ecx, [ebp - 0x18]
push ecx
inc dword [ebp - 4]
lea ecx, [ebp - 8]
push 0
push ecx
lea ecx, [ebp - 0x734]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jmp 0x403050
push dword [ebp - 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x14]
call edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8