Function at 0x4186f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5391a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x450], ebx
mov eax, dword [0x5ab980]
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x45c]
lea eax, [esp + 0x24]
push eax
push 0xf003f
push ebx
mov esi, 0x200
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x464], 5
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x418b02
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x48]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x34]
push ebx
lea eax, [esp + 0x258]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x54], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x418af3
mov eax, dword [esp + 0x2c]
cmp eax, 1
je 0x4187ca
cmp eax, 2
jne 0x418ab7
lea edx, [esp + 0x48]
lea ecx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
call fcn.00512a6d
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.004185f0
test eax, eax
je 0x418ab7
lea ecx, [esp + 0x1c]
push ecx
call fcn.00420f40
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0041ff60
add esp, 0xc
test eax, eax
je 0x41886c
push 0x5c
lea ecx, [esp + 0x20]
call fcn.00512dab
cmp eax, 1
jge 0x418859
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.00420e80
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x454], 6
call fcn.00512a1d
lea ecx, [esp + 0x40]
mov byte [esp + 0x450], 5
call fcn.005128e4
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00512dab
test eax, eax
jl 0x418ab7
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, ebx
jle 0x4188c6
dec eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push 1
push eax
call fcn.0050e195
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x454], 7
call fcn.00512a1d
lea ecx, [esp + 0x3c]
mov byte [esp + 0x450], 5
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 + 0x460], 8
call fcn.004f9670
add esp, 0x10
cmp eax, ebx
je 0x418965
mov ecx, dword [esp + 0x18]
push 0x5967bc
push ecx
call fcn.004f9670
add esp, 8
cmp eax, ebx
je 0x418965
mov edx, dword [esp + 0x18]
push 0x5967c0
push edx
call fcn.004f9670
add esp, 8
cmp eax, ebx
je 0x418965
mov eax, dword [esp + 0x18]
push 0x5967b4
push eax
call fcn.004f9670
add esp, 8
cmp eax, ebx
je 0x418965
mov ecx, dword [esp + 0x18]
push 0x5967b0
push ecx
call fcn.004f9670
add esp, 8
cmp eax, ebx
je 0x418965
mov edx, dword [esp + 0x18]
push 0x5967b8
push edx
call fcn.004f9670
add esp, 8
cmp eax, ebx
jne 0x418aa6
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00512dab
cmp eax, 1
jge 0x4189aa
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00420e80
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x454], 9
call fcn.00512a1d
lea ecx, [esp + 0x38]
mov byte [esp + 0x450], 8
call fcn.005128e4
lea ecx, [esp + 0x10]
call fcn.00512e06
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea edi, [ebp + 4]
push edx
push eax
mov ecx, edi
call fcn.00512044
cmp dword [esp + 0x14], ebx
jne 0x418a6a
push 0x1c
call fcn.00516a15
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
cmp esi, ebx
mov byte [esp + 0x450], 0xa
je 0x4189fe
push 0xa
mov ecx, esi
call fcn.00510deb
mov dword [esi], method.CStringList.virtual_0
jmp 0x418a00
xor esi, esi
push ecx
lea edx, [esp + 0x464]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x458], 8
mov dword [esp + 0x1c], esi
call fcn.00512659
mov ecx, dword [esp + 0x18]
call fcn.004158e0
mov eax, dword [esp + 0x14]
push 1
push 1
lea ecx, [esp + 0x46c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebp
call fcn.00417230
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00512659
mov ecx, edi
call fcn.0041b790
mov esi, 0x200
jmp 0x418aa2
push ecx
lea eax, [esp + 0x464]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00512659
mov ecx, dword [esp + 0x18]
call fcn.004158e0
mov ecx, dword [esp + 0x14]
push ebx
push ebx
lea edx, [esp + 0x46c]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call fcn.00417230
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x450], 5
call fcn.005128e4
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x48]
mov eax, ecx
inc ecx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
push edx
push ecx
lea edx, [esp + 0x34]
push ebx
lea ecx, [esp + 0x258]
push edx
mov edx, dword [esp + 0x38]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
je 0x4187b8
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x450], 4
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 3
call fcn.005128e4
lea ecx, [esp + 0x44]
mov byte [esp + 0x450], 2
call fcn.005128e4
lea ecx, [esp + 0x45c]
mov byte [esp + 0x450], 1
call fcn.005128e4
lea ecx, [esp + 0x460]
mov byte [esp + 0x450], bl
call fcn.005128e4
lea ecx, [esp + 0x464]
mov dword [esp + 0x450], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x448]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x444
ret 0x10