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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000533f
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x1000801c]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x1000801c]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 6
xor ebx, ebx
push ebx
push 0x10006240
push ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x60], ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
lea edx, [esp + 0x6c]
mov edi, eax
xor eax, eax
push edx
push ebx
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x48], edi
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
mov dword [esp + 0x90], eax
mov dword [esp + 0x78], 0x1c
mov dword [esp + 0x50], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10001820
push 4
call fcn.100046b6
add esp, 4
cmp eax, ebx
je 0x100012e9
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x100012eb
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
xor ecx, ecx
mov eax, 0x1f4
mov edx, 2
mul edx
seto cl
mov dword [esp + 0xb8], 1
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x14], ebx
neg ecx
or ecx, eax
push ecx
call fcn.10004643
add esp, 4
push 0x3e8
mov esi, eax
push ebx
push esi
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push ecx
push esi
lea edx, [esp + 0x58]
push edx
push 2
lea eax, [esp + 0x80]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x100013f9
mov ebx, 0x3e8
mov edi, 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
je 0x100013f7
cmp eax, 0x7a
jne 0x100013f1
test esi, esi
je 0x10001391
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
add edi, 0x1f4
xor ecx, ecx
mov eax, edi
mov edx, 2
add ebx, 0x3e8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10004643
add esp, 4
push ebx
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x44]
push esi
lea edx, [esp + 0x58]
push edx
push 2
lea eax, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x10001370
jmp 0x100013f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
jne 0x10001437
cmp esi, ebx
je 0x10001411
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x1000142d
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
jmp 0x100017ea
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.10002930
mov byte [esp + 0xb8], 2
cmp esi, ebx
je 0x10001458
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
cmp esi, ebx
je 0x10001598
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x10001483
mov ecx, esi
lea eax, [esp + 0x10]
call fcn.10003b20
mov edx, dword [esp + 0x10]
lea ecx, [esi + 1]
push ecx
push edx
call dword [sym.imp.MSVCR90.dll__wcslwr_s]
add esp, 8
cmp esi, ebx
jl 0x1000184b
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x1000184b
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x10]
xor eax, eax
mov word [ecx + esi*2], ax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
call fcn.10002b50
mov byte [esp + 0xb8], 3
mov eax, dword [esp + 0x48]
mov ecx, str.usbclass_ffsubclass_42
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100014fb
cmp dx, bx
je 0x100014f7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100014fb
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x100014d5
xor eax, eax
jmp 0x10001500
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
test al, al
je 0x10001570
mov edx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x88], eax
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 + 0xa4], eax
mov dword [esp + 0x88], edx
mov ecx, 7
lea esi, [esp + 0x6c]
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x88]
lea edi, [esp + 0x1c]
call fcn.10002bf0
mov byte [esp + 0xb8], 2
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001598
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, ecx
sub eax, edx
sar eax, 5
mov dword [esp + 0x18], ebx
cmp eax, ebx
jbe 0x100017a1
xor edi, edi
jmp 0x100015bb
mov ebx, dword [esp + 0x18]
cmp ebx, eax
jb 0x100015cd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
sub ecx, edx
sar ecx, 5
lea esi, [edx + edi]
cmp ebx, ecx
jb 0x100015e3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x28]
lea eax, [edx + edi]
push eax
lea ecx, [esp + 0x3c]
lea ebx, [esi + 4]
push ecx
call section..text
add esp, 8
mov ebx, dword [esp + 0x58]
mov byte [esp + 0xb8], 4
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x1000160e
xor ecx, ecx
jmp 0x10001616
mov ecx, dword [ebx + 0x14]
sub ecx, eax
sar ecx, 2
mov esi, dword [ebx + 0x10]
mov edx, esi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x1000164b
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
push 1
push esi
call fcn.10003cc0
add esp, 0x14
add esi, 4
mov dword [ebx + 0x10], esi
jmp 0x1000166a
cmp eax, esi
jbe 0x10001655
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx]
push esi
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x68]
push ecx
mov eax, ebx
call fcn.10002fe0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov edx, eax
sub edx, ecx
sar edx, 5
cmp ebx, edx
jb 0x1000168f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub eax, ecx
sar eax, 5
lea esi, [ecx + edi]
cmp ebx, eax
jb 0x100016a5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
lea eax, [ecx + edi]
push eax
lea eax, [esp + 0x38]
lea ebx, [esi + 4]
push eax
call fcn.10001120
add esp, 8
mov ebx, dword [esp + 0x50]
mov byte [esp + 0xb8], 5
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x100016d0
xor ecx, ecx
jmp 0x100016d8
mov ecx, dword [ebx + 0x14]
sub ecx, eax
sar ecx, 2
mov esi, dword [ebx + 0x10]
mov edx, esi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x1000170d
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
push 1
push esi
call fcn.10003cc0
add esp, 0x14
add esi, 4
mov dword [ebx + 0x10], esi
jmp 0x1000172c
cmp eax, esi
jbe 0x10001717
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx]
push esi
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
push ecx
mov eax, ebx
call fcn.10002fe0
mov byte [esp + 0xb8], 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10001754
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb8], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000177c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov eax, ecx
sub eax, edx
inc esi
sar eax, 5
add edi, 0x20
mov dword [esp + 0x18], esi
cmp esi, eax
jb 0x100015b7
xor ebx, ebx
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100017c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x100017e5
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
add esp, 4
lea edx, [esp + 0x6c]
inc eax
push edx
push eax
push edi
mov dword [esp + 0x50], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x100012d3
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.10004654
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10004270
int3