Function at 0x416510
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x538ddc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x450
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x4c], eax
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x468], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov ebp, dword [esp + 0x474]
lea ecx, [esp + 0x28]
push ecx
push 0xf003f
mov eax, dword [ebp]
push esi
mov edi, 0x200
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x47c], 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
mov dword [esp + 0x30], edi
jne 0x416a00
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x60]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x3c]
push esi
lea eax, [esp + 0x270]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x5c], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, esi
jne 0x4169f1
mov eax, dword [esp + 0x34]
cmp eax, 1
je 0x4165f9
cmp eax, 2
jne 0x4169b5
lea edx, [esp + 0x60]
mov eax, 0x200
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
call fcn.00512a6d
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.004185f0
test eax, eax
je 0x4169b5
lea ecx, [esp + 0x20]
push ecx
call fcn.00420f40
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.0041ff60
add esp, 0xc
test eax, eax
je 0x4166a0
push 0x5c
lea ecx, [esp + 0x24]
call fcn.00512dab
cmp eax, 1
jge 0x41668d
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.00420e80
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x46c], 5
call fcn.00512a1d
lea ecx, [esp + 0x54]
mov byte [esp + 0x468], 4
call fcn.005128e4
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00512dab
test eax, eax
jl 0x4169b5
push 0x22
lea ecx, [esp + 0x14]
call fcn.0050e86c
push 0x22
lea ecx, [esp + 0x14]
call fcn.0050e776
push 0x2c
lea ecx, [esp + 0x14]
call fcn.00512dab
cmp eax, esi
jle 0x4166fa
dec eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push 1
push eax
call fcn.0050e195
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x46c], 6
call fcn.00512a1d
lea ecx, [esp + 0x5c]
mov byte [esp + 0x468], 4
call fcn.005128e4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00422000
mov eax, dword [esp + 0x20]
push 0x5967c4
push eax
mov byte [esp + 0x478], 7
call fcn.004f9670
add esp, 0x10
cmp eax, esi
je 0x416799
mov ecx, dword [esp + 0x18]
push 0x5967bc
push ecx
call fcn.004f9670
add esp, 8
cmp eax, esi
je 0x416799
mov edx, dword [esp + 0x18]
push 0x5967c0
push edx
call fcn.004f9670
add esp, 8
cmp eax, esi
je 0x416799
mov eax, dword [esp + 0x18]
push 0x5967b4
push eax
call fcn.004f9670
add esp, 8
cmp eax, esi
je 0x416799
mov ecx, dword [esp + 0x18]
push 0x5967b0
push ecx
call fcn.004f9670
add esp, 8
cmp eax, esi
je 0x416799
mov edx, dword [esp + 0x18]
push 0x5967b8
push edx
call fcn.004f9670
add esp, 8
cmp eax, esi
jne 0x4169a4
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00512dab
cmp eax, 1
jge 0x4167de
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.00420e80
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x46c], 8
call fcn.00512a1d
lea ecx, [esp + 0x48]
mov byte [esp + 0x468], 7
call fcn.005128e4
lea ecx, [esp + 0x10]
call fcn.00512e06
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea edi, [ebx + 4]
push edx
push eax
mov ecx, edi
call fcn.00512044
cmp dword [esp + 0x14], esi
jne 0x416904
push 0x1c
call fcn.00516a15
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
test esi, esi
mov byte [esp + 0x468], 9
je 0x416832
push 0xa
mov ecx, esi
call fcn.00510deb
mov dword [esi], method.CStringList.virtual_0
jmp 0x416834
xor esi, esi
lea ecx, [esp + 0x58]
push ebp
push ecx
mov ecx, ebx
mov byte [esp + 0x470], 7
mov dword [esp + 0x1c], esi
call fcn.00416440
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x46c], 0xa
call fcn.00512a1d
lea ecx, [esp + 0x58]
mov byte [esp + 0x468], 7
call fcn.005128e4
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00512659
mov ecx, dword [esp + 0x18]
call fcn.004158e0
lea eax, [esp + 0x50]
push ebp
push eax
call fcn.00424b90
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x46c], 0xb
call fcn.00512a1d
lea ecx, [esp + 0x50]
mov byte [esp + 0x468], 7
call fcn.005128e4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4168e0
mov edx, dword [esp + 0x14]
push 1
push 1
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.00417230
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00512659
mov ecx, edi
call fcn.0041b790
xor esi, esi
jmp 0x4169a0
lea ecx, [esp + 0x40]
push ebp
push ecx
mov ecx, ebx
call fcn.00416440
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x46c], 0xc
call fcn.00512a1d
lea ecx, [esp + 0x40]
mov byte [esp + 0x468], 7
call fcn.005128e4
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00512659
mov ecx, dword [esp + 0x18]
call fcn.004158e0
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.00424b90
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x46c], 0xd
call fcn.00512a1d
lea ecx, [esp + 0x44]
mov byte [esp + 0x468], 7
call fcn.005128e4
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], esi
je 0x4169a0
mov edx, dword [esp + 0x14]
push esi
push esi
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.00417230
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x468], 4
call fcn.005128e4
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x2c]
mov eax, ecx
inc ecx
mov dword [esp + 0x3c], ecx
push edx
lea ecx, [esp + 0x64]
lea edx, [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0x3c]
push esi
lea edx, [esp + 0x270]
push ecx
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, esi
je 0x4165e7
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x468], 3
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x468], 2
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x468], 1
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x468], 0
call fcn.005128e4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x468], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x460]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x45c
ret 8