Function at 0x402530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push edi
mov byte [ebp - 0x358], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x357]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x250], 0
lea eax, [ebp - 0x35c]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402584
xor eax, eax
jmp 0x4029c4
mov eax, dword [ebp + 0x10]
and eax, 0xf000
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x360], ecx
cmp dword [ebp - 0x360], 0x2000
je 0x402711
cmp dword [ebp - 0x360], 0x5000
je 0x4025bf
jmp 0x402864
mov dword [ebp - 0x114], 0x134
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x24c]
push ecx
push 0
push 0x40f2c8
mov edx, dword [ebp - 0x35c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40270c
mov word [ebp - 0x248], 0
cmp dword [0x410928], 0
je 0x40264a
push 0
push 0x4110a4
push 0
push 0
mov eax, dword [ebp - 0x114]
push eax
lea ecx, [ebp - 0x248]
push ecx
push 0x222008
mov edx, dword [0x410704]
push edx
mov eax, dword [0x410928]
push eax
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
jmp 0x40270c
cmp dword [0x40f0cc], 8
jne 0x40268e
push 0
push 0x4110a4
push 0
push 0
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x248]
push edx
push 0x272008
mov eax, dword [0x410704]
push eax
mov ecx, dword [0x410928]
push ecx
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
jmp 0x40270c
cmp dword [0x40f0cc], 7
ja 0x4026d3
push 0
push 0x4110a4
push 0
push 0
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x248]
push eax
push 0x70000003
mov ecx, dword [0x410704]
push ecx
mov edx, dword [0x410928]
push edx
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
jmp 0x40270c
push 0
push 0x4110a4
push 0
push 0
mov eax, dword [ebp - 0x114]
push eax
lea ecx, [ebp - 0x248]
push ecx
push 0x222008
mov edx, dword [0x410704]
push edx
mov eax, dword [0x410928]
push eax
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
jmp 0x4029b1
mov dword [ebp - 0x114], 0xa0
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x24c]
push eax
push 0
push 0x40f2d0
mov ecx, dword [ebp - 0x35c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40285f
mov word [ebp - 0xa0], 0
cmp dword [0x410928], 0
je 0x40279d
push 0
push 0x4110a4
push 0
push 0
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0xa0]
push eax
push 0x222008
mov ecx, dword [0x410704]
push ecx
mov edx, dword [0x410928]
push edx
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
jmp 0x40285f
cmp dword [0x40f0cc], 8
jne 0x4027e1
push 0
push 0x4110a4
push 0
push 0
mov eax, dword [ebp - 0x114]
push eax
lea ecx, [ebp - 0xa0]
push ecx
push 0x272008
mov edx, dword [0x410704]
push edx
mov eax, dword [0x410928]
push eax
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
jmp 0x40285f
cmp dword [0x40f0cc], 7
ja 0x402825
push 0
push 0x4110a4
push 0
push 0
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0xa0]
push edx
push 0x70000003
mov eax, dword [0x410704]
push eax
mov ecx, dword [0x410928]
push ecx
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
jmp 0x40285f
push 0
push 0x4110a4
push 0
push 0
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0xa0]
push eax
push 0x222008
mov ecx, dword [0x410704]
push ecx
mov edx, dword [0x410928]
push edx
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
jmp 0x4029b1
mov dword [ebp - 0x114], 0x6e
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x24c]
push edx
push 0
push 0x40f2d8
mov eax, dword [ebp - 0x35c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4029b1
mov word [ebp - 0x110], 0
cmp dword [0x410928], 0
je 0x4028ef
push 0
push 0x4110a4
push 0
push 0
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x222008
mov eax, dword [0x410704]
push eax
mov ecx, dword [0x410928]
push ecx
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
jmp 0x4029b1
cmp dword [0x40f0cc], 8
jne 0x402934
push 0
push 0x4110a4
push 0
push 0
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x272008
mov ecx, dword [0x410704]
push ecx
mov edx, dword [0x410928]
push edx
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
jmp 0x4029b1
cmp dword [0x40f0cc], 7
ja 0x402978
push 0
push 0x4110a4
push 0
push 0
mov eax, dword [ebp - 0x114]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0x70000003
mov edx, dword [0x410704]
push edx
mov eax, dword [0x410928]
push eax
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
jmp 0x4029b1
push 0
push 0x4110a4
push 0
push 0
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x222008
mov eax, dword [0x410704]
push eax
mov ecx, dword [0x410928]
push ecx
call fcn.00408d70
add esp, 0x24
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x35c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x250]
pop edi
mov esp, ebp
pop ebp
ret