Function at 0x419810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x540c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 1
mov eax, dword [0x5406d8]
xor ebx, ebx
cmp byte [0x545d94], bl
mov ecx, 0x5406d8
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 6
mov eax, dword [0x5406d8]
mov ecx, 0x5406d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
mov eax, 0x51d41c
test eax, 0xffff0000
jne 0x4198c0
movzx esi, ax
mov ecx, esi
call fcn.00401b90
test eax, eax
je 0x4198cd
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00402a00
jmp 0x4198cd
push 0x51d41c
lea ecx, [ebp - 0x14]
call fcn.00403700
mov byte [ebp - 4], 8
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040f160
mov byte [ebp - 4], 9
push 0x546034
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0040f160
mov byte [ebp - 4], 0xa
push 0x51d418
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00418660
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0040f160
add esp, 0x10
mov byte [ebp - 4], 0xc
push 0x20019
push dword [eax]
lea ecx, [ebp - 0x3c]
push ebx
call fcn.00419460
test eax, eax
setne bl
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x419957
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419977
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419997
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4199b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4199d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x3c]
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x419a48
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
push esi
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419a35
cmp dword [ebp - 0x28], 4
jne 0x419a35
test esi, esi
je 0x419a20
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], 0
mov dword [ecx], eax
mov byte [ebp - 0xd], 1
jmp 0x419a4c
test esi, esi
je 0x419a41
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 3
test esi, esi
je 0x419a5e
push esi
call ebx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419a85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419aa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x419ac6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret