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

Disassembly:
push 0xffffffffffffffff
push 0x45e7ae
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b038]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2a0]
mov eax, dword [esp + 0x2a8]
mov ebx, ecx
push esi
xor ebp, ebp
push str.GetDeviceProperty___s__n
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebp
call fcn.0043e2c0
add esp, 8
cmp dword [ebx + 0x438], ebp
jne 0x402c7a
xor eax, eax
jmp 0x402fcc
cmp byte [ebx + 0x43c], 0
jne 0x402c8e
push ebp
push ebp
push 1
mov ecx, ebx
call fcn.00401c90
test byte [esp + 0x2b0], 2
mov eax, 4
je 0x402ca2
mov eax, 6
mov ecx, dword [ebx + 0x438]
push ebp
push ebp
push ebp
push eax
push ebp
push ebp
push ebp
call ecx
mov edi, eax
mov dword [esp + 0x28], edi
cmp edi, 0xffffffff
je 0x402fb0
mov edx, dword [esp + 0x2b0]
mov eax, dword [esp + 0x29c]
push edx
push esi
push eax
lea ecx, [esp + 0x6c]
push ecx
push ebp
push edi
mov ecx, ebx
mov dword [esp + 0x38], ebp
call fcn.00401cc0
cmp eax, ebp
je 0x402fa9
jmp 0x402cf0
cmp eax, 1
jne 0x402f79
push esi
push str.FOUND___s__n
call fcn.0043e2c0
mov eax, dword [esp + 0x2ac]
add esp, 8
mov dword [esp + 0x30], ebp
cmp eax, 0x1000
jbe 0x402ff6
push 8
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x290], ebp
cmp eax, ebp
je 0x402d45
mov ecx, eax
call fcn.004156c0
mov ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x402d49
mov dword [esp + 0x14], ebp
mov ecx, ebp
mov dword [esp + 0x290], 0xffffffff
call fcn.004156f0
test eax, eax
jne 0x402f63
cmp dword [esp + 0x29c], 0x99
jne 0x402da0
mov edx, dword [0x461cc4]
mov eax, dword [0x461cc8]
mov ecx, dword [0x461ccc]
mov dword [esp + 0x38], edx
mov edx, dword [0x461cd0]
mov dword [esp + 0x3c], eax
mov eax, dword [0x461cd4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2a4]
cmp eax, 0x1001
jne 0x402dd6
mov ecx, dword [0x46206c]
mov edx, dword [0x462070]
mov ebx, dword [0x462074]
mov ebp, dword [0x462078]
mov edi, dword [0x46207c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
jmp 0x402e10
cmp eax, 0x1002
jne 0x402e04
mov eax, dword [0x461c88]
mov ecx, dword [0x461c8c]
mov ebx, dword [0x461c90]
mov ebp, dword [0x461c94]
mov edi, dword [0x461c98]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
jmp 0x402e10
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x86]
push eax
mov word [esp + 0x88], dx
call fcn.0044ac90
mov edx, dword [esp + 0x58]
add esp, 0xc
push 1
push 0
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x5c]
sub esp, 0x14
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], edi
push esi
sub esp, 0x14
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x80]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x4c]
push str.ProviderMicrosoft.Base.PnP
mov dword [eax + 0x10], edx
call fcn.00415a50
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x7c]
mov ecx, eax
mov dword [esp + 0x18], 1
sub esi, ecx
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x402ea4
cmp word [esp + 0x7c], cx
jne 0x402f53
cmp dword [esp + 0x2a4], 0x1002
jne 0x402f53
push str.Check_NOT_PRESENT_Devices_n
call fcn.0043e2c0
mov ecx, dword [esp + 0x50]
add esp, 4
push 0
push 0
lea edx, [esp + 0x84]
push edx
mov edx, dword [esp + 0x5c]
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], edi
mov eax, dword [esp + 0x3c]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x4c]
push str.ProviderMicrosoft.Base.PnP
call fcn.00415a50
lea eax, [esp + 0x7c]
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x402f44
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
test ebp, ebp
je 0x402f77
mov ecx, ebp
call fcn.004156d0
push ebp
call fcn.0044ad0a
add esp, 4
xor ebp, ebp
mov ecx, dword [esp + 0x2b0]
mov edx, dword [esp + 0x29c]
mov eax, dword [esp + 0x20]
push ecx
push esi
push edx
lea ecx, [esp + 0x6c]
push ecx
inc eax
push eax
push edi
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.00401cc0
cmp eax, ebp
jne 0x402cf0
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp byte [ebx + 0x43c], 0
jne 0x402fc8
mov edx, dword [esp + 0x18]
push ebp
push edx
push 2
mov ecx, ebx
call fcn.00401c90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0044ac80
add esp, 0x280
ret 0x1c
mov ecx, dword [esp + 0x2ac]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x40]
push ecx
push eax
lea edx, [esp + 0x74]
push edx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
mov dword [esp + 0x18], eax
jmp 0x402f79