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

Disassembly:
push 0xffffffffffffffff
push 0x46779e
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x284], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48807c]
xor eax, esp
push eax
lea eax, [esp + 0x29c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2b4]
mov eax, dword [esp + 0x2bc]
mov ebp, ecx
push esi
xor ebx, ebx
push str.GetDeviceProperty___s__n
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebx
call fcn.004454c0
add esp, 8
cmp dword [ebp + 0x438], ebx
jne 0x4030d6
xor eax, eax
jmp 0x403581
cmp byte [ebp + 0x444], bl
jne 0x4030eb
push 0
push 0
push 1
mov ecx, ebp
call fcn.0040bbd0
test byte [esp + 0x2c4], 2
mov eax, 4
je 0x4030ff
mov eax, 6
mov ecx, dword [ebp + 0x438]
push 0
push 0
push 0
push eax
push 0
push 0
push 0
call ecx
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, 0xffffffff
je 0x40356a
mov edx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2b0]
push edx
push esi
push eax
lea ecx, [esp + 0x80]
push ecx
xor ebx, ebx
push ebx
push edi
mov ecx, ebp
call fcn.00401fe0
test eax, eax
je 0x40355f
nop
cmp eax, 1
jne 0x4031a4
push esi
push str.FOUND___s__n
call fcn.004454c0
mov eax, dword [esp + 0x2c0]
add esp, 8
mov dword [esp + 0x2c], 0
cmp eax, 0x1000
ja 0x4031d0
mov ecx, dword [esp + 0x2c0]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x3c]
push ecx
push eax
lea edx, [esp + 0x88]
push edx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2b0]
push eax
push esi
push ecx
lea edx, [esp + 0x80]
push edx
inc ebx
push ebx
push edi
mov ecx, ebp
call fcn.00401fe0
test eax, eax
jne 0x403150
jmp 0x40355f
push 8
call fcn.004534f0
add esp, 4
mov dword [esp + 0x28], eax
xor ecx, ecx
mov dword [esp + 0x2a4], ecx
cmp eax, ecx
je 0x4031fa
mov ecx, eax
call fcn.004186a0
mov ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x403200
mov dword [esp + 0x14], ecx
mov ebx, ecx
mov ecx, ebx
mov dword [esp + 0x2a4], 0xffffffff
call fcn.004186d0
test eax, eax
jne 0x40354b
cmp dword [esp + 0x2b0], 0x99
jne 0x403257
mov eax, dword [0x46adcc]
mov ecx, dword [0x46add0]
mov edx, dword [0x46add4]
mov dword [esp + 0x38], eax
mov eax, dword [0x46add8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x46addc]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x2b8]
cmp eax, 0x1001
jne 0x40328c
mov edx, dword [0x46b174]
mov eax, dword [0x46b178]
mov ebx, dword [0x46b17c]
mov ebp, dword [0x46b180]
mov edi, dword [0x46b184]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
jmp 0x4032c7
cmp eax, 0x1002
jne 0x4032bb
mov ecx, dword [0x46abc4]
mov edx, dword [0x46abc8]
mov ebx, dword [0x46abcc]
mov ebp, dword [0x46abd0]
mov edi, dword [0x46abd4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
jmp 0x4032c7
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x9a]
push ecx
mov word [esp + 0x9c], ax
call fcn.00453450
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp dword [edx + 0x440], 0
je 0x4033b1
push str.____Try_KxSetupDiGetDevicePropertyW_n
call fcn.004454c0
mov edx, dword [0x46abcc]
mov eax, dword [0x46abc4]
mov ecx, dword [0x46abc8]
add esp, 4
push 0
mov dword [esp + 0x64], eax
mov eax, dword [0x46abd0]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], ecx
mov ecx, dword [0x46abd4]
lea edx, [esp + 0x2c]
push edx
push 0x208
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x74]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x8c]
push eax
mov eax, dword [edx + 0x440]
push ecx
mov dword [esp + 0x48], 0
call eax
test eax, eax
je 0x4033be
lea ecx, [esp + 0x90]
push ecx
push str.____DEVPKEY_Device_Parent:___s__n
call fcn.004454c0
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 8
sub edx, ecx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4033a0
jmp 0x4033be
push str.____KxSetupDiGetDevicePropertyW_function_does_not_exist._n
call fcn.004454c0
add esp, 4
cmp word [esp + 0x90], 0
jne 0x403474
push str.____Try_CUSTOM_SPDRP_DEVICE_PARENT_using_Function_Discovery._n
call fcn.004454c0
mov ecx, dword [esp + 0x50]
add esp, 4
push 1
push 0
lea edx, [esp + 0x98]
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
push esi
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.00418a30
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x90]
mov edx, eax
sub ecx, edx
lea esp, [esp]
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x403450
lea eax, [esp + 0x90]
push eax
push str.____CUSTOM_SPDRP_DEVICE_PARENT:___s__n
call fcn.004454c0
add esp, 8
cmp word [esp + 0x90], 0
mov dword [esp + 0x24], 1
jne 0x40353f
cmp dword [esp + 0x2b8], 0x1002
jne 0x40353f
push str.Check_NOT_PRESENT_Devices_n
call fcn.004454c0
mov edx, dword [esp + 0x50]
add esp, 4
push 0
push 0
lea ecx, [esp + 0x98]
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.00418a30
lea eax, [esp + 0x90]
push eax
push 0x46bbe0
call fcn.004454c0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x98]
mov edx, eax
add esp, 8
sub ecx, edx
lea ecx, [ecx]
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x403530
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x40355f
mov ecx, ebx
call fcn.004186b0
push ebx
call fcn.004534ca
add esp, 4
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ebx, dword [esp + 0x24]
cmp byte [ebp + 0x444], 0
jne 0x40357f
push 0
push ebx
push 2
mov ecx, ebp
call fcn.0040bbd0
mov eax, ebx
mov ecx, dword [esp + 0x29c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.00453432
add esp, 0x294
ret 0x1c