Function at 0x418050
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x5390f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x298], ebx
mov dword [esp + 0x28], eax
push str.SOFTWAREClassesCLSID
lea ecx, [esp + 0x1c]
mov byte [esp + 0x29c], 2
call fcn.00512952
mov eax, dword [0x5ab980]
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x2a0]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x68], eax
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], 0x559c1c
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x2ac], 5
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4181b7
lea ecx, [esp + 0x70]
mov byte [esp + 0x298], 7
call fcn.005128e4
lea ecx, [esp + 0x6c]
mov byte [esp + 0x298], 6
call fcn.005128e4
lea ecx, [esp + 0x68]
mov byte [esp + 0x298], 4
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], 3
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 2
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x298], 1
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x298], bl
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x41851f
push ebx
push ebx
mov eax, dword [esp + 0x24]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x44]
push ebx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4181d9
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x90]
push 0x200
push ecx
push ebx
push edx
mov dword [esp + 0x40], 1
call edi
cmp eax, ebx
jne 0x418484
jmp 0x418208
xor ebx, ebx
lea eax, [esp + 0x18]
push 0x5971e8
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00512b79
lea edx, [esp + 0x90]
mov byte [esp + 0x298], 8
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00512b79
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x29c], 9
call fcn.00512a1d
lea ecx, [esp + 0x34]
mov byte [esp + 0x298], 8
call fcn.005128e4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x298], 5
call fcn.005128e4
lea ecx, [esp + 0x4c]
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.0050e22b
mov eax, dword [eax]
mov esi, 0x598c98
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4182a6
test cl, cl
je 0x4182a2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4182a6
add eax, 2
add esi, 2
test cl, cl
jne 0x418282
xor eax, eax
jmp 0x4182ab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
lea ecx, [esp + 0x4c]
setne bl
call fcn.005128e4
test bl, bl
jne 0x41845c
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4182eb
push eax
mov eax, dword [esp + 0x34]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea ecx, [esp + 0x58]
call fcn.004594b0
test eax, eax
jne 0x41853a
jmp 0x4182fe
push 0
push 0
mov ecx, ebp
call fcn.00459410
test eax, eax
jne 0x418555
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x18]
call fcn.00512a6d
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00512659
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
mov byte [esp + 0x2a4], 0xe
call fcn.00512659
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x2a8], 0xf
call fcn.00512659
mov ebx, dword [esp + 0x50]
push ebp
mov ecx, ebx
mov byte [esp + 0x2a8], 5
call fcn.004186f0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push 0xf003f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41845c
lea edx, [esp + 0x90]
push 0x200
push edx
push eax
mov eax, dword [esp + 0x30]
mov esi, 1
push eax
call edi
test eax, eax
jne 0x418451
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.00512659
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
mov byte [esp + 0x2a4], 0x10
call fcn.00512659
lea ecx, [esp + 0x18]
push 0x5971e8
lea edx, [esp + 0x5c]
push ecx
push edx
mov byte [esp + 0x2ac], 0x11
call fcn.00512b79
push ecx
lea edx, [esp + 0x9c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
push eax
push ecx
mov byte [esp + 0x2b0], 0x12
call fcn.00512b79
push ebp
mov ecx, ebx
mov byte [esp + 0x2a8], 0x13
call fcn.004186f0
lea ecx, [esp + 0x50]
mov byte [esp + 0x298], 5
call fcn.005128e4
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x90]
mov eax, esi
push 0x200
push ecx
push eax
push edx
inc esi
call edi
test eax, eax
je 0x4183ac
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov eax, ecx
inc ecx
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x90]
push 0x200
push ecx
push eax
push edx
call edi
test eax, eax
je 0x418206
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x70]
mov byte [esp + 0x298], 0x15
call fcn.005128e4
lea ecx, [esp + 0x6c]
mov byte [esp + 0x298], 0x14
call fcn.005128e4
lea ecx, [esp + 0x68]
mov byte [esp + 0x298], 4
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], 3
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 2
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x298], 1
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x298], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], 0xffffffff
call fcn.005128e4
mov eax, 1
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28c
ret 4
lea ecx, [esp + 0x70]
mov byte [esp + 0x298], 0xb
call fcn.005128e4
mov byte [esp + 0x298], 0xa
jmp 0x41856e
lea ecx, [esp + 0x70]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
mov byte [esp + 0x298], 0xc
lea ecx, [esp + 0x6c]
call fcn.005128e4
lea ecx, [esp + 0x68]
mov byte [esp + 0x298], 4
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], 3
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 2
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x298], 1
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x298], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffc19
jmp 0x41851f