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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1011159f
mov eax, dword fs:[0]
push eax
sub esp, 0xcc8
mov eax, dword [0x102ac760]
xor eax, esp
mov dword [esp + 0xcc0], eax
push ebx
push esi
push edi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0xcd8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0x44]
xor ebx, ebx
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
call fcn.10031250
push 6
push ebx
push ebx
push ebx
mov dword [esp + 0xcf0], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
mov dword [esp + 0x3c], edi
cmp edi, 0xffffffff
jne 0x1002f978
push esi
lea ecx, [esp + 0x48]
call fcn.100312b0
lea ecx, [esp + 0x44]
call fcn.10031810
mov ecx, dword [esp + 0x44]
push ecx
call fcn.100b1e2a
mov eax, esi
jmp 0x10030098
mov edx, dword [0x102b0b9c]
mov eax, dword [edx + 0xc]
mov ecx, 0x102b0b9c
xor esi, esi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x3ff
lea ecx, [esp + 0xd1]
push ebx
mov byte [esp + 0xce8], 1
push ecx
mov byte [esp + 0xd8], bl
call fcn.100b2d30
add esp, 0xc
xor eax, eax
lea edx, [esp + 0xb0]
push edx
push ebx
push edi
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xbc], 0x1c
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, 1
jne 0x10030017
inc esi
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], esi
call fcn.1002f0c0
mov eax, dword [ebp + 0xc]
push eax
lea ebx, [esp + 0x88]
lea edx, [esp + 0xb4]
mov ecx, edi
mov byte [esp + 0xce4], 2
call fcn.1002f480
add esp, 4
test al, al
je 0x1002ffe8
push 0
push 0x400
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x8c]
push edx
push 9
lea eax, [esp + 0xc4]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov ecx, dword [esp + 0xc4]
push 0
push ecx
lea edx, [esp + 0x68]
test eax, eax
push edx
setne byte [esp + 0x27]
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
test eax, eax
jne 0x1002fb66
mov ecx, dword [esp + 0x60]
push eax
push 0x400
lea eax, [esp + 0x4d4]
push eax
push ecx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
lea edx, [esp + 0x4cc]
push edx
lea ecx, [esp + 0x20]
call fcn.10002e70
mov bl, 3
mov byte [esp + 0xce0], bl
mov eax, dword [esp + 0x1c]
push 0x5c
push eax
call fcn.100b484c
add esp, 8
test eax, eax
je 0x1002fb3e
sub eax, dword [esp + 0x1c]
sar eax, 1
js 0x1002fb3e
inc eax
push eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x24]
call fcn.100185e0
mov ecx, eax
mov byte [esp + 0xce0], 4
call fcn.100315f0
mov ecx, eax
call fcn.10031650
push eax
lea ecx, [esp + 0xa4]
call fcn.10003630
mov byte [esp + 0xce0], bl
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002fb3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xce0], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002fb66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0xb0]
lea esi, [esp + 0x70]
call fcn.1002f3a0
push eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0xce4], 5
call fcn.10003630
mov byte [esp + 0xce0], 2
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002fbb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0xa4]
call fcn.100356b0
mov dword [esp + 0xa8], eax
cmp eax, 4
jne 0x1002fbdd
cmp byte [esp + 0x1b], 0
jne 0x1002fbdd
mov dword [esp + 0xa8], 1
lea ecx, [esp + 0x84]
call fcn.10015b40
push eax
lea ecx, [esp + 0x18]
call fcn.100033f0
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x1002fc19
push esi
lea ecx, [esp + 0x18]
call fcn.10005440
mov edx, dword [esp + 0x14]
lea ecx, [esi + 1]
push ecx
push edx
call fcn.100f3080
add esp, 8
test esi, esi
jl 0x100300bf
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x100300bf
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x68]
xor edx, edx
push ecx
lea ecx, [esp + 0x1c]
mov word [eax + esi*2], dx
call fcn.100185e0
mov byte [esp + 0xce0], 6
mov eax, dword [eax]
push eax
lea edx, [esp + 0x24]
push edx
call fcn.1002f1d0
add esp, 8
mov byte [esp + 0xce0], 8
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002fc98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
xor esi, esi
sar eax, 2
test eax, eax
jbe 0x1002ff65
cmp esi, eax
jb 0x1002fcb6
call fcn.100b2342
mov ecx, dword [esp + 0x2c]
push 3
lea edx, [esp + 0x3c]
lea ecx, [ecx + esi*4]
push edx
call fcn.10018790
mov bl, 9
mov byte [esp + 0xce0], bl
mov edi, dword [esp + 0x38]
mov ecx, 0x10289af0
mov eax, edi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002fd06
test dx, dx
je 0x1002fd02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002fd06
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002fce0
xor eax, eax
jmp 0x1002fd0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x1002fd62
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sar eax, 2
cmp esi, eax
jb 0x1002fd28
call fcn.100b2342
mov ecx, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x60]
lea ecx, [ecx + esi*4]
push edx
call fcn.100185e0
mov byte [esp + 0xce0], 0xa
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x8c]
call fcn.100194d0
mov byte [esp + 0xce0], bl
mov eax, dword [esp + 0x5c]
jmp 0x1002ff0d
mov ecx, 0x10289af8
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002fd96
test dx, dx
je 0x1002fd92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002fd96
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002fd70
xor eax, eax
jmp 0x1002fd9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x1002fdf2
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sar ecx, 2
cmp esi, ecx
jb 0x1002fdb8
call fcn.100b2342
mov edx, dword [esp + 0x2c]
push 4
lea eax, [esp + 0x70]
lea ecx, [edx + esi*4]
push eax
call fcn.100185e0
mov byte [esp + 0xce0], 0xb
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x90]
call fcn.100194d0
mov byte [esp + 0xce0], bl
mov eax, dword [esp + 0x6c]
jmp 0x1002ff0d
mov ecx, 0x10289b00
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002fe26
test dx, dx
je 0x1002fe22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002fe26
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002fe00
xor eax, eax
jmp 0x1002fe2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x1002fe82
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sar ecx, 2
cmp esi, ecx
jb 0x1002fe48
call fcn.100b2342
mov edx, dword [esp + 0x2c]
push 4
lea eax, [esp + 0x7c]
lea ecx, [edx + esi*4]
push eax
call fcn.100185e0
mov byte [esp + 0xce0], 0xc
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x94]
call fcn.100194d0
mov byte [esp + 0xce0], bl
mov eax, dword [esp + 0x78]
jmp 0x1002ff0d
mov ecx, 0x10289b08
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002feb6
test dx, dx
je 0x1002feb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002feb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002fe90
xor eax, eax
jmp 0x1002febb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x1002ff29
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sar ecx, 2
cmp esi, ecx
jb 0x1002fed8
call fcn.100b2342
mov edx, dword [esp + 0x2c]
push 3
lea eax, [esp + 0x78]
lea ecx, [edx + esi*4]
push eax
call fcn.100185e0
mov byte [esp + 0xce0], 0xd
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x9c]
call fcn.100194d0
mov byte [esp + 0xce0], bl
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002ff29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xce0], 8
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 0x1002ff51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
inc esi
sar eax, 2
cmp esi, eax
jb 0x1002fcb6
lea ecx, [esp + 0x84]
push ecx
lea edi, [esp + 0x48]
call fcn.100313d0
mov byte [esp + 0xce0], 2
mov esi, dword [esp + 0x2c]
xor ebx, ebx
cmp esi, ebx
je 0x1002ffc4
mov eax, dword [esp + 0x30]
mov edi, eax
cmp esi, eax
je 0x1002ffbb
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002ffb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x1002ff92
mov esi, dword [esp + 0x2c]
push esi
call fcn.100b1e2a
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.100b1e2a
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x40]
add esp, 4
lea ecx, [esp + 0x84]
mov byte [esp + 0xce0], 1
call fcn.100300d0
lea edx, [esp + 0xb0]
push edx
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, 1
je 0x1002fa0d
xor ebx, ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x48]
call fcn.100312b0
mov byte [esp + 0xce0], bl
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 0x10030053
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x50]
cmp edi, ebx
je 0x1003007e
mov esi, dword [esp + 0x54]
cmp edi, esi
je 0x10030075
mov ecx, edi
call fcn.100300d0
add edi, 0x2c
cmp edi, esi
jne 0x10030063
mov edi, dword [esp + 0x50]
push edi
call fcn.100b1e2a
add esp, 4
mov ecx, dword [esp + 0x44]
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.100b1e2a
mov eax, dword [esp + 0x44]
add esp, 4
mov ecx, dword [esp + 0xcd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xcc0]
xor ecx, esp
call fcn.100b2738
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10005490
int3