Function at 0x403f20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fb17
mov eax, dword fs:[0]
push eax
sub esp, 0xeb4
mov eax, dword [0x55c380]
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, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xe64], eax
mov eax, dword [ebp + 0x14]
push 0x208
push 0
mov dword [ebp - 0xe68], esi
mov ecx, dword [eax]
mov edi, dword [eax + 4]
lea eax, [ebp - 0x524]
push eax
mov dword [ebp - 0xe88], ecx
mov dword [ebp - 0xe6c], edi
mov dword [ebp - 0xb4c], 0
mov dword [ebp - 0xb40], 0
call fcn.004f8b70
add esp, 0xc
mov dword [ebp - 0xb9c], 7
xor eax, eax
mov dword [ebp - 0xba0], 0
lea ecx, [ebp - 0xbb0]
mov word [ebp - 0xbb0], ax
push 0x27
push str.SYSTEMCurrentControlSetControlClass_
call fcn.00402810
lea eax, [ebp - 0xb40]
mov dword [ebp - 4], 0
push eax
push 0x104
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0xb4c]
push eax
push 9
push dword [ebp - 0xe64]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
cmp word [ebp - 0x524], 0
jne 0x40400a
xor ecx, ecx
jmp 0x404022
lea ecx, [ebp - 0x524]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404013
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x524]
push eax
lea ecx, [ebp - 0xbb0]
call fcn.00402a30
mov dword [ebp - 0xb84], 0xf
mov dword [ebp - 0xb88], 0
mov byte [ebp - 0xb98], 0
lea eax, [ebp - 0xb40]
mov byte [ebp - 4], 1
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xb4c]
push eax
push 1
push dword [ebp - 0xe64]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x404b79
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404090
sub ecx, edx
lea eax, [ecx + 2]
cmp eax, dword [ebp - 0xb40]
jae 0x4040cd
lea edx, [ebp - 0x113]
add edx, ecx
cmp byte [edx], 0
jne 0x4040b7
xor ecx, ecx
push ecx
push edx
jmp 0x4040e0
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4040c0
sub ecx, esi
push ecx
push edx
jmp 0x4040e0
xor eax, eax
cmp byte [ebp - 0x114], al
cmove ecx, eax
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0xb98]
call fcn.00402c30
push 0x208
lea eax, [ebp - 0x72c]
mov dword [ebp - 0xbfc], 0x104
push 0
push eax
mov dword [ebp - 0xc00], 1
call fcn.004f8b70
add esp, 0xc
lea ecx, [ebp - 0xbfc]
cmp dword [ebp - 0xb9c], 8
lea eax, [ebp - 0xbb0]
cmovae eax, dword [ebp - 0xbb0]
push ecx
lea ecx, [ebp - 0x72c]
push ecx
lea ecx, [ebp - 0xc00]
push ecx
push str.NetCfgInstanceId
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4041a9
lea edx, [ebp - 0xbb0]
lea ecx, [ebp - 0xc3c]
call fcn.00401820
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 0x10
jb 0x404172
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._SetDevProperties__strSubKey___s__error___p
call fcn.00403cd0
mov byte [ebp - 4], 1
add esp, 0xc
mov eax, dword [ebp - 0xc28]
cmp eax, 0x10
jb 0x4041a9
inc eax
lea ecx, [ebp - 0xc3c]
push eax
push dword [ebp - 0xc3c]
call fcn.00402f20
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x404b79
xor eax, eax
mov dword [ebp - 0xbcc], 7
mov dword [ebp - 0xbd0], 0
mov word [ebp - 0xbe0], ax
cmp word [ebp - 0x72c], ax
jne 0x4041de
xor ecx, ecx
jmp 0x4041f6
lea ecx, [ebp - 0x72c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4041e7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x72c]
push eax
lea ecx, [ebp - 0xbe0]
call fcn.00402810
lea edx, [ebp - 0xbe0]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb68]
call fcn.00401820
push eax
mov ecx, esi
call fcn.00404dd0
mov ecx, dword [ebp - 0xb54]
mov edi, eax
cmp ecx, 0x10
jb 0x404246
inc ecx
push ecx
push dword [ebp - 0xb68]
lea ecx, [ebp - 0xb68]
call fcn.00402f20
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xbcc]
mov dword [ebp - 0xb54], 0xf
mov dword [ebp - 0xb58], 0
mov byte [ebp - 0xb68], 0
cmp eax, 8
jb 0x404283
inc eax
lea ecx, [ebp - 0xbe0]
push eax
push dword [ebp - 0xbe0]
call fcn.00403020
test edi, edi
je 0x40429e
mov eax, dword [ebp - 0xe6c]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x4041b4
jmp 0x404b79
push 0x208
lea eax, [ebp - 0x31c]
mov dword [ebp - 0xc04], 0x104
push 0
push eax
mov dword [ebp - 0xc08], 1
call fcn.004f8b70
add esp, 0xc
lea ecx, [ebp - 0xc04]
cmp dword [ebp - 0xb9c], 8
lea eax, [ebp - 0xbb0]
cmovae eax, dword [ebp - 0xbb0]
push ecx
lea ecx, [ebp - 0x31c]
push ecx
lea ecx, [ebp - 0xc08]
push ecx
push str.DriverVersion
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
mov dword [ebp - 0xe8c], 7
mov dword [ebp - 0xe90], 0
mov word [ebp - 0xea0], ax
cmp word [ebp - 0x31c], ax
jne 0x40432c
xor ecx, ecx
jmp 0x404344
lea ecx, [ebp - 0x31c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404335
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0xea0]
call fcn.00402810
lea edx, [ebp - 0xea0]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xeb8]
call fcn.00401820
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb98]
call fcn.00406040
mov ecx, dword [ebp - 0xea4]
mov dword [ebp - 0xe6c], eax
cmp ecx, 0x10
jb 0x4043a1
inc ecx
push ecx
push dword [ebp - 0xeb8]
lea ecx, [ebp - 0xeb8]
call fcn.00402f20
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xe8c]
mov dword [ebp - 0xea4], 0xf
mov dword [ebp - 0xea8], 0
mov byte [ebp - 0xeb8], 0
cmp eax, 8
jb 0x4043de
inc eax
lea ecx, [ebp - 0xea0]
push eax
push dword [ebp - 0xea0]
call fcn.00403020
xor eax, eax
mov dword [ebp - 0xe8c], 7
mov dword [ebp - 0xe90], 0
mov word [ebp - 0xea0], ax
mov dword [ebp - 0xb6c], 7
mov dword [ebp - 0xb70], eax
mov word [ebp - 0xb80], ax
cmp word [ebp - 0x31c], ax
jne 0x40441f
xor ecx, ecx
jmp 0x40443f
lea ecx, [ebp - 0x31c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404430
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0xb80]
call fcn.00402810
lea edx, [ebp - 0xb80]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc3c]
call fcn.00401820
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xb6c]
cmp eax, 8
jb 0x404489
inc eax
lea ecx, [ebp - 0xb80]
push eax
push dword [ebp - 0xb80]
call fcn.00403020
xor eax, eax
mov dword [ebp - 0xb6c], 7
push 0x208
push eax
mov word [ebp - 0xb80], ax
lea eax, [ebp - 0xb3c]
push eax
mov dword [ebp - 0xb70], 0
call fcn.004f8b70
add esp, 0xc
lea eax, [ebp - 0xb40]
push eax
push 0x104
lea eax, [ebp - 0xb3c]
push eax
lea eax, [ebp - 0xb4c]
push eax
push 9
push dword [ebp - 0xe64]
push dword [ebp - 0xe68]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
xor eax, eax
mov dword [ebp - 0xbe4], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0xbf8], ax
lea ecx, [ebp - 0xbf8]
lea eax, [ebp - 0xbb0]
mov dword [ebp - 0xbe8], 0
push eax
call fcn.00402910
push str.NDIparams
lea edx, [ebp - 0xbf8]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc24]
call fcn.00403810
push 0x210
lea eax, [ebp - 0xe60]
push 0
push eax
call fcn.004f8b70
add esp, 0x10
lea eax, [ebp - 0xc24]
cmp dword [ebp - 0xc10], 8
cmovae eax, dword [ebp - 0xc24]
push eax
push ecx
lea ecx, [ebp - 0xe60]
call fcn.00406b90
mov byte [ebp - 4], 0xb
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xe60], 0
je 0x40458f
cmp dword [ebp - 0xe5c], 0
jl 0x40458f
mov eax, 1
jmp 0x404591
xor eax, eax
test al, al
je 0x4049de
xor eax, eax
mov dword [ebp - 0xbb4], 7
mov dword [ebp - 0xbb8], 0
mov word [ebp - 0xbc8], ax
push 0x5442c0
lea edx, [ebp - 0xc24]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xe84]
call fcn.00403810
lea ecx, [ebp - 0xe58]
mov byte [ebp - 4], 0xd
push ecx
mov edx, eax
lea ecx, [ebp - 0xb68]
call fcn.00403920
add esp, 8
mov esi, eax
lea eax, [ebp - 0xbc8]
cmp eax, esi
je 0x40463e
mov eax, dword [ebp - 0xbb4]
cmp eax, 8
jb 0x404615
inc eax
lea ecx, [ebp - 0xbc8]
push eax
push dword [ebp - 0xbc8]
call fcn.00403020
xor eax, eax
mov dword [ebp - 0xbb4], 7
push esi
lea ecx, [ebp - 0xbc8]
mov dword [ebp - 0xbb8], 0
mov word [ebp - 0xbc8], ax
call fcn.00402b60
mov eax, dword [ebp - 0xb54]
cmp eax, 8
jb 0x40465c
inc eax
lea ecx, [ebp - 0xb68]
push eax
push dword [ebp - 0xb68]
call fcn.00403020
xor eax, eax
mov dword [ebp - 0xb54], 7
mov word [ebp - 0xb68], ax
mov eax, dword [ebp - 0xe70]
mov dword [ebp - 0xb58], 0
cmp eax, 8
jb 0x404697
inc eax
lea ecx, [ebp - 0xe84]
push eax
push dword [ebp - 0xe84]
call fcn.00403020
xorps xmm0, xmm0
movq qword [ebp - 0xb48], xmm0
mov dword [ebp - 0xb48], 0
mov dword [ebp - 0xb44], 0
cmp dword [ebp - 0xbb4], 8
lea ecx, [ebp - 0xb48]
push ecx
push 0x20019
lea eax, [ebp - 0xbc8]
cmovae eax, dword [ebp - 0xbc8]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40492c
mov dword [ebp - 0xbcc], 7
mov dword [ebp - 0xbd0], eax
mov word [ebp - 0xbe0], ax
lea eax, [ebp - 0xbe0]
mov byte [ebp - 4], 0x10
push eax
push str.ParamDesc
lea ecx, [ebp - 0xb48]
call fcn.00406a30
lea edx, [ebp - 0xbe0]
lea ecx, [ebp - 0xe84]
call fcn.00401820
mov edx, dword [ebp - 0xe6c]
lea ecx, [ebp - 0xb80]
push eax
mov byte [ebp - 4], 0x11
call fcn.00406150
add esp, 4
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0xe70]
cmp eax, 0x10
jb 0x40476a
inc eax
lea ecx, [ebp - 0xe84]
push eax
push dword [ebp - 0xe84]
call fcn.00402f20
cmp dword [ebp - 0xb70], 0
mov dword [ebp - 0xe70], 0xf
mov dword [ebp - 0xe74], 0
mov byte [ebp - 0xe84], 0
jbe 0x4048d5
push 0x208
lea eax, [ebp - 0x934]
mov dword [ebp - 0xc0c], 0x104
push 0
push eax
mov dword [ebp - 0xb50], 1
call fcn.004f8b70
add esp, 0xc
lea ecx, [ebp - 0xc0c]
cmp dword [ebp - 0xbe4], 8
lea eax, [ebp - 0xbf8]
cmovae eax, dword [ebp - 0xbf8]
push ecx
lea ecx, [ebp - 0x934]
push ecx
lea ecx, [ebp - 0xb50]
push ecx
lea ecx, [ebp - 0xe58]
push ecx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea edx, [ebp - 0xb80]
lea ecx, [ebp - 0xb68]
call fcn.00403e20
lea eax, [ebp - 0x934]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0xb68]
call fcn.00404e70
test eax, eax
je 0x4048b7
cmp dword [ebp - 0xb54], 8
lea edx, [ebp - 0xb68]
mov eax, dword [ebp - 0xb70]
lea ecx, [ebp - 0xbf8]
cmovae edx, dword [ebp - 0xb68]
cmp dword [ebp - 0xbe4], 8
cmovae ecx, dword [ebp - 0xbf8]
add eax, eax
push eax
push edx
push 1
lea eax, [ebp - 0xe58]
push eax
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea edx, [ebp - 0xbe0]
lea ecx, [ebp - 0xe84]
call fcn.00401820
mov byte [ebp - 4], 0x15
cmp dword [eax + 0x14], 0x10
jb 0x40488b
mov eax, dword [eax]
push eax
push str._SetDevProperties__SetRegValue_ParamDescr:_s
call fcn.00403cd0
mov eax, dword [ebp - 0xe70]
add esp, 8
cmp eax, 0x10
jb 0x4048b7
inc eax
lea ecx, [ebp - 0xe84]
push eax
push dword [ebp - 0xe84]
call fcn.00402f20
mov eax, dword [ebp - 0xb54]
cmp eax, 8
jb 0x4048d5
inc eax
lea ecx, [ebp - 0xb68]
push eax
push dword [ebp - 0xb68]
call fcn.00403020
mov eax, dword [ebp - 0xb6c]
cmp eax, 0x10
jb 0x4048f3
inc eax
lea ecx, [ebp - 0xb80]
push eax
push dword [ebp - 0xb80]
call fcn.00402f20
mov eax, dword [ebp - 0xbcc]
mov dword [ebp - 0xb6c], 0xf
mov dword [ebp - 0xb70], 0
mov byte [ebp - 0xb80], 0
cmp eax, 8
jb 0x40492c
inc eax
lea ecx, [ebp - 0xbe0]
push eax
push dword [ebp - 0xbe0]
call fcn.00403020
mov eax, dword [ebp - 0xe5c]
mov ecx, dword [ebp - 0xe60]
dec eax
mov dword [ebp - 0xe5c], eax
test ecx, ecx
je 0x404978
test eax, eax
js 0x404978
lea edx, [ebp - 0xec0]
mov dword [ebp - 0xb50], 0x208
push edx
push 0
push 0
push 0
lea edx, [ebp - 0xb50]
push edx
lea edx, [ebp - 0xe58]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404981
xor eax, eax
mov word [ebp - 0xe58], ax
mov eax, dword [ebp - 0xb44]
test eax, eax
je 0x40499c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xb44], 0
mov eax, dword [ebp - 0xb48]
test eax, eax
je 0x4049b3
push eax
call edi
mov dword [ebp - 0xb48], 0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0xbb4]
cmp eax, 8
jb 0x404576
inc eax
lea ecx, [ebp - 0xbc8]
push eax
push dword [ebp - 0xbc8]
call fcn.00403020
jmp 0x404576
mov edi, dword [ebp - 0xe64]
lea eax, [ebp - 0xc50]
mov esi, dword [ebp - 0xe68]
xorps xmm0, xmm0
push 0x14
push eax
movups xmmword [ebp - 0xc4c], xmm0
push edi
push esi
mov dword [ebp - 0xc50], 8
mov dword [ebp - 0xc4c], 0x12
mov dword [ebp - 0xc44], 2
mov dword [ebp - 0xc48], 2
mov dword [ebp - 0xc40], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsA]
push edi
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiChangeState]
push esi
call edi
push 0x1388
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call esi
push 0x14
lea eax, [ebp - 0xc50]
mov dword [ebp - 0xc48], 1
push eax
push dword [ebp - 0xe64]
push dword [ebp - 0xe68]
call dword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsA]
push dword [ebp - 0xe64]
push dword [ebp - 0xe68]
call edi
push 0x1388
push dword [ebp - 0xe68]
call esi
cmp dword [ebp - 0xb84], 0x10
lea eax, [ebp - 0xb98]
cmovae eax, dword [ebp - 0xb98]
push eax
push str._SetDevProperties__HWID___s
call fcn.00403cd0
mov eax, dword [ebp - 0xe88]
add esp, 8
inc dword [eax]
mov eax, dword [ebp - 0xe60]
test eax, eax
je 0x404aca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc10]
cmp eax, 8
jb 0x404ae8
inc eax
lea ecx, [ebp - 0xc24]
push eax
push dword [ebp - 0xc24]
call fcn.00403020
xor eax, eax
mov dword [ebp - 0xc10], 7
mov word [ebp - 0xc24], ax
mov eax, dword [ebp - 0xbe4]
mov dword [ebp - 0xc14], 0
cmp eax, 8
jb 0x404b23
inc eax
lea ecx, [ebp - 0xbf8]
push eax
push dword [ebp - 0xbf8]
call fcn.00403020
xor eax, eax
mov dword [ebp - 0xbe4], 7
mov word [ebp - 0xbf8], ax
mov eax, dword [ebp - 0xc28]
mov dword [ebp - 0xbe8], 0
cmp eax, 0x10
jb 0x404b5e
inc eax
lea ecx, [ebp - 0xc3c]
push eax
push dword [ebp - 0xc3c]
call fcn.00402f20
mov dword [ebp - 0xc28], 0xf
mov dword [ebp - 0xc2c], 0
mov byte [ebp - 0xc3c], 0
mov eax, dword [ebp - 0xb84]
cmp eax, 0x10
jb 0x404b97
inc eax
lea ecx, [ebp - 0xb98]
push eax
push dword [ebp - 0xb98]
call fcn.00402f20
mov eax, dword [ebp - 0xb9c]
mov byte [ebp - 0xb98], 0
mov dword [ebp - 0xb88], 0
mov dword [ebp - 0xb84], 0xf
cmp eax, 8
jb 0x404bd0
inc eax
lea ecx, [ebp - 0xbb0]
push eax
push dword [ebp - 0xbb0]
call fcn.00403020
mov eax, 1
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.004f5c8b
mov esp, ebp
pop ebp
ret