Function at 0x10041e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x100a140]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [ebp - 0x58], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInfoList]
cmp eax, 0xffffffff
mov dword [ebp - 0x4c], eax
jne 0x100424f
test byte [0x100a0bc], 4
je 0x1004ad5
cmp byte [0x100a0b9], 2
jb 0x1004ad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f70
push 0xc
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010050cb
jmp 0x1004ad5
mov eax, dword [esi + 0x30]
push 0x1c
pop ebx
lea ecx, [ebp - 0x3c]
push ecx
push edi
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInterfaceW]
test eax, eax
jne 0x10042a9
test byte [0x100a0bc], 4
je 0x1004acc
cmp byte [0x100a0b9], 2
jb 0x1004acc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f70
push 0xd
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010050cb
jmp 0x1004acc
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
cmp eax, edi
jne 0x10042f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10042f9
test byte [0x100a0bc], 4
je 0x1004acc
cmp byte [0x100a0b9], 2
jb 0x1004acc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f70
push 0xe
jmp 0x1004293
mov eax, dword [ebp - 0xc]
mov ebx, 0x20019
push ebx
push 1
push edi
mov dword [esi + 0x48], eax
push 1
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp eax, 0xffffffff
mov dword [ebp - 0x60], eax
jne 0x100434c
test byte [0x100a0bc], 4
je 0x1004acc
cmp byte [0x100a0b9], 2
jb 0x1004acc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f70
push 0xf
jmp 0x1004293
lea edi, [esi + 0x44]
push edi
push ebx
push 0
mov ebx, 0x10020a8
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10043a0
and dword [edi], 0
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 2
jb 0x1004ac3
push eax
push ebx
push 0x1001f70
push 0x10
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100280d
jmp 0x1004ac3
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
mov ebx, 0x1002090
push ebx
push dword [edi]
call fcn.010051ab
test eax, eax
mov dword [esi + 0x4c], eax
jne 0x10043f4
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 2
jb 0x1004ac3
push ebx
push 0x1001f70
push 0x11
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027d5
jmp 0x1004ac3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x40]
push ecx
lea eax, [esi + 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x100207c
push dword [edi]
mov dword [ebp - 0x40], 4
call ebx
test eax, eax
jne 0x1004428
cmp dword [ebp - 0x44], 4
jne 0x1004428
cmp dword [esi + 0x50], 2
jl 0x1004459
test byte [0x100a0bc], 4
je 0x1004452
cmp byte [0x100a0b9], 3
jb 0x1004452
push 0x1001f70
push 0x12
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027af
mov dword [esi + 0x50], 1
lea ecx, [ebp - 0x40]
push ecx
lea eax, [esi + 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x1002064
push dword [edi]
mov dword [ebp - 0x40], 4
call ebx
test eax, eax
jne 0x1004487
cmp dword [ebp - 0x44], 4
jne 0x1004487
cmp dword [esi + 0x54], 2
jl 0x10044b8
test byte [0x100a0bc], 4
je 0x10044b1
cmp byte [0x100a0b9], 3
jb 0x10044b1
push 0x1001f70
push 0x13
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027af
mov dword [esi + 0x54], 1
lea ecx, [ebp - 0x40]
push ecx
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x1002040
push dword [edi]
mov dword [ebp - 0x40], 4
call ebx
test eax, eax
jne 0x10044e6
cmp dword [ebp - 0x44], 4
jne 0x10044e6
cmp dword [esi + 0x58], 1
jl 0x1004514
test byte [0x100a0bc], 4
je 0x1004510
cmp byte [0x100a0b9], 3
jb 0x1004510
push 0x1001f70
push 0x14
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027af
and dword [esi + 0x58], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x100202c
push dword [edi]
mov dword [ebp - 0x40], 4
call ebx
test eax, eax
jne 0x100453c
cmp dword [ebp - 0x44], 4
je 0x100456d
test byte [0x100a0bc], 4
je 0x1004566
cmp byte [0x100a0b9], 3
jb 0x1004566
push 0x1001f70
push 0x15
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027af
mov dword [ebp - 0x54], 1
cmp dword [ebp - 0x54], 0
je 0x100457c
mov dword [esi + 0x5c], 1
jmp 0x1004580
and dword [esi + 0x5c], 0
lea ecx, [ebp - 0x40]
push ecx
lea eax, [esi + 0x7c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x1002018
push dword [edi]
mov dword [ebp - 0x40], 4
call ebx
test eax, eax
jne 0x10045a8
cmp dword [ebp - 0x44], 4
je 0x10045d6
test byte [0x100a0bc], 4
je 0x10045d2
cmp byte [0x100a0b9], 3
jb 0x10045d2
push 0x1001f70
push 0x16
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027af
and dword [esi + 0x7c], 0
cmp dword [esi + 0x7c], 0
mov ebx, 0x1001f70
jne 0x1004614
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 3
jb 0x1004ac3
push ebx
push 0x17
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027af
jmp 0x1004ac3
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x1001ff4
push dword [edi]
call fcn.010051ab
test eax, eax
mov dword [esi + 0x60], eax
jne 0x1004655
test byte [0x100a0bc], 4
je 0x1004655
cmp byte [0x100a0b9], 5
jb 0x1004655
push ebx
push 0x18
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027af
mov edi, dword [esi + 0x4c]
jmp 0x1004669
inc dword [esi + 0x64]
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
jne 0x100465a
cmp dword [esi + 0x64], 1
je 0x1004697
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 2
jb 0x1004ac3
push ebx
push 0x19
jmp 0x10045fe
push 4
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
mov dword [esi + 0x70], edi
jne 0x10046ca
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 3
jb 0x1004ac3
push ebx
push 0x1a
jmp 0x10045fe
mov ecx, dword [esi + 0x64]
shl ecx, 2
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esi + 0x4c]
xor ebx, ebx
cmp dword [esi + 0x64], ebx
jbe 0x1004756
cmp word [edi], 0
je 0x1004760
mov eax, dword [0x100a158]
push 0
mov dword [ebp - 0x64], edi
mov ecx, dword [eax + 0x4c]
push 1
lea eax, [ebp - 0x64]
push eax
call fcn.01003ea5
mov ecx, dword [esi + 0x70]
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x70]
cmp dword [eax + ebx*4], 0
je 0x100472b
push edi
inc ebx
call dword [sym.imp.msvcrt.dll_wcslen]
cmp ebx, dword [esi + 0x64]
pop ecx
lea edi, [edi + eax*2 + 2]
jb 0x10046ea
jmp 0x1004756
test byte [0x100a0bc], 4
je 0x1004756
cmp byte [0x100a0b9], 2
jb 0x1004756
push edi
push 0x1001f70
push 0x1b
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027d5
cmp word [edi], 0
jne 0x1004ac3
mov ecx, dword [esi + 0x64]
cmp ebx, ecx
jb 0x1004ac3
xor eax, eax
xor ebx, ebx
test ecx, ecx
jbe 0x10047a2
test eax, eax
mov ecx, dword [esi + 0x70]
mov ecx, dword [ecx + ebx*4]
mov edi, dword [ecx + 0x44]
jne 0x1004789
mov dword [esi + 0x68], 1
jmp 0x100479a
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x100479a
inc dword [esi + 0x68]
inc ebx
cmp ebx, dword [esi + 0x64]
mov eax, edi
jb 0x1004773
cmp dword [esi + 0x68], 0
jne 0x10047ce
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 2
jb 0x1004ac3
push 0x1001f70
push 0x1c
jmp 0x10045fe
test byte [0x100a0bc], 4
je 0x1004828
cmp byte [0x100a0b9], 5
jb 0x10047fb
push dword [esi + 0x64]
push 0x1001f70
push 0x1d
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010050cb
test byte [0x100a0bc], 4
je 0x1004828
cmp byte [0x100a0b9], 5
jb 0x1004828
push dword [esi + 0x68]
push 0x1001f70
push 0x1e
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010050cb
mov eax, dword [esi + 0x68]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
xor edx, edx
cmp edi, edx
pop ecx
mov dword [esi + 0x6c], edi
jne 0x1004869
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 3
jb 0x1004ac3
push 0x1001f70
push 0x1f
jmp 0x10045fe
mov eax, dword [esi + 0x68]
lea ecx, [eax + eax*2]
shl ecx, 3
mov ebx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [esi + 0x64], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x50], edx
jbe 0x10048dd
mov ebx, dword [ebp - 0x50]
mov eax, dword [esi + 0x70]
shl ebx, 2
cmp dword [ebp - 0x48], 0
mov eax, dword [eax + ebx]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x5c], eax
jne 0x1004922
xor edi, edi
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
lea eax, [edi + edi*2]
shl eax, 3
add ecx, ebx
mov dword [edx + eax + 0x14], ecx
mov ecx, dword [esi + 0x6c]
mov dword [ecx + eax + 4], 1
mov ecx, dword [esi + 0x6c]
mov dword [eax + ecx], esi
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], eax
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
cmp eax, dword [esi + 0x64]
jb 0x100488f
mov ecx, dword [esi + 0x64]
mov eax, dword [0x100a158]
cmp ecx, dword [eax + 0x7c]
jbe 0x1004948
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 2
jb 0x1004ac3
push ecx
push 0x1001f70
push 0x20
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010050cb
jmp 0x1004ac3
push dword [ebp - 0x5c]
push dword [ebp - 0x48]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x100493a
inc edi
jmp 0x10048a9
mov ecx, dword [esi + 0x6c]
lea eax, [edi + edi*2]
lea eax, [ecx + eax*8 + 4]
inc dword [eax]
jmp 0x10048d2
mov eax, dword [esi + 0x50]
xor edx, edx
inc edx
cmp eax, edx
je 0x1004976
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 2
jb 0x1004ac3
push eax
push 0x1001f70
push 0x21
jmp 0x100490c
mov eax, dword [esi + 0x54]
cmp eax, 2
jl 0x10049a5
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 2
jb 0x1004ac3
push eax
push 0x1001f70
push 0x22
jmp 0x100490c
mov eax, dword [esi + 0x58]
test eax, eax
je 0x10049d3
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 2
jb 0x1004ac3
push eax
push 0x1001f70
push 0x23
jmp 0x100490c
mov eax, dword [esi + 0x5c]
cmp eax, edx
je 0x1004a01
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 2
jb 0x1004ac3
push eax
push 0x1001f70
push 0x24
jmp 0x100490c
xor ebx, ebx
test ecx, ecx
jbe 0x1004a3b
mov dword [ebp - 0x48], edx
mov edi, dword [ebp - 0x48]
jmp 0x1004a2d
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x40]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 0x40]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1004a8e
inc edi
cmp edi, dword [esi + 0x64]
jb 0x1004a0f
inc ebx
inc dword [ebp - 0x48]
cmp ebx, dword [esi + 0x64]
jb 0x1004a0a
mov esi, dword [esi + 0x60]
xor edi, edi
cmp word [esi], di
je 0x1004a62
push esi
inc edi
call fcn.010056b1
test eax, eax
je 0x1004ab8
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x1004a45
mov eax, dword [0x100a158]
cmp edi, dword [eax + 0x80]
jbe 0x1004abc
test byte [0x100a0bc], 4
je 0x1004ac3
cmp byte [0x100a0b9], 2
jb 0x1004ac3
push edi
push 0x1001f70
push 0x26
jmp 0x100490c
test byte [0x100a0bc], 4
je 0x1004ab8
cmp byte [0x100a0b9], 2
jb 0x1004ab8
push 0x1001f70
push 0x25
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027af
xor eax, eax
jmp 0x1004ad8
mov dword [ebp - 0x58], 1
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x4c]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007b5b
leave
ret