Function at 0x419630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0c86
mov eax, dword fs:[0]
push eax
mov eax, 0x39d0
call fcn.004b17e0
mov eax, dword [0x539c80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x39dc], ecx
mov dword [ebp - 4], 0
mov eax, dword [0x5396d8]
xor ebx, ebx
cmp byte [0x53ed94], bl
mov ecx, 0x5396d8
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x39d8], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x39c8], 0
mov dword [ebp - 0x39c4], 0
mov dword [ebp - 0x39c0], 0
mov byte [ebp - 4], 5
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x39b4], eax
mov byte [ebp - 4], 6
mov eax, 0x516fd0
test eax, 0xffff0000
jne 0x4196ff
movzx esi, ax
mov ecx, esi
call fcn.00401b90
test eax, eax
je 0x41970f
push esi
push eax
lea ecx, [ebp - 0x39b4]
call fcn.00402860
jmp 0x41970f
push 0x516fd0
lea ecx, [ebp - 0x39b4]
call fcn.00403570
mov byte [ebp - 4], 7
lea eax, [ebp - 0x39b4]
push eax
lea edx, [ebp - 0x39d8]
lea ecx, [ebp - 0x39d0]
call fcn.0040f0c0
mov byte [ebp - 4], 8
push 0x53f000
mov edx, eax
lea ecx, [ebp - 0x39cc]
call fcn.0040f0c0
mov byte [ebp - 4], 9
push 0x516fcc
mov edx, eax
lea ecx, [ebp - 0x39b8]
call fcn.00417c70
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x39bc]
call fcn.0040f0c0
add esp, 0x10
mov byte [ebp - 4], 0xb
push 1
push dword [eax]
lea ecx, [ebp - 0x39c8]
push ebx
call fcn.00418a70
test eax, eax
setne bl
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x39bc]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4197ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x39b8]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4197d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x39cc]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4197f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x39d0]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419817
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x39b4]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41983a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4198db
mov eax, dword [0x53ed90]
imul eax, eax
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 7
jne 0x4198c8
xor eax, eax
push 0x2d1e
push eax
mov word [ebp - 0x3530], ax
lea eax, [ebp - 0x352e]
push eax
call fcn.004b1a50
add esp, 0xc
xor edi, edi
xor esi, esi
lea esp, [esp]
xor edx, edx
test edi, edi
je 0x4198aa
test edx, edx
je 0x4198aa
lea eax, [esi + edx]
lea ecx, [ebp - 0x3530]
lea ecx, [ecx + eax*2]
lea eax, [esi + edx]
mov ax, word [ebp + eax*2 - 0x35c8]
inc ax
add ax, word [ecx - 2]
mov word [ecx], ax
inc edx
cmp edx, 0x4c
jl 0x419882
add esi, 0x4c
inc edi
cmp esi, 0x1690
jl 0x419880
movsx eax, word [ebp - 0x812]
mov dword [0x53ed90], eax
mov eax, dword [ebp - 0x39c8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x419b69
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x39d4], 0x400
call fcn.004b1a50
add esp, 0xc
xor edi, edi
lea ebx, [edi + 0x11]
jmp 0x419910
mov edx, dword [0x53ed90]
lea eax, [edx + 2]
lea ecx, [edx + 1]
imul eax, ecx
imul eax, edx
cdq
idiv ebx
cmp edx, 3
jne 0x419932
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov esi, dword [ebp - 0x39c8]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x39d4]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
inc edi
mov dword [ebp - 0x39d0], ebx
mov dword [ebp - 0x39cc], edi
test ebx, ebx
je 0x419975
cmp ebx, 0x103
jne 0x419b2d
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x39b4], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x810]
test eax, 0xffff0000
jne 0x4199b9
movzx esi, ax
mov ecx, esi
call fcn.00401b90
test eax, eax
je 0x4199e4
push esi
push eax
lea ecx, [ebp - 0x39b4]
call fcn.00402860
jmp 0x4199e4
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4199c2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x39b4]
call fcn.004025f0
mov byte [ebp - 4], 0x12
mov esi, dword [0x53ed90]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0xb
idiv ecx
cmp edx, 4
jne 0x419a1e
push 0x51
push 0x50
push 0x516fdc
call fcn.004acf3c
mov esi, dword [0x53ed90]
add esp, 0xc
mov eax, dword [ebp - 0x39b4]
cmp dword [eax - 0xc], 0
je 0x419a42
mov ecx, dword [ebp - 0x39dc]
lea eax, [ebp - 0x39b4]
push eax
call fcn.0041a200
mov esi, dword [0x53ed90]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 0x39d4], 0x400
call fcn.004b1a50
mov eax, esi
imul eax, esi
cdq
mov ecx, 0x13
idiv ecx
add esp, 0xc
cmp edx, 2
jne 0x419b03
xor ebx, ebx
lea eax, [ebp - 0x39b0]
xor ecx, ecx
mov dword [ebp - 0x39bc], ecx
mov dword [ebp - 0x39b8], eax
mov edi, edi
lea edi, [ecx + 1]
mov eax, esi
cdq
lea ecx, [ebx + 1]
idiv ecx
mov eax, esi
sub eax, ebx
mov ecx, edx
imul ecx, eax
mov eax, esi
cdq
idiv edi
mov esi, dword [ebp - 0x39b8]
add ecx, eax
sub ecx, dword [ebp - 0x39bc]
push ecx
push 0x516fe4
call fcn.004acf3c
mov ecx, edi
add esi, 4
add esp, 8
mov dword [ebp - 0x39bc], ecx
mov dword [ebp - 0x39b8], esi
cmp ecx, 0x18
jge 0x419ae3
mov esi, dword [0x53ed90]
jmp 0x419a90
inc ebx
cmp ebx, 0xc
jge 0x419af7
mov esi, dword [0x53ed90]
mov eax, dword [ebp - 0x39b8]
jmp 0x419a80
mov ebx, dword [ebp - 0x39d0]
mov edi, dword [ebp - 0x39cc]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x39b4]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419b27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x39c8]
test ebx, ebx
mov ebx, 0x11
je 0x419910
test esi, esi
je 0x419b51
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
xor eax, eax
mov dword [ebp - 0x39c8], eax
jmp 0x419b5d
mov eax, dword [ebp - 0x39c8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x39c4], 0
mov bl, 1
mov byte [ebp - 4], 2
test eax, eax
je 0x419b7e
push eax
call esi
mov dword [ebp - 0x39c8], 0
mov dword [ebp - 0x39c4], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x39d8]
add edx, 0xfffffff0
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419bae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x419bcf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac57a
mov esp, ebp
pop ebp
ret