Function at 0x403b50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00415130
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push eax
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1010], ebx
mov dword [ebp - 0x100c], ebx
call fcn.004039e0
add esp, 4
test eax, eax
jne 0x403b9b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a151
mov esp, ebp
pop ebp
ret
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SYSTEMCurrentControlSetControlClass4D36E96C_E325_11CE_BFC1_08002BE10318]
mov word [ebp + eax - 0x1004], cx
add eax, 2
cmp cx, bx
jne 0x403ba0
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1004]
push ecx
push 0x80000002
mov dword [ebp - 0x1008], 0x65
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x403dce
mov eax, dword [ebp - 0x1010]
push 0x200
lea edx, [ebp - 0xc04]
push edx
push ebx
push eax
mov dword [ebp - 0x1008], 0x66
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x403dce
push esi
push edi
lea eax, [ebp - 0xc04]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c20
sub eax, edx
sar eax, 1
cmp eax, 0xff
jge 0x403cfd
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x1004]
mov word [ebp + eax - 0x404], cx
add eax, 2
test cx, cx
jne 0x403c40
lea edi, [ebp - 0x404]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403c61
mov ecx, dword [0x419ba4]
lea eax, [ebp - 0xc04]
mov dword [edi], ecx
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c80
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403c96
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add ebx, 0xbb8
lea edx, [ebp - 0x804]
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x1008], ebx
push edx
mov ebx, str.MatchingDeviceId
lea ecx, [ebp - 0x404]
call fcn.00403810
add esp, 4
cmp eax, 1
jne 0x403cfd
mov eax, dword [ebp - 0x100c]
add eax, 0xfa0
lea edx, [ebp - 0x804]
mov dword [ebp - 0x1008], eax
call fcn.004037a0
test eax, eax
je 0x403d31
mov ebx, dword [ebp - 0x100c]
mov edx, dword [ebp - 0x1010]
push 0x200
lea ecx, [ebp - 0xc04]
push ecx
inc ebx
push ebx
push edx
mov dword [ebp - 0x100c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x403c10
jmp 0x403dcc
mov esi, dword [ebp - 0x100c]
lea ecx, [ebp - 0x804]
lea eax, [esi + 0x1388]
push ecx
mov ebx, str.Driver
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x1008], eax
call fcn.00403810
add esp, 4
cmp eax, 1
jne 0x403dcc
mov edi, dword [ebp - 0x1014]
add esi, 0x1770
mov eax, str._windir__system32Drivers_
mov edx, edi
mov dword [ebp - 0x1008], esi
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403d80
lea eax, [ebp - 0x804]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403d97
sub eax, edx
add edi, 0xfffffffe
jmp 0x403db0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403db0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x403ddf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 4]
xor edx, edx
cmp eax, 0x1770
setge dl
xor ecx, ebp
pop ebx
dec edx
and eax, edx
call fcn.0040a151
mov esp, ebp
pop ebp
ret