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

Disassembly:
push 0xffffffffffffffff
push 0x538ec2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x27c], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
push str.SOFTWAREClasses
lea ecx, [esp + 0x28]
mov byte [esp + 0x280], 5
mov dword [esp + 0x1c], ebp
call fcn.00512952
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x40]
mov byte [esp + 0x27c], 6
push eax
push 0xf003f
push ebp
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, ebp
je 0x416c32
lea ecx, [esp + 0x24]
mov byte [esp + 0x27c], 5
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x27c], 4
call fcn.005128e4
lea ecx, [esp + 0x34]
mov byte [esp + 0x27c], 3
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], 2
call fcn.005128e4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x27c], 1
call fcn.005128e4
lea ecx, [esp + 0x38]
mov byte [esp + 0x27c], 0
call fcn.005128e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x27c], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x417189
mov eax, dword [esp + 0x40]
mov esi, 0x200
lea edx, [esp + 0x74]
push esi
push edx
push ebp
push eax
mov dword [esp + 0x54], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, ebp
jne 0x4170ff
jmp 0x416c61
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x74]
mov dword [esp + 0x30], esi
push ecx
lea ecx, [esp + 0x18]
call fcn.00512a6d
lea edx, [esp + 0x6c]
push 1
push edx
lea ecx, [esp + 0x1c]
call fcn.0050e2a7
mov eax, dword [eax]
push 0x598c70
push eax
call fcn.004f9670
add esp, 8
cmp eax, ebp
lea ecx, [esp + 0x6c]
setne bl
call fcn.005128e4
test bl, bl
jne 0x4170d5
mov ecx, dword [esp + 0x284]
push ebp
push ebp
call fcn.00459410
test eax, eax
jne 0x4171a4
lea ecx, [esp + 0x24]
push 0x5971e8
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.00512b79
lea ecx, [esp + 0x74]
lea edx, [esp + 0x60]
push ecx
push eax
push edx
mov byte [esp + 0x288], 7
call fcn.00512b79
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 8
call fcn.00512a1d
lea ecx, [esp + 0x60]
mov byte [esp + 0x27c], 7
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x27c], 6
call fcn.005128e4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0xf003f
push ebp
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4170d5
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x30]
lea eax, [esp + 0x74]
push edx
push eax
push ebp
push ebp
push ebp
push ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov esi, eax
call ebx
cmp esi, ebp
jne 0x4170d5
mov eax, dword [0x5ab980]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x24]
push 0x5971e8
lea edx, [esp + 0x5c]
push ecx
push edx
mov byte [esp + 0x288], 9
call fcn.00512b79
lea ecx, [esp + 0x74]
lea edx, [esp + 0x70]
push ecx
push eax
push edx
mov byte [esp + 0x288], 0xa
call fcn.00512b79
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x280], 0xb
call fcn.00512a1d
lea ecx, [esp + 0x70]
mov byte [esp + 0x27c], 0xa
call fcn.005128e4
lea ecx, [esp + 0x58]
mov byte [esp + 0x27c], 9
call fcn.005128e4
lea eax, [esp + 0x1c]
push str._shellopencommand
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.00512b79
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0xf003f
push ebp
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.005128e4
cmp esi, ebp
jne 0x4170c4
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x74]
mov edx, dword [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x74]
push eax
push ecx
push ebp
push ebp
push ebp
push edx
mov dword [esp + 0x48], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebp
je 0x416e5b
mov eax, dword [esp + 0x20]
push eax
call ebx
jmp 0x4170c4
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x14]
call fcn.00512a6d
lea ecx, [esp + 0x10]
call fcn.00512e06
push str..EXE
lea ecx, [esp + 0x14]
call fcn.0050e341
cmp eax, 1
jge 0x416e91
mov edx, dword [esp + 0x20]
push edx
call ebx
jmp 0x4170c4
add eax, 4
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 0xc
call fcn.00512a1d
lea ecx, [esp + 0x48]
mov byte [esp + 0x27c], 9
call fcn.005128e4
lea ecx, [esp + 0x4c]
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.0050e2a7
mov eax, dword [eax]
mov esi, 0x5982cc
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x416f05
test cl, cl
je 0x416f01
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x416f05
add eax, 2
add esi, 2
test cl, cl
jne 0x416edd
xor eax, eax
jmp 0x416f0a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
lea ecx, [esp + 0x4c]
sete bl
call fcn.005128e4
test bl, bl
je 0x416f4f
lea eax, [esp + 0x54]
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.0050e172
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 0xd
call fcn.00512a1d
lea ecx, [esp + 0x54]
mov byte [esp + 0x27c], 9
call fcn.005128e4
push 0x5971e8
lea ecx, [esp + 0x14]
call fcn.0050e341
cmp eax, 1
jge 0x416f97
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.00420e80
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 0xe
call fcn.00512a1d
lea ecx, [esp + 0x5c]
mov byte [esp + 0x27c], 9
call fcn.005128e4
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0041ff60
add esp, 8
test eax, eax
jne 0x416fbb
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
call fcn.00512a1d
lea eax, [esp + 0x10]
push eax
call fcn.00420f40
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00512e06
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
lea edi, [ecx + 4]
push edx
push eax
mov ecx, edi
call fcn.00512044
cmp dword [esp + 0x18], ebp
jne 0x417081
push 0x1c
call fcn.00516a15
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
cmp esi, ebp
mov byte [esp + 0x27c], 0xf
je 0x417020
push 0xa
mov ecx, esi
call fcn.00510deb
mov dword [esi], method.CStringList.virtual_0
jmp 0x417022
xor esi, esi
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x284], 9
mov dword [esp + 0x20], esi
call fcn.00512659
mov ecx, dword [esp + 0x1c]
call fcn.004158e0
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00512659
mov ecx, dword [esp + 0x1c]
call fcn.004158e0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00512659
mov ecx, edi
call fcn.0041b790
jmp 0x4170b5
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00512659
mov ecx, dword [esp + 0x1c]
call fcn.004158e0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00512659
mov ecx, dword [esp + 0x1c]
call fcn.004158e0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 6
call fcn.005128e4
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, ecx
inc ecx
mov dword [esp + 0x44], ecx
mov esi, 0x200
lea ecx, [esp + 0x74]
push esi
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, ebp
je 0x416c5b
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
mov byte [esp + 0x27c], 5
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x27c], 4
call fcn.005128e4
lea ecx, [esp + 0x34]
mov byte [esp + 0x27c], 3
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], 2
call fcn.005128e4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x27c], 1
call fcn.005128e4
lea ecx, [esp + 0x38]
mov byte [esp + 0x27c], 0
call fcn.005128e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x27c], 0xffffffff
call fcn.005128e4
mov eax, 1
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x270
ret 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x27c], 5
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x27c], 4
call fcn.005128e4
lea ecx, [esp + 0x34]
mov byte [esp + 0x27c], 3
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], 2
call fcn.005128e4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x27c], 1
call fcn.005128e4
lea ecx, [esp + 0x38]
mov byte [esp + 0x27c], 0
call fcn.005128e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x27c], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffc19
jmp 0x417189