Function at 0x1004a790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cb3dc
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1022c068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], 0
mov edx, dword [eax]
mov dword [ebp - 0x6c], ecx
test edx, edx
je 0x1004acdd
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
jb 0x1004a7fe
mov eax, dword [edi]
lea ecx, [ebp - 0x74]
push ecx
push 0
lea ecx, [ebp - 0x78]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004acf8
push ecx
push dword [ebp - 0x74]
lea ecx, [ebp - 0x68]
call fcn.10003b00
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x68]
test ecx, ecx
je 0x1004a885
cmp dword [edi + 0x14], 8
jb 0x1004a83f
mov edi, dword [edi]
lea eax, [ebp - 0x74]
push eax
push esi
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x70]
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1004a882
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.10049a50
push eax
mov edx, str.RegQueryValueExW_failed:
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10006160
add esp, 4
mov byte [ebp - 4], 5
jmp 0x1004ad1e
mov ecx, dword [ebp - 0x74]
mov edi, dword [ebp - 0x64]
mov edx, edi
sub edx, esi
mov byte [ebp - 0x59], 0
cmp ecx, edx
jae 0x1004a899
lea edi, [esi + ecx]
jmp 0x1004a8d4
jbe 0x1004a8d7
mov eax, dword [ebp - 0x60]
sub eax, esi
cmp ecx, eax
jbe 0x1004a8b9
push ecx
push ecx
lea ecx, [ebp - 0x68]
lfence
call fcn.1004ae70
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
jmp 0x1004a8d7
mov esi, edi
sub esi, edx
add esi, ecx
mov eax, esi
sub eax, edi
push eax
push 0
push edi
call fcn.10188460
mov edi, esi
add esp, 0xc
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x64], edi
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x60]
mov dword [eax], edx
mov edx, eax
lea eax, [edx + 0x10]
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
xor edx, edx
mov word [eax], dx
mov edx, dword [ebp - 0x6c]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
add edx, 0x34
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], 1
cmp eax, 0xb
ja case.default.0x1004a951
jmp dword [eax*4 + 0x1004ad3c]
mov edx, edi
sub edx, esi
mov eax, edx
and eax, 1
mov dword [ebp - 0x70], eax
je 0x1004a9b2
mov eax, edi
mov byte [ebp - 0x59], 0
sub eax, dword [ebp - 0x70]
sub eax, esi
cmp eax, edx
jae 0x1004a97a
lea edi, [eax + esi]
jmp 0x1004a9af
jbe 0x1004a9b2
sub ecx, esi
cmp eax, ecx
jbe 0x1004a997
push ecx
push eax
lea ecx, [ebp - 0x68]
lfence
call fcn.1004ae70
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
jmp 0x1004a9b2
sub eax, edx
add eax, edi
mov dword [ebp - 0x70], eax
sub eax, edi
push eax
push 0
push edi
call fcn.10188460
mov edi, dword [ebp - 0x70]
add esp, 0xc
mov dword [ebp - 0x64], edi
cmp esi, edi
je case.0x1004a951.0
mov eax, edi
sub eax, esi
lea ecx, [eax - 1]
cmp eax, ecx
jbe 0x1004ad35
cmp byte [ecx + esi], 0
jne 0x1004a9e6
lea ecx, [eax - 2]
cmp eax, ecx
jbe 0x1004ad35
cmp byte [ecx + esi], 0
jne 0x1004a9e6
sub edi, 2
mov dword [ebp - 0x64], edi
mov ecx, dword [ebp - 0x6c]
sub edi, esi
mov eax, edi
push 0
shr eax, 1
push eax
lea ecx, [ecx + 0x10]
call fcn.10003c90
mov eax, dword [ebp - 0x6c]
add eax, 0x10
cmp dword [eax + 0x14], 8
jb 0x1004aa08
mov eax, dword [eax]
push edi
push esi
push eax
call fcn.10187960
add esp, 0xc
jmp case.0x1004a951.0
mov eax, edi
sub eax, esi
mov edx, eax
mov dword [ebp - 0x7c], eax
and edx, 1
mov dword [ebp - 0x70], edx
je 0x1004aa76
mov edx, eax
mov byte [ebp - 0x59], 0
sub edx, dword [ebp - 0x70]
cmp edx, eax
jae 0x1004aa3b
lea edi, [edx + esi]
jmp 0x1004aa73
jbe 0x1004aa76
mov eax, ecx
sub eax, esi
cmp edx, eax
jbe 0x1004aa5a
push ecx
push edx
lea ecx, [ebp - 0x68]
lfence
call fcn.1004ae70
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
jmp 0x1004aa76
sub edx, dword [ebp - 0x7c]
add edx, edi
mov dword [ebp - 0x7c], edx
sub edx, edi
push edx
push 0
push edi
call fcn.10188460
mov edi, dword [ebp - 0x7c]
add esp, 0xc
mov dword [ebp - 0x64], edi
mov eax, dword [ebp - 0x60]
cmp esi, edi
je case.0x1004a951.0
mov byte [ebp - 0x59], 0
cmp eax, edi
je 0x1004aa92
mov byte [edi], 0
inc edi
mov dword [ebp - 0x64], edi
jmp 0x1004aaa8
lea eax, [ebp - 0x59]
push eax
push edi
lea ecx, [ebp - 0x68]
call fcn.1004ad70
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
mov byte [ebp - 0x59], 0
cmp eax, edi
je 0x1004aab9
mov byte [edi], 0
inc edi
mov dword [ebp - 0x64], edi
jmp 0x1004aacf
lea eax, [ebp - 0x59]
push eax
push edi
lea ecx, [ebp - 0x68]
call fcn.1004ad70
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
mov byte [ebp - 0x59], 0
cmp eax, edi
je 0x1004aae0
mov byte [edi], 0
inc edi
mov dword [ebp - 0x64], edi
jmp 0x1004aaf6
lea eax, [ebp - 0x59]
push eax
push edi
lea ecx, [ebp - 0x68]
call fcn.1004ad70
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
mov byte [ebp - 0x59], 0
cmp eax, edi
je 0x1004ab07
mov byte [edi], 0
inc edi
mov dword [ebp - 0x64], edi
jmp 0x1004ab17
lea eax, [ebp - 0x59]
push eax
push edi
lea ecx, [ebp - 0x68]
call fcn.1004ad70
mov esi, dword [ebp - 0x68]
cmp word [esi], 0
je case.0x1004a951.0
mov ecx, esi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004ab40
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10005040
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x6c]
add ecx, 0x28
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x1004ab96
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ecx + 4], 0x18
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x1004aba0
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.1000e870
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10004e60
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004abb1
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], ax
jne 0x1004ab21
jmp case.0x1004a951.0
lea eax, [ebp - 0x68]
cmp edx, eax
je case.0x1004a951.0
mov eax, dword [edx + 4]
mov dword [ebp - 0x64], eax
mov eax, dword [edx + 8]
mov dword [edx], esi
mov dword [ebp - 0x68], 0
mov dword [edx + 4], edi
mov dword [edx + 8], ecx
mov dword [ebp - 0x60], eax
jmp case.0x1004a951.0
sub edi, esi
cmp edi, 4
je 0x1004ac36
lea ecx, [ebp - 0x68]
call fcn.10003ad0
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.10001320
push eax
mov edx, str.Invalid_DWORD_size:
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.10006160
add esp, 4
mov byte [ebp - 4], 8
jmp 0x1004ad1e
cmp dword [ebp - 0x78], 5
mov ecx, dword [ebp - 0x6c]
mov eax, dword [esi]
mov dword [ecx + 4], eax
jne case.0x1004a951.0
bswap eax
mov dword [ecx + 4], eax
jmp case.0x1004a951.0
sub edi, esi
cmp edi, 8
je 0x1004ac82
lea ecx, [ebp - 0x68]
call fcn.10003ad0
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.10001320
push eax
mov edx, str.Invalid_DWORD_size:
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x40]
call fcn.10006160
add esp, 4
mov byte [ebp - 4], 0xa
jmp 0x1004ad1e
mov eax, dword [ebp - 0x6c]
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 0xc], ecx
lea ecx, [ebp - 0x68]
call fcn.10004e00
mov eax, dword [ebp - 0x6c]
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.10186332
mov esp, ebp
pop ebp
ret 8
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.1001f9d6
push eax
mov edx, str.Invalid_registry_value_type_:
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x40]
call fcn.10006160
add esp, 4
mov byte [ebp - 4], 0xc
jmp 0x1004ad1e
push str.key_is_NULL
lea ecx, [ebp - 0x68]
call fcn.100013a0
push 0x10229e9c
lea eax, [ebp - 0x68]
push eax
call fcn.101878e5
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.10049a50
push eax
mov edx, str.RegQueryValueExW_failed:
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10006160
add esp, 4
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001430
push 0x10229d38
lea eax, [ebp - 0x1c]
push eax
call fcn.101878e5
call fcn.1000ffa0
nop
nop
lodsb al, byte [esi]
add al, 0x10
pop eax
test eax, -1453846524
add al, 0x10
aam 0xab
add al, 16
jmp [ebx - 0x5400effc]