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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000f219
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x38ac
call fcn.1000e4f0
mov eax, dword [0x10014034]
xor eax, esp
mov dword [esp + 0x38a8], eax
push ebx
push esi
push edi
mov eax, dword [0x10014034]
xor eax, esp
push eax
lea eax, [esp + 0x38c0]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov ebx, dword [ebp + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, 7
lea esi, [ebp + 0xc]
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov ecx, section..data
mov dword [esp + 0x28], ebx
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38c8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, 0xffffffff
je 0x10002971
lea esi, [esp + 0x58]
call fcn.10002f30
xor ecx, ecx
push 0x7fe
mov byte [esp + 0x38cc], 1
push ecx
lea edx, [esp + 0x10be]
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0
mov word [esp + 0x10c0], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xbe]
push ecx
mov word [esp + 0xc0], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x8be]
push eax
mov word [esp + 0x8c0], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x18be]
push edx
mov word [esp + 0x18c0], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x30be]
push ecx
mov word [esp + 0x30c0], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x20be]
push eax
mov word [esp + 0x20c0], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x28be]
push edx
mov word [esp + 0x28c0], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x400
lea ecx, [esp + 0x10bc]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
lea eax, [esp + 0xa8]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x100029af
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10b8]
mov byte [esp + 0x23], 1
call fcn.100060a0
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCR100.dll__wcsicmp]
push str.USB_Root_Hub
push edx
call esi
add esp, 8
test eax, eax
je 0x10002934
mov eax, dword [esp + 0x18]
push str.Generic_USB_Hub
push eax
call esi
add esp, 8
test eax, eax
jne 0x10002939
mov byte [esp + 0x1f], 0
mov byte [esp + 0x38c8], 1
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 0x10002961
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1f], 0
jne 0x1000299f
lea eax, [esp + 0x58]
call fcn.10003020
mov dword [esp + 0x38c8], 0xffffffff
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10002998
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x10002f09
lea edx, [esp + 0x10b4]
lea edi, [esp + 0x74]
call fcn.100061e0
push 0
push 0x400
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0xa0]
push edx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
lea eax, [esp + 0xb4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100029d7
sub eax, edx
lea ecx, [esp + 0xb4]
sar eax, 1
push ecx
lea edx, [esp + 0x6c]
push edx
mov ebx, eax
call fcn.10007330
lea eax, [esp + 0x20]
push eax
push 0x400
lea ecx, [esp + 0x8bc]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x30]
push edx
push 1
lea eax, [esp + 0xa8]
push eax
push ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x10002b8f
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x8b8]
mov bl, 1
call fcn.100060a0
lea edi, [esp + 0x18]
mov byte [esp + 0x38c8], 6
call fcn.10006250
call fcn.10006170
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
jl 0x10002a91
push str.USBVID_
push ecx
call dword [sym.imp.MSVCR100.dll_wcsstr]
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x10002a91
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x10002a93
xor bl, bl
lea eax, [ecx - 0x10]
mov byte [esp + 0x38c8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10002ab7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x10002adb
lea eax, [esp + 0x58]
call fcn.10003020
mov dword [esp + 0x38c8], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
jmp 0x1000297f
lea edx, [esp + 0x8b4]
lea edi, [esp + 0x6c]
call fcn.100061e0
mov esi, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x8b8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call sym.Device.dll_private:_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CDevice::GetDeviceID_wchar_t_const___bool_
lea edi, [esp + 0x58]
mov byte [esp + 0x38c8], 8
call fcn.10006170
mov byte [esp + 0x38c8], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10002b3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
lea ecx, [esp + 0x8b8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call sym.Device.dll_private:_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CDevice::GetDeviceID_wchar_t_const___bool_
lea edi, [esp + 0x5c]
mov byte [esp + 0x38c8], 9
call fcn.10006170
mov byte [esp + 0x38c8], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10002b93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10002b93
mov esi, dword [esp + 0x14]
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
lea ecx, [esp + 0x20]
push ecx
push 0x400
lea edx, [esp + 0x20bc]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x30]
push eax
push 7
lea ecx, [esp + 0xa8]
push ecx
push edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 1
call ebx
test eax, eax
je 0x10002bee
push 3
lea eax, [esp + 0x20b8]
push eax
mov ecx, esi
call sym.Device.dll_private:_bool___thiscall_CDevice::IsMaybeAndroidDevice_wchar_t_const___enum_devicetype_
test al, al
je 0x10002abb
lea ecx, [esp + 0x20]
push ecx
push 0x400
lea edx, [esp + 0x18bc]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x30]
push eax
push 2
lea ecx, [esp + 0xa8]
push ecx
push edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 1
call ebx
test eax, eax
je 0x10002c3a
lea edx, [esp + 0x18b4]
lea edi, [esp + 0x64]
call fcn.100061e0
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x20]
push ecx
push 0x400
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x94], edx
lea edx, [esp + 0x28bc]
push edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x30]
push eax
push 0x24
lea ecx, [esp + 0xa8]
push ecx
push edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 1
call ebx
test eax, eax
je 0x10002cc1
lea edx, [esp + 0x28b4]
lea edi, [esp + 0x80]
call fcn.100061e0
lea eax, [esp + 0x20]
push eax
push 0x400
lea ecx, [esp + 0x30bc]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x30]
push edx
push 4
lea eax, [esp + 0xa8]
push eax
push ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 1
call ebx
test eax, eax
je 0x10002d0d
lea edx, [esp + 0x30b4]
lea edi, [esp + 0x78]
call fcn.100061e0
sub esp, 0x3c
mov edx, esp
mov dword [esp + 0x50], esp
push edx
lea edi, [esp + 0x98]
call fcn.10003180
mov ecx, esi
call sym.Device.dll_private:_bool___thiscall_CDevice::IsDeviceInList_struct__device_information_
test al, al
jne 0x10002ed3
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push ebx
push ecx
push edx
mov ecx, esi
call sym.Device.dll_private:_bool___thiscall_CDevice::IsAndroidDevice_wchar_t_const___wchar_t_const___wchar_t_const__
test al, al
je 0x10002ed3
lea eax, [esp + 0x30]
push eax
call fcn.10001040
lea eax, [esp + 0x5c]
lea edi, [esp + 0x34]
mov byte [esp + 0x38c8], 0xa
call fcn.10006170
lea eax, [esp + 0x58]
lea edi, [esp + 0x30]
call fcn.10006170
lea ecx, [esp + 0x18b4]
push ecx
mov ecx, esi
mov byte [esp + 0x44], 1
call sym.Device.dll_private:_bool___thiscall_CDevice::IsAdbDevice_wchar_t_const__
mov ecx, esi
test al, al
je 0x10002e88
lea edx, [esp + 0xb4]
push edx
mov byte [esp + 0x47], 1
call sym.Device.dll_private:_bool___thiscall_CDevice::IsDriverInstalled_wchar_t_const__
movzx eax, al
test eax, eax
setne al
push ecx
mov byte [esp + 0x45], al
mov byte [esp + 0x46], al
lea eax, [ebx - 0x10]
mov dword [esp + 0x2c], esp
mov edi, esp
call fcn.10007450
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x38cc], 0xb
mov edi, dword [esp + 0x60]
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x20], esp
mov ebx, esp
call fcn.10007450
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x38d0], 0xc
mov ebx, dword [esp + 0x60]
push ecx
mov dword [esp + 0x20], esp
lea eax, [ebx - 0x10]
mov dword [esp + 0x20], esp
call fcn.10007450
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
mov ecx, esi
mov byte [esp + 0x38d4], 0xa
call sym.Device.dll_private:_void___thiscall_CDevice::WriteToAdbInfoVector_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
push 1
push ecx
mov edx, esp
mov dword [esp + 0x30], esp
push edx
lea ecx, [esp + 0xc0]
call fcn.100060a0
push ecx
mov byte [esp + 0x38d4], 0xd
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esp
mov dword [esp + 0x20], esp
call fcn.10007450
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
push ecx
mov byte [esp + 0x38d8], 0xe
lea eax, [ebx - 0x10]
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.10007450
add eax, 0x10
lea edx, [esi + 0x50]
mov dword [edi], eax
push edx
mov byte [esp + 0x38dc], 0xa
call fcn.10009af0
jmp 0x10002ea5
lea eax, [esp + 0xb4]
push eax
call sym.Device.dll_private:_bool___thiscall_CDevice::IsDriverInstalled_wchar_t_const__
movzx eax, al
test eax, eax
setne al
mov byte [esp + 0x41], al
mov byte [esp + 0x42], al
lea ecx, [esp + 0x58]
lea ebx, [esp + 0x48]
call fcn.10006440
inc dword [esp + 0x3c]
lea ebx, [esi + 0x14]
lea ecx, [esp + 0x30]
call fcn.100067d0
lea eax, [esp + 0x30]
mov byte [esp + 0x38c8], 1
call fcn.100032c0
lea eax, [esp + 0x58]
call fcn.10003020
mov dword [esp + 0x38c8], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10002f07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x38c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38a8]
xor ecx, esp
call fcn.1000db42
mov esp, ebp
pop ebp
ret 0x20