Function at 0x10003150
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1002218d
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x1002ca30]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1002ca30]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov eax, dword [esp + 0x284]
mov ecx, dword [esp + 0x28c]
add eax, 0x20
mov dword [esp + 0x3c], ecx
xor ebx, ebx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b], bl
call fcn.10002050
mov edx, dword [esp + 0x18]
push 0x23
push edx
mov dword [esp + 0x284], ebx
call fcn.1000ed5c
add esp, 8
cmp eax, ebx
jne 0x100031cf
or eax, 0xffffffff
jmp 0x100031d3
sub eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call fcn.10001880
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 1
call fcn.10001e00
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov byte [esp + 0x27c], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000321d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5c
push 0x23
lea ecx, [esp + 0x20]
call fcn.10001a90
lea ecx, [esp + 0x18]
call fcn.10001b50
call fcn.10003fb1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x1000324d
push 0x80004005
call fcn.100011c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebx
mov byte [esp + 0x27c], 2
jg 0x10003272
mov eax, ebp
jmp 0x10003289
push 0x5c
push eax
call fcn.1000ec89
add esp, 8
cmp eax, ebx
jne 0x10003285
mov eax, ebp
jmp 0x10003289
sub eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
call fcn.10001880
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x280], 3
call fcn.10001e00
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x27c], 2
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100032d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
push str.ROOT
push esi
call fcn.1000f168
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x10003339
lea eax, [esi - 0x10]
mov byte [esp + 0x27c], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000330e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x27c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x10003332
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x100037d2
mov edi, dword [esp + 0x288]
xor eax, eax
cmp edi, 0x8000
sete al
lea eax, [eax + eax + 4]
push eax
push ebx
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
cmp eax, ebp
mov dword [esp + 0x30], eax
jne 0x100033ae
lea eax, [esi - 0x10]
mov byte [esp + 0x27c], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x27c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x10003332
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x100037d2
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.10001710
add esp, 0xc
test eax, eax
je 0x10003775
mov ebp, dword [esp + 0x30]
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea ecx, [esp + 0x2c]
push ecx
push 0x104
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x44]
push eax
push 0xc
lea ecx, [esp + 0x60]
push ecx
push ebp
mov dword [esp + 0x48], ebx
call esi
test eax, eax
jne 0x1000342e
lea edx, [esp + 0x2c]
push edx
push 0x104
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebx
lea edx, [esp + 0x60]
push edx
push ebp
call esi
test eax, eax
jne 0x1000342e
push str.Unknown
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x2c]
push ecx
push 0x104
lea edx, [esp + 0x174]
push edx
lea eax, [esp + 0x44]
push eax
push 9
lea ecx, [esp + 0x60]
push ecx
push ebp
call esi
mov edx, dword [esp + 0x60]
push ebx
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
push 0x20019
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x170]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x50]
push ecx
push ebx
push str.NetCfgInstanceId
push edx
mov dword [esp + 0x5c], 0x32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call fcn.10003fb1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x100034d2
push 0x80004005
call fcn.100011c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
cmp edi, 0x8000
mov byte [esp + 0x27c], 4
jne 0x10003509
lea ecx, [esp + 0x20]
push str.system_detected_a_new_device__r_n
push ecx
call fcn.10001ec0
add esp, 8
jmp 0x100035ca
cmp edi, 0x8001
jne 0x10003528
lea edx, [esp + 0x20]
push str.wants_to_remove__may_fail__r_n
push edx
call fcn.10001ec0
add esp, 8
jmp 0x100035ca
cmp edi, 0x8002
jne 0x10003547
lea eax, [esp + 0x20]
push str.removal_aborted__r_n
push eax
call fcn.10001ec0
add esp, 8
jmp 0x100035ca
cmp edi, 0x8003
jne 0x10003563
lea ecx, [esp + 0x20]
push str.about_to_remove__still_avail.__r_n
push ecx
call fcn.10001ec0
add esp, 8
jmp 0x100035ca
cmp edi, 0x8004
jne 0x1000357f
lea edx, [esp + 0x20]
push str.device_is_gone__r_n
push edx
call fcn.10001ec0
add esp, 8
jmp 0x100035ca
cmp edi, 0x8005
jne 0x1000359b
lea eax, [esp + 0x20]
push str.type_specific_event__r_n
push eax
call fcn.10001ec0
add esp, 8
jmp 0x100035ca
cmp edi, 0x8006
jne 0x100035b7
lea ecx, [esp + 0x20]
push str.user_defined_event__r_n
push ecx
call fcn.10001ec0
add esp, 8
jmp 0x100035ca
push edi
lea edx, [esp + 0x24]
push str.Device_event__0X_X__r_n
push edx
call fcn.10001ec0
add esp, 0xc
mov ebp, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call esi
mov ecx, 0x100647a0
lea eax, [esp + 0x16c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003603
cmp dl, bl
je 0x100035ff
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10003603
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x100035e3
xor eax, eax
jmp 0x10003608
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10003622
mov ecx, dword [esp + 0x3c]
cmp edi, 0x8000
setne al
mov byte [esp + 0x17], 1
mov byte [ecx], al
jmp 0x10003663
lea ecx, [esp + 0x1c]
call fcn.100016e0
push 0x100647a0
lea edx, [esp + 0x170]
push edx
lea eax, [esp + 0x24]
push str.Device__s____s__r_n
push eax
mov byte [esp + 0x28c], 5
call fcn.10001ec0
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 4
call fcn.100015b0
call fcn.10003fb1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x1000367d
push 0x80004005
call fcn.100011c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp byte [esp + 0x17], bl
mov byte [esp + 0x27c], 6
je 0x100036ee
cmp edi, 0x8000
jne 0x100036af
lea ecx, [esp + 0x68]
push ecx
push str.plug_in__s_r_n
jmp 0x10003711
cmp dword [esp + 0x34], 0x16
je 0x100036dd
test byte [esp + 0x24], 8
je 0x1000371e
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x20]
push str._False_Unplug__s_r_n
push ecx
call fcn.10001ec0
mov edx, dword [esp + 0x48]
mov byte [esp + 0x23], bl
mov byte [edx], bl
jmp 0x1000371b
lea eax, [esp + 0x68]
push eax
push str.Unplug__s_r_n
lea ecx, [esp + 0x24]
push ecx
jmp 0x10003716
cmp edi, 0x8000
jne 0x10003707
lea edx, [esp + 0x68]
push edx
push str.Adding__s_r_n
lea eax, [esp + 0x24]
push eax
jmp 0x10003716
lea ecx, [esp + 0x68]
push ecx
push str.Removing__s_r_n
lea edx, [esp + 0x24]
push edx
call fcn.10001ec0
add esp, 0xc
mov eax, dword [esp + 0x1c]
push eax
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x27c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000374d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x27c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003771
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea eax, [esi - 0x10]
mov byte [esp + 0x27c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100037a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x27c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100037ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.1000f47d
add esp, 0x26c
ret