Function at 0x10022380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1004d932
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x878], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0x890]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov dword [esp + 0x34], esi
call fcn.10023350
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
push 0x12
xor ebx, ebx
push ebx
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x18]
push ebx
push 0x10055510
mov dword [eax + 8], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, eax
mov dword [esp + 0x2c], ebp
cmp ebp, 0xffffffff
je 0x10022893
cmp ebp, ebx
je 0x10022893
lea edx, [esp + 0xc8]
push edx
xor eax, eax
push ebx
push 0x10055510
push ebx
mov edi, 0x1c
mov dword [esp + 0x84], eax
push ebp
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x88], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0xdc], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x1002288c
lea eax, [esp + 0x11c]
push eax
call fcn.10021990
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
lea edx, [esp + 0xd8]
mov dword [esp + 0x8a8], ebx
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push edx
push ebp
mov dword [esp + 0x2c], ebx
call esi
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x1002284e
cmp ecx, 0x400
ja 0x1002284e
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x74]
push eax
lea edx, [esp + 0x18]
push edx
push ecx
lea eax, [esp + 0x498]
push eax
lea ecx, [esp + 0xd8]
push ecx
push ebp
mov dword [esp + 0x4a4], 5
mov dword [esp + 0x8c], edi
call esi
cmp eax, ebx
je 0x1002284e
lea edx, [esp + 0x48c]
push edx
call fcn.100228c0
add esp, 4
test al, al
je 0x1002284e
or eax, 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x494]
call fcn.10022060
add esp, 8
test al, al
je 0x10022574
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1bc], edx
mov dword [esp + 0x1c0], eax
lea esi, [esp + 0x24]
lea eax, [esp + 0x48c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.100222a0
test al, al
je 0x100225a6
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], edx
mov eax, 0xf
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
lea eax, [esp + 0x48c]
push eax
lea ecx, [esp + 0xb0]
lea edi, [esp + 0x94]
mov byte [esp + 0x89c], 2
call fcn.10022110
add esp, 4
cmp al, bl
je 0x10022628
push 0xffffffffffffffff
push ebx
mov ecx, edi
push ecx
lea ecx, [esp + 0x168]
call fcn.10002450
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0x184]
call fcn.10002450
mov eax, dword [esp + 0x88]
mov esi, dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
push ebx
push 0x104
lea ecx, [esp + 0x38c]
push ecx
push eax
mov edi, eax
call esi
cmp eax, ebx
jne 0x10022660
lea edx, [esp + 0x384]
push edx
lea ecx, [esp + 0x144]
call fcn.10001f90
push ebx
push edi
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
cmp eax, ebx
jne 0x100227c5
push 0x103
lea ecx, [esp + 0x281]
push ebx
push ecx
mov byte [esp + 0x288], bl
call fcn.10037cf0
mov eax, dword [esp + 0x40]
add esp, 0xc
push ebx
push 0x104
lea edx, [esp + 0x284]
push edx
push eax
call esi
cmp eax, ebx
jne 0x100227c5
lea ecx, [esp + 0x27c]
push ecx
lea ecx, [esp + 0x128]
call fcn.10001f90
lea ebx, [esp + 0x48]
lea edi, [esp + 0x124]
call fcn.10010580
lea ebx, [esp + 0x50]
mov esi, eax
call fcn.100105d0
lea ebx, [esp + 0x40]
mov ebp, eax
call fcn.10010580
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
mov edx, dword [ebp + 4]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.10010620
add esp, 0x1c
push 0xffffffffffffffff
mov ecx, 0x16
lea esi, [esp + 0x5c]
mov edx, edi
call fcn.1001cda0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1a0]
mov byte [esp + 0x8a4], 3
call fcn.10002450
mov bl, 2
mov ecx, esi
mov byte [esp + 0x898], bl
call fcn.100025e0
push 4
mov ecx, 8
lea esi, [esp + 0x104]
mov edx, edi
call fcn.1001cda0
push 0xffffffffffffffff
push 0
mov edx, esi
push edx
lea ecx, [esp + 0x1d8]
mov byte [esp + 0x8a4], 4
call fcn.10002450
push 4
mov ecx, 0x11
lea esi, [esp + 0xe8]
mov edx, edi
call fcn.1001cda0
push 0xffffffffffffffff
push 0
mov eax, esi
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x8a4], 5
call fcn.10002450
mov ecx, esi
call fcn.100025e0
lea ecx, [esp + 0x100]
mov byte [esp + 0x898], bl
call fcn.100025e0
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
call fcn.10022c80
mov ecx, eax
lea eax, [esp + 0x11c]
call fcn.10021bf0
mov edi, 0x10
cmp dword [esp + 0xc4], edi
jb 0x100227ff
mov edx, dword [esp + 0xb0]
push edx
call fcn.10024afb
add esp, 4
xor ebx, ebx
mov esi, 0xf
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp dword [esp + 0xa8], edi
jb 0x10022834
mov eax, dword [esp + 0x94]
push eax
call fcn.10024afb
add esp, 4
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
xor ebx, ebx
mov dword [esp + 0xa8], esi
lea edi, [ebx + 0x1c]
mov esi, dword [esp + 0x1c]
inc esi
lea ecx, [esp + 0x11c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x898], 0xffffffff
call fcn.10021b70
lea ecx, [esp + 0xc8]
push ecx
push esi
push 0x10055510
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x10022473
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0x890]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x878]
xor ecx, esp
call fcn.10032551
add esp, 0x888
ret