Function at 0x1003d9f
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 0x1003e07
test byte [0x100a0bc], 4
je 0x100468d
cmp byte [0x100a0b9], 2
jb 0x100468d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f90
push 0xc
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100528f
jmp 0x100468d
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 0x1003e61
test byte [0x100a0bc], 4
je 0x1004684
cmp byte [0x100a0b9], 2
jb 0x1004684
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f90
push 0xd
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100528f
jmp 0x1004684
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 0x1003eb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1003eb1
test byte [0x100a0bc], 4
je 0x1004684
cmp byte [0x100a0b9], 2
jb 0x1004684
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f90
push 0xe
jmp 0x1003e4b
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 0x1003f04
test byte [0x100a0bc], 4
je 0x1004684
cmp byte [0x100a0b9], 2
jb 0x1004684
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f90
push 0xf
jmp 0x1003e4b
lea edi, [esi + 0x44]
push edi
push ebx
push 0
mov ebx, 0x1002088
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1003f58
and dword [edi], 0
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 2
jb 0x100467b
push eax
push ebx
push 0x1001f90
push 0x10
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.01002932
jmp 0x100467b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
mov ebx, 0x1002070
push ebx
push dword [edi]
call fcn.01005352
test eax, eax
mov dword [esi + 0x4c], eax
jne 0x1003fac
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 2
jb 0x100467b
push ebx
push 0x1001f90
push 0x11
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028e7
jmp 0x100467b
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 0x100205c
push dword [edi]
mov dword [ebp - 0x40], 4
call ebx
test eax, eax
jne 0x1003fe0
cmp dword [ebp - 0x44], 4
jne 0x1003fe0
cmp dword [esi + 0x50], 2
jl 0x1004011
test byte [0x100a0bc], 4
je 0x100400a
cmp byte [0x100a0b9], 3
jb 0x100400a
push 0x1001f90
push 0x12
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028c1
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 0x1002044
push dword [edi]
mov dword [ebp - 0x40], 4
call ebx
test eax, eax
jne 0x100403f
cmp dword [ebp - 0x44], 4
jne 0x100403f
cmp dword [esi + 0x54], 2
jl 0x1004070
test byte [0x100a0bc], 4
je 0x1004069
cmp byte [0x100a0b9], 3
jb 0x1004069
push 0x1001f90
push 0x13
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028c1
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 0x1002020
push dword [edi]
mov dword [ebp - 0x40], 4
call ebx
test eax, eax
jne 0x100409e
cmp dword [ebp - 0x44], 4
jne 0x100409e
cmp dword [esi + 0x58], 1
jl 0x10040cc
test byte [0x100a0bc], 4
je 0x10040c8
cmp byte [0x100a0b9], 3
jb 0x10040c8
push 0x1001f90
push 0x14
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028c1
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 0x100200c
push dword [edi]
mov dword [ebp - 0x40], 4
call ebx
test eax, eax
jne 0x10040f4
cmp dword [ebp - 0x44], 4
je 0x1004125
test byte [0x100a0bc], 4
je 0x100411e
cmp byte [0x100a0b9], 3
jb 0x100411e
push 0x1001f90
push 0x15
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028c1
mov dword [ebp - 0x54], 1
cmp dword [ebp - 0x54], 0
je 0x1004134
mov dword [esi + 0x5c], 1
jmp 0x1004138
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 0x1001ff8
push dword [edi]
mov dword [ebp - 0x40], 4
call ebx
test eax, eax
jne 0x1004160
cmp dword [ebp - 0x44], 4
je 0x100418e
test byte [0x100a0bc], 4
je 0x100418a
cmp byte [0x100a0b9], 3
jb 0x100418a
push 0x1001f90
push 0x16
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028c1
and dword [esi + 0x7c], 0
cmp dword [esi + 0x7c], 0
mov ebx, 0x1001f90
jne 0x10041cc
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 3
jb 0x100467b
push ebx
push 0x17
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028c1
jmp 0x100467b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x1001fd4
push dword [edi]
call fcn.01005352
test eax, eax
mov dword [esi + 0x60], eax
jne 0x100420d
test byte [0x100a0bc], 4
je 0x100420d
cmp byte [0x100a0b9], 5
jb 0x100420d
push ebx
push 0x18
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028c1
mov edi, dword [esi + 0x4c]
jmp 0x1004221
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 0x1004212
cmp dword [esi + 0x64], 1
je 0x100424f
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 2
jb 0x100467b
push ebx
push 0x19
jmp 0x10041b6
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 0x1004282
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 3
jb 0x100467b
push ebx
push 0x1a
jmp 0x10041b6
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 0x100430e
cmp word [edi], 0
je 0x1004318
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.01003b2f
mov ecx, dword [esi + 0x70]
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x70]
cmp dword [eax + ebx*4], 0
je 0x10042e3
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 0x10042a2
jmp 0x100430e
test byte [0x100a0bc], 4
je 0x100430e
cmp byte [0x100a0b9], 2
jb 0x100430e
push edi
push 0x1001f90
push 0x1b
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028e7
cmp word [edi], 0
jne 0x100467b
mov ecx, dword [esi + 0x64]
cmp ebx, ecx
jb 0x100467b
xor eax, eax
xor ebx, ebx
test ecx, ecx
jbe 0x100435a
test eax, eax
mov ecx, dword [esi + 0x70]
mov ecx, dword [ecx + ebx*4]
mov edi, dword [ecx + 0x44]
jne 0x1004341
mov dword [esi + 0x68], 1
jmp 0x1004352
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1004352
inc dword [esi + 0x68]
inc ebx
cmp ebx, dword [esi + 0x64]
mov eax, edi
jb 0x100432b
cmp dword [esi + 0x68], 0
jne 0x1004386
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 2
jb 0x100467b
push 0x1001f90
push 0x1c
jmp 0x10041b6
test byte [0x100a0bc], 4
je 0x10043e0
cmp byte [0x100a0b9], 5
jb 0x10043b3
push dword [esi + 0x64]
push 0x1001f90
push 0x1d
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100528f
test byte [0x100a0bc], 4
je 0x10043e0
cmp byte [0x100a0b9], 5
jb 0x10043e0
push dword [esi + 0x68]
push 0x1001f90
push 0x1e
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100528f
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 0x1004421
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 3
jb 0x100467b
push 0x1001f90
push 0x1f
jmp 0x10041b6
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 0x1004495
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 0x10044da
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 0x1004447
mov ecx, dword [esi + 0x64]
mov eax, dword [0x100a158]
cmp ecx, dword [eax + 0x7c]
jbe 0x1004500
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 2
jb 0x100467b
push ecx
push 0x1001f90
push 0x20
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100528f
jmp 0x100467b
push dword [ebp - 0x5c]
push dword [ebp - 0x48]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10044f2
inc edi
jmp 0x1004461
mov ecx, dword [esi + 0x6c]
lea eax, [edi + edi*2]
lea eax, [ecx + eax*8 + 4]
inc dword [eax]
jmp 0x100448a
mov eax, dword [esi + 0x50]
xor edx, edx
inc edx
cmp eax, edx
je 0x100452e
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 2
jb 0x100467b
push eax
push 0x1001f90
push 0x21
jmp 0x10044c4
mov eax, dword [esi + 0x54]
cmp eax, 2
jl 0x100455d
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 2
jb 0x100467b
push eax
push 0x1001f90
push 0x22
jmp 0x10044c4
mov eax, dword [esi + 0x58]
test eax, eax
je 0x100458b
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 2
jb 0x100467b
push eax
push 0x1001f90
push 0x23
jmp 0x10044c4
mov eax, dword [esi + 0x5c]
cmp eax, edx
je 0x10045b9
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 2
jb 0x100467b
push eax
push 0x1001f90
push 0x24
jmp 0x10044c4
xor ebx, ebx
test ecx, ecx
jbe 0x10045f3
mov dword [ebp - 0x48], edx
mov edi, dword [ebp - 0x48]
jmp 0x10045e5
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 0x1004646
inc edi
cmp edi, dword [esi + 0x64]
jb 0x10045c7
inc ebx
inc dword [ebp - 0x48]
cmp ebx, dword [esi + 0x64]
jb 0x10045c2
mov esi, dword [esi + 0x60]
xor edi, edi
cmp word [esi], di
je 0x100461a
push esi
inc edi
call fcn.01005875
test eax, eax
je 0x1004670
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x10045fd
mov eax, dword [0x100a158]
cmp edi, dword [eax + 0x80]
jbe 0x1004674
test byte [0x100a0bc], 4
je 0x100467b
cmp byte [0x100a0b9], 2
jb 0x100467b
push edi
push 0x1001f90
push 0x26
jmp 0x10044c4
test byte [0x100a0bc], 4
je 0x1004670
cmp byte [0x100a0b9], 2
jb 0x1004670
push 0x1001f90
push 0x25
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028c1
xor eax, eax
jmp 0x1004690
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.01007d97
leave
ret