Function at 0x4129e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9e49
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 0x412d79
push 0xa
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.004ac837
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 0x412d6d
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 0x412ae0
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.00416160
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 0x4f4818
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.00416520
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp - 0x61c]
cmp edx, 8
jb 0x412bc3
mov ecx, dword [ebp - 0x630]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412bb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d96
push edx
push ecx
call fcn.0047ce0f
add esp, 8
mov edx, dword [ebp - 0x65c]
xor edi, edi
xor ecx, ecx
mov eax, dword [edx]
nop
cmp edx, eax
je 0x412be8
test ecx, ecx
je 0x412bdd
cmp ecx, 2
jne 0x412be0
lea edi, [eax + 8]
mov eax, dword [eax]
inc ecx
cmp ecx, 3
jl 0x412bd0
test edi, edi
je 0x412d16
push 0
push 0
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0
call fcn.00416160
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 0x4f6e9c
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.00416520
mov byte [ebp - 4], 4
add esp, 8
mov edx, dword [ebp - 0x61c]
cmp edx, 8
jb 0x412ca6
mov ecx, dword [ebp - 0x630]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d9b
push edx
push ecx
call fcn.0047ce0f
add esp, 8
cmp dword [ebp - 0x650], 0
je 0x412cfb
mov eax, dword [ebp - 0x654]
mov eax, dword [eax]
add eax, 8
cmp esi, eax
je 0x412cd3
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x412cc8
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00410170
mov ecx, esi
call fcn.00411fe0
mov eax, dword [esi + 0x10]
mov ecx, esi
cmp eax, 0x10
jbe 0x412cf1
add eax, 0xfffffff0
push eax
push 0x10
call fcn.00415c30
jmp 0x412cfb
mov edx, 0x10
call fcn.00411f10
lea ecx, [ebp - 0x654]
call fcn.00415ec0
push 0x20
push dword [ebp - 0x654]
call fcn.0047ce0f
add esp, 8
lea ecx, [ebp - 0x65c]
call fcn.00415ec0
push 0x20
push dword [ebp - 0x65c]
call fcn.0047ce0f
mov edx, dword [ebp - 0x634]
add esp, 8
cmp edx, 8
jb 0x412d6d
mov ecx, dword [ebp - 0x648]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412d63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412da0
push edx
push ecx
call fcn.0047ce0f
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.0047ce22
mov esp, ebp
pop ebp
ret
call fcn.004895af
call fcn.004895af
call fcn.004895af
int3