Function at 0x412810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9d99
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x668], esi
xor eax, eax
mov dword [ebp - 0x664], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x64c]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesDiskEnum
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x664], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412ba2
push 0xa
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.004ac7d7
add esp, 0xc
mov dword [ebp - 0x660], 0x400
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x618]
push eax
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x64c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412b96
lea ecx, [ebp - 0x618]
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x634], 7
lea edx, [ecx + 2]
mov word [ebp - 0x648], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412910
sub ecx, edx
lea eax, [ebp - 0x618]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x648]
call fcn.00410170
push 0
mov dword [ebp - 4], 1
push 0
mov dword [ebp - 0x65c], 0
mov dword [ebp - 0x658], 0
call fcn.00415d10
mov dword [ebp - 0x65c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x630]
push 1
xor eax, eax
mov dword [ebp - 0x620], 0
push 0x4f48e8
mov dword [ebp - 0x61c], 7
mov word [ebp - 0x630], ax
call fcn.00410170
lea eax, [ebp - 0x65c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x648]
call fcn.004160d0
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp - 0x61c]
cmp edx, 8
jb 0x4129f3
mov ecx, dword [ebp - 0x630]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4129e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412bbf
push edx
push ecx
call fcn.0047cdbf
add esp, 8
mov edx, dword [ebp - 0x65c]
xor edi, edi
xor ecx, ecx
mov eax, dword [edx]
nop
cmp edx, eax
je 0x412a18
test ecx, ecx
je 0x412a0d
cmp ecx, 2
jne 0x412a10
lea edi, [eax + 8]
mov eax, dword [eax]
inc ecx
cmp ecx, 3
jl 0x412a00
test edi, edi
je 0x412b3f
push 0
push 0
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0
call fcn.00415d10
mov dword [ebp - 0x654], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x630]
push 1
xor eax, eax
mov dword [ebp - 0x620], 0
push 0x4f6f6c
mov dword [ebp - 0x61c], 7
mov word [ebp - 0x630], ax
call fcn.00410170
lea eax, [ebp - 0x654]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x630]
mov ecx, edi
push eax
call fcn.004160d0
mov byte [ebp - 4], 4
add esp, 8
mov edx, dword [ebp - 0x61c]
cmp edx, 8
jb 0x412ad6
mov ecx, dword [ebp - 0x630]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412acc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412bc4
push edx
push ecx
call fcn.0047cdbf
add esp, 8
cmp dword [ebp - 0x650], 0
je 0x412b24
mov eax, dword [ebp - 0x654]
mov eax, dword [eax]
add eax, 8
cmp esi, eax
je 0x412b03
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x412af8
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00410170
mov eax, dword [esi + 0x10]
mov ecx, esi
cmp eax, 0x10
jbe 0x412b1a
add eax, 0xfffffff0
push eax
push 0x10
call fcn.004157e0
jmp 0x412b24
mov edx, 0x10
call fcn.00411f00
lea ecx, [ebp - 0x654]
call fcn.00415a70
push 0x20
push dword [ebp - 0x654]
call fcn.0047cdbf
add esp, 8
lea ecx, [ebp - 0x65c]
call fcn.00415a70
push 0x20
push dword [ebp - 0x65c]
call fcn.0047cdbf
mov edx, dword [ebp - 0x634]
add esp, 8
cmp edx, 8
jb 0x412b96
mov ecx, dword [ebp - 0x648]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412b8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412bc9
push edx
push ecx
call fcn.0047cdbf
add esp, 8
push dword [ebp - 0x64c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cdd2
mov esp, ebp
pop ebp
ret
call fcn.0048954f
call fcn.0048954f
call fcn.0048954f
int3