Function at 0x53b720
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x5764d6
mov eax, dword fs:[0]
push eax
sub esp, 0x678
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x68c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x694], ebx
mov eax, dword [esp + 0x69c]
cmp dword [eax - 0xc], ebx
mov dword [esp + 0x24], ebx
jne 0x53b7a2
add eax, 0xfffffff0
mov dword [esp + 0x694], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53b79b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x53bdb0
lea ecx, [esp + 0x2c]
push ecx
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov byte [esp + 0x6a4], 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x53b8ff
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x38], ebx
lea ecx, [ecx]
push 0x206
lea edx, [esp + 0x282]
push ebx
push edx
mov word [esp + 0x288], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x3c]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x290]
push edx
push eax
push esi
mov dword [esp + 0x6c], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x53bd73
cmp dword [esp + 0x4c], ebx
je 0x53bd73
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
call fcn.0040ff50
push 1
push 0x58bff8
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x6a0], 2
call fcn.00410240
lea eax, [esp + 0x27c]
lea edx, [eax + 2]
jmp 0x53b870
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x53b870
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x280]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00410240
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x694], 3
mov eax, dword [esp + 0x14]
push ecx
push ecx
add eax, 0xfffffff0
mov esi, str.MatchingDeviceId
mov dword [esp + 0x58], esp
mov edi, esp
call fcn.00410660
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.0053bed0
cmp eax, ebx
jne 0x53b908
mov byte [esp + 0x694], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x53bd31
mov dword [esp + 0x24], ebx
jmp 0x53bd7e
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x69c]
push ebp
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x53b93f
lea eax, [ebp - 0x10]
mov byte [esp + 0x694], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x53bd31
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
call fcn.0040ff50
lea edx, [esp + 0x27c]
push edx
push str._sNdiparams
lea edi, [esp + 0x20]
mov byte [esp + 0x69c], 4
call fcn.00410c20
add esp, 8
lea eax, [esp + 0x30]
push eax
push 0xf003f
mov byte [esp + 0x69c], 5
mov ecx, dword [esp + 0x20]
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x53bb7a
mov esi, dword [esp + 0x30]
mov dword [esp + 0x60], esi
mov dword [esp + 0x28], ebx
lea ebx, [ebx]
push 0x206
lea ecx, [esp + 0x7a]
push ebx
push ecx
mov word [esp + 0x80], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x2c]
push ebx
push ebx
push ebx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x88]
push ecx
push edx
push esi
mov dword [esp + 0x60], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x53bce6
cmp dword [esp + 0x40], ebx
je 0x53bce6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00410660
add eax, 0x10
mov dword [esp + 0x34], eax
lea eax, [esp + 0x74]
push eax
push 0x5ac83c
lea edi, [esp + 0x3c]
mov byte [esp + 0x69c], 6
call fcn.00410c20
add esp, 8
lea ecx, [esp + 0x3c]
push ecx
push 0x2001f
mov byte [esp + 0x69c], 7
mov ebp, dword [esp + 0x3c]
push ebx
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x53bb9b
mov ebx, dword [esp + 0x3c]
push 0x1fe
lea ecx, [esp + 0x48a]
push 0
push ecx
mov dword [esp + 0x60], ebx
mov word [esp + 0x490], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.ParamDesc
lea edx, [esp + 0x58]
push edx
lea edi, [esp + 0x24]
lea esi, [esp + 0x48c]
mov dword [esp + 0x24], 0xff
call fcn.0041a310
test eax, eax
jne 0x53bcb6
cmp dword [esp + 0x1c], eax
je 0x53bcb6
lea ebx, [esp + 0x69c]
call fcn.0053c410
lea ecx, [esp + 0x69c]
mov ebx, eax
call fcn.0053c3a0
mov edi, 0x6197d8
mov esi, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
lea esp, [esp]
test edi, edi
je 0x53bafc
cmp edi, 0x6197d8
je 0x53bb02
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, ebx
je 0x53bc6f
test edi, edi
jne 0x53bb14
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 4]
jne 0x53bb1f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x10]
sub eax, 0x10
call fcn.00410660
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x484]
push ecx
push eax
mov byte [esp + 0x69c], 8
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x53bbd5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x694], 7
call fcn.00410000
lea esi, [esp + 0x44]
call fcn.00536bc0
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
jmp 0x53baf0
mov byte [esp + 0x694], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x53bd0d
lea eax, [ebp - 0x10]
mov byte [esp + 0x694], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x53bcd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x28], 1
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x20]
jmp 0x53b9b0
lea esi, [esp + 0x44]
call fcn.0053c0d0
add eax, 8
mov eax, dword [eax]
sub eax, 0x10
call fcn.00410660
lea esi, [eax + 0x10]
mov dword [esp + 0x50], esi
lea edx, [esp + 0x74]
push edx
mov bl, 9
push str.KChangeDevProperties::_SetRegValue_ParamDescr:_s_n
mov ecx, 0x6180b8
mov byte [esp + 0x69c], bl
call fcn.00435a30
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0x28], esp
mov edi, esp
call fcn.00410660
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x698], 0xa
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
lea edi, [esp + 0x7c]
mov dword [esp + 0x60], esp
mov esi, esp
call fcn.00410660
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x69c], bl
call fcn.0053bde0
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], 1
call fcn.00410000
lea ecx, [esp + 0x1c]
call fcn.00410000
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x53bc7e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov byte [esp + 0x694], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53bcd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
add dword [esp + 0x28], 1
jmp 0x53b9b0
test ebx, ebx
je 0x53bcc1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x34]
mov byte [esp + 0x694], 5
call fcn.00410000
xor ebx, ebx
add dword [esp + 0x28], 1
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x20]
jmp 0x53b9b0
cmp esi, ebx
je 0x53bcf1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x694], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53bd19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x694], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53bd3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x694], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53bd65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x38], 1
mov esi, dword [esp + 0x2c]
jmp 0x53b7e0
cmp esi, ebx
je 0x53bd7e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x694], 0xffffffff
mov eax, dword [esp + 0x69c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53bdac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x68c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.00569ed6
add esp, 0x684
ret 4