Function at 0x10004240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024173
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x10031008]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
call fcn.10004880
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 1
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push dword [ebp - 0x80]
push dword [0x100317a4]
push dword [0x100317a0]
call fcn.10007f90
push dword [ebp - 0x80]
lea ecx, [ebp - 0x34]
push dword [0x100317b0]
push dword [0x100317ac]
call fcn.10007f90
call fcn.1000c4b0
lea ecx, [ebp - 0x20]
push dword [ebp - 0x80]
test al, al
je 0x10004336
push dword [ebp - 0x30]
push dword [ebp - 0x34]
jmp 0x1000433c
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.10007f90
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x80], eax
cmp esi, eax
je 0x1000481f
add esi, 0x44
lea ecx, [esi - 0x44]
call fcn.100096d0
mov ebx, eax
test ebx, ebx
jle 0x1000486e
mov ecx, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
lea edx, [ecx + 2]
mov word [ebp - 0xa8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100043a1
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x88]
lea ecx, [ebp - 0xa8]
call fcn.10007130
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa8]
push eax
mov eax, ebx
lea ecx, [esi - 0x2c]
cdq
push edx
mov dword [ebp - 0x84], ecx
mov edx, ecx
push eax
lea ecx, [esi - 0x44]
call fcn.10010560
add esp, 0xc
test al, al
sete bl
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x10004431
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004427
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004868
push edx
push ecx
call fcn.1002251a
add esp, 8
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
test bl, bl
je 0x10004562
cmp dword [0x100317e0], eax
jne 0x10004462
xor ebx, ebx
jmp 0x10004487
push 0
mov ecx, 0x100317e0
call fcn.1001ed30
mov eax, dword [0x100317e0]
xor ebx, ebx
cmp byte [eax + 0x54], bl
je 0x10004487
cmp dword [eax + 0x58], 2
jb 0x10004487
cmp byte [eax + 0x5c], bl
setne bl
inc ebx
test ebx, ebx
je 0x10004562
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi - 0x18], 8
mov edx, dword [ebp - 0x84]
mov ecx, edx
jb 0x100044cb
mov ecx, dword [edx]
push eax
push ecx
lea eax, [ebp - 0x58]
push 0x10028a28
push eax
call fcn.1001ffc0
add esp, 0x10
lea eax, [ebp - 0x58]
mov ecx, 0x100317e0
push 0xf8
push 0x10028744
push 0x10028744
push eax
push 2
call fcn.1001fa50
cmp ebx, 1
jbe 0x10004510
lea eax, [ebp - 0x58]
mov ecx, 0x100317e0
push eax
call fcn.1001fdf0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x1000454e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004544
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004868
push edx
push ecx
call fcn.1002251a
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
mov dword [ebp - 0x8c], eax
jb 0x10004579
mov eax, dword [eax]
mov dword [ebp - 0x8c], eax
cmp dword [esi], 8
lea edi, [esi - 0x14]
mov ebx, edi
jb 0x10004585
mov ebx, dword [edi]
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x90], ecx
test eax, eax
je 0x100046bf
test ebx, ebx
je 0x100046bf
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100046bf
lea eax, [ebp - 0x74]
push eax
push 0xf003f
push 0
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000466d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xffffffff
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 4
push eax
push 0
push 0x100286d8
push dword [ebp - 0x74]
mov dword [ebp - 0x28], 4
call ebx
test eax, eax
jne 0x1000466d
mov eax, dword [ebp - 0x90]
cmp eax, 0xffffffff
jne 0x10004641
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10004646
cmp eax, 1
jmp 0x10004644
cmp dword [ebp - 0x14], eax
jne 0x1000466d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x100286f0
push dword [ebp - 0x74]
call ebx
mov ebx, dword [ebp - 0x7c]
test eax, eax
mov eax, 1
cmovne ebx, eax
jmp 0x10004670
mov ebx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x1000467e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x1000468c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x100046bf
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100046bf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000480d
mov eax, dword [esi]
mov ebx, edi
cmp eax, 8
jb 0x100046ca
mov ebx, dword [edi]
cmp dword [esi + 0x54], 8
lea ecx, [esi + 0x40]
jb 0x100046d5
mov ecx, dword [ecx]
mov edx, edi
cmp eax, 8
jb 0x100046e0
mov edx, dword [edi]
mov edi, edx
push ebx
push dword [esi + 0x68]
push dword [esi + 0x60]
push dword [esi + 0x5c]
push dword [esi + 0x58]
push ecx
push ecx
push dword [esi + 0x3c]
mov ecx, edi
push dword [esi + 0x34]
call fcn.10002020
add esp, 0x24
test eax, eax
jne 0x1000480d
cmp dword [0x100317e0], eax
jne 0x10004713
xor ebx, ebx
jmp 0x10004738
push 0
mov ecx, 0x100317e0
call fcn.1001ed30
mov eax, dword [0x100317e0]
xor ebx, ebx
cmp byte [eax + 0x54], bl
je 0x10004738
cmp dword [eax + 0x58], 2
jb 0x10004738
cmp byte [eax + 0x5c], bl
setne bl
inc ebx
test ebx, ebx
je 0x1000480d
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi - 0x18], 8
mov ecx, dword [ebp - 0x84]
jb 0x1000477a
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x70]
push 0x10028a4c
push eax
call fcn.1001ffc0
add esp, 0x10
lea eax, [ebp - 0x70]
mov ecx, 0x100317e0
push 0x10d
push 0x10028744
push 0x10028744
push eax
push 2
call fcn.1001fa50
cmp ebx, 1
jbe 0x100047bf
lea eax, [ebp - 0x70]
mov ecx, 0x100317e0
push eax
call fcn.1001fdf0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x100047f9
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100047ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004868
push edx
push ecx
call fcn.1002251a
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
add esi, 0xe4
lea eax, [esi - 0x44]
cmp eax, dword [ebp - 0x80]
jne 0x10004355
mov bl, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.10007040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10007040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10007040
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.100224d9
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xor bl, bl
jmp 0x10004821