Function at 0x438ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4874eb
mov eax, dword fs:[0]
push eax
mov eax, 0x1b24
call fcn.004839d0
mov eax, dword [0x4ab00c]
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
xor eax, eax
mov dword [ebp - 0x1ae0], 0
mov dword [ebp - 0x1adc], 7
mov word [ebp - 0x1af0], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1b04], eax
mov dword [ebp - 0x1b00], 7
mov word [ebp - 0x1b14], ax
mov byte [ebp - 4], 1
mov edx, dword [0x4ae04c]
push ecx
mov ecx, dword [0x4ae048]
call fcn.0040afa0
mov eax, dword [0x4ae048]
xor ecx, ecx
mov esi, dword [0x4ae03c]
add esp, 4
mov dword [0x4ae04c], eax
mov eax, 0xb21642c9
mov dword [ebp - 0x1b28], ecx
mov ecx, dword [0x4ae040]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x4394f7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edi, edi
mov dword [ebp - 0x1b20], edi
nop dword [eax + eax]
cmp byte [edi + esi + 0x30], 0
je 0x4394c1
push 0x27
push str.SYSTEMCurrentControlSetControlClass_
lea ecx, [ebp - 0x1af0]
call fcn.00402430
mov eax, dword [0x4ae03c]
add eax, 0x18
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x4390ef
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xd8]
push 0x64
push eax
call fcn.00474910
lea ecx, [ebp - 0xd8]
add esp, 0xc
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439110
sub ecx, edx
lea eax, [ebp - 0xd8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1af0]
call fcn.0040a760
lea eax, [ebp - 0xd8]
push 0x64
push eax
call fcn.0047525d
xor esi, esi
lea eax, [ebp - 0x1af0]
cmp dword [ebp - 0x1adc], 8
push esi
cmovae eax, dword [ebp - 0x1af0]
push eax
lea eax, [ebp - 0x1ad8]
mov dword [ebp - 0x1b24], esi
push str._s_04d
push eax
call fcn.0040a9b0
add esp, 0x18
lea eax, [ebp - 0x1b18]
push eax
push 0x20119
push esi
lea eax, [ebp - 0x1ad8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4394bb
nop dword [eax]
mov dword [ebp - 0x1af4], 0x400
lea eax, [ebp - 0x8d8]
mov ecx, 0x400
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4391b5
lea eax, [ebp - 0x1af4]
push eax
lea eax, [ebp - 0x8d8]
push eax
push ecx
push ecx
push str.InfPath
push dword [ebp - 0x1b18]
call ebx
test eax, eax
jne 0x439456
lea eax, [ebp - 0x8d8]
mov byte [ebp - 0x1b19], 1
push 0x200
push eax
call fcn.0047525d
add esp, 8
mov dword [ebp - 0x1af8], 0x400
mov ecx, 0x400
lea eax, [ebp - 0x4d8]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x439215
lea eax, [ebp - 0x1af8]
push eax
lea eax, [ebp - 0x4d8]
push eax
push ecx
push ecx
push str.MatchingDeviceId
push dword [ebp - 0x1b18]
call ebx
test eax, eax
je 0x43924a
xor eax, eax
mov word [ebp - 0x4d8], ax
lea eax, [ebp - 0x4d8]
push 0x200
push eax
call fcn.0047525d
add esp, 8
mov dword [ebp - 0x1afc], 0x800
mov ecx, 0x800
lea eax, [ebp - 0x10d8]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x439273
lea eax, [ebp - 0x1afc]
push eax
lea eax, [ebp - 0x10d8]
push eax
push ecx
push ecx
push str.DriverDesc
push dword [ebp - 0x1b18]
call ebx
test eax, eax
je 0x4392a8
xor eax, eax
mov word [ebp - 0x10d8], ax
lea eax, [ebp - 0x10d8]
push 0x400
push eax
call fcn.0047525d
mov ebx, dword [0x4ae03c]
add esp, 8
cmp byte [edi + ebx + 0x34], 0
je 0x439538
mov esi, dword [edi + ebx + 0x38]
mov edi, dword [edi + ebx + 0x3c]
cmp esi, edi
je 0x439303
nop dword [eax]
lea eax, [ebp - 0x8d8]
mov ecx, esi
push eax
call fcn.0046a700
test al, al
jne 0x4392fb
add esi, 0x18
cmp esi, edi
jne 0x4392e0
jmp 0x439303
xor al, al
mov byte [ebp - 0x1b19], al
mov edi, dword [ebp - 0x1b20]
mov esi, dword [edi + ebx + 0x44]
mov edi, dword [edi + ebx + 0x48]
cmp esi, edi
je 0x439332
lea eax, [ebp - 0x4d8]
mov ecx, esi
push eax
call fcn.0046a700
test al, al
jne 0x43952b
add esi, 0x18
cmp esi, edi
jne 0x439315
mov cl, byte [ebp - 0x1b19]
mov esi, dword [ebp - 0x1b24]
mov edi, dword [ebp - 0x1b20]
cmp dword [edi + ebx + 0x14], 8
lea eax, [edi + ebx]
jb 0x439350
mov eax, dword [eax]
lea edx, [ebp - 0x10d8]
test cl, cl
push edx
lea edx, [ebp - 0x4d8]
mov ecx, 0x49b380
push edx
lea edx, [ebp - 0x8d8]
push edx
push esi
push eax
mov eax, 0x49b378
cmove eax, ecx
push eax
push str._s__s__04d:__s___s___s
push 0x4ac9d8
call fcn.0040a9b0
push 1
mov edx, 4
mov ecx, 0x4ac9d8
call fcn.00411390
add esp, 0x24
cmp byte [ebp - 0x1b19], 0
je 0x439450
add edi, dword [0x4ae03c]
sub esp, 0x5c
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x1b2c], esi
push edi
call fcn.004022e0
lea eax, [edi + 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.004022e0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov al, byte [edi + 0x30]
mov byte [esi + 0x30], al
mov al, byte [edi + 0x31]
mov byte [esi + 0x31], al
mov al, byte [edi + 0x32]
mov byte [esi + 0x32], al
mov al, byte [edi + 0x33]
mov byte [esi + 0x33], al
mov al, byte [edi + 0x34]
mov byte [esi + 0x34], al
lea eax, [edi + 0x38]
push eax
call fcn.00468250
lea eax, [edi + 0x44]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x44]
call fcn.00468250
lea eax, [edi + 0x50]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x50]
call fcn.00468250
lea eax, [ebp - 0x4d8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10d8]
push eax
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0x8d8]
call fcn.004385e0
mov esi, dword [ebp - 0x1b24]
add esp, 0x64
mov edi, dword [ebp - 0x1b20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1b18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
lea eax, [ebp - 0x1af0]
cmp dword [ebp - 0x1adc], 8
push esi
cmovae eax, dword [ebp - 0x1af0]
push eax
lea eax, [ebp - 0x1ad8]
mov dword [ebp - 0x1b24], esi
push str._s_04d
push eax
call fcn.0040a9b0
add esp, 0x10
lea eax, [ebp - 0x1b18]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x1ad8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4391a0
mov esi, dword [0x4ae03c]
mov ecx, dword [0x4ae040]
mov eax, 0xb21642c9
inc dword [ebp - 0x1b28]
sub ecx, esi
imul ecx
add edi, 0x5c
add edx, ecx
mov dword [ebp - 0x1b20], edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x1b28], eax
jl 0x4390c0
mov edx, dword [ebp - 0x1adc]
cmp edx, 8
jb 0x43954d
mov ecx, dword [ebp - 0x1af0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x439543
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439569
jmp 0x439543
xor cl, cl
mov byte [ebp - 0x1b19], cl
jmp 0x439338
mov cl, byte [ebp - 0x1b19]
jmp 0x439344
push edx
push ecx
call fcn.0046ba31
add esp, 8
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.0046b9f0
mov esp, ebp
pop ebp
ret
call fcn.00471513
int3