Function at 0x407110
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c9bb
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x463444]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0x4558a0
mov dword [ebp - 0x38], 0
push 0x4558b8
lea ecx, [ebp - 0x10]
call fcn.00402330
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00408aa0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x34]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40729b
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x144], 0
push 0x103
push 0
lea edx, [ebp - 0x143]
push edx
call fcn.0043b290
add esp, 0xc
push 0x104
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40722f
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x264]
call fcn.00402330
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00408a20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.00402f30
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x148], edx
jmp 0x407231
jmp 0x40723a
mov eax, 1
test eax, eax
jne 0x4071c4
mov dword [ebp - 0x14c], 0
jmp 0x407255
mov ecx, dword [ebp - 0x14c]
add ecx, 1
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x14c]
cmp edx, dword [ebp - 0x148]
jae 0x407291
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004089f0
push eax
call fcn.00408990
add esp, 8
movzx edx, al
test edx, edx
je 0x40728f
mov dword [ebp - 0x30], 1
jmp 0x407291
jmp 0x407246
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], 1
jne 0x40735b
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x150], 0x4558e8
lea ecx, [ebp - 0x38]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x150]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4072e5
mov dword [ebp - 0x30], 0
jmp 0x40735b
mov byte [ebp - 0x25c], 0
push 0x103
push 0
lea eax, [ebp - 0x25b]
push eax
call fcn.0043b290
add esp, 0xc
mov dword [ebp - 0x260], 0x104
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x25c]
push edx
push 0
push 0
push 0x455930
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x407338
jmp 0x40735b
push str.10110714
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, dword [ebp - 0x26c]
call fcn.00405890
cmp eax, 1
jne 0x40735b
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x268], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004089d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402f30
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.004381fb
mov esp, ebp
pop ebp
ret