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

Disassembly:
push 0xffffffffffffffff
push 0x45e86e
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b038]
xor eax, esp
push eax
lea eax, [esp + 0x494]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x4ac]
mov eax, dword [esp + 0x4b4]
mov ebp, ecx
push ebx
xor esi, esi
push str.GetDeviceProperty___s__n
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], esi
call fcn.0043e2c0
add esp, 8
cmp dword [ebp + 0x438], esi
jne 0x4046fa
xor eax, eax
jmp 0x404ace
cmp byte [ebp + 0x43c], 0
jne 0x404710
push 0
push 0
push 1
mov ecx, ebp
call fcn.00401c90
test byte [esp + 0x4b8], 2
mov eax, 4
je 0x404724
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 + 0x2c], edi
cmp edi, 0xffffffff
je 0x404ab7
mov edx, dword [esp + 0x4b8]
mov eax, dword [esp + 0x4a8]
push edx
push ebx
push eax
lea ecx, [esp + 0x70]
push ecx
push 0
push edi
mov ecx, ebp
mov dword [esp + 0x40], esi
call fcn.00401cc0
test eax, eax
je 0x404ab0
cmp eax, 1
jne 0x404a7c
push ebx
push str.FOUND___s__n
call fcn.0043e2c0
mov esi, dword [esp + 0x4b8]
add esp, 8
mov dword [esp + 0x30], 0
cmp esi, 0x1000
jbe 0x404af8
push 8
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x49c], ebx
cmp eax, ebx
je 0x4047d0
mov ecx, eax
call fcn.004156c0
mov ebx, eax
mov dword [esp + 0x18], eax
jmp 0x4047d4
mov dword [esp + 0x18], ebx
mov ecx, ebx
mov dword [esp + 0x49c], 0xffffffff
call fcn.004156f0
test eax, eax
jne 0x404a64
cmp dword [esp + 0x4a8], 0x99
jne 0x40482b
mov edx, dword [0x461cc4]
mov eax, dword [0x461cc8]
mov ecx, dword [0x461ccc]
mov dword [esp + 0x3c], edx
mov edx, dword [0x461cd0]
mov dword [esp + 0x40], eax
mov eax, dword [0x461cd4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
cmp esi, 0x1001
jne 0x40485b
mov ecx, dword [0x46206c]
mov edx, dword [0x462070]
mov ebp, dword [0x462074]
mov edi, dword [0x462078]
mov esi, dword [0x46207c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jmp 0x4048d2
cmp esi, 0x1002
jne 0x40488a
mov eax, dword [0x461c88]
mov ecx, dword [0x461c8c]
mov ebp, dword [0x461c90]
mov edi, dword [0x461c94]
mov esi, dword [0x461c98]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
jmp 0x4048d2
cmp esi, 0x1003
jne 0x4048c6
push str.Get_child_n
call fcn.0043e2c0
mov edx, dword [0x461c9c]
mov eax, dword [0x461ca0]
mov ebp, dword [0x461ca4]
mov edi, dword [0x461ca8]
mov esi, dword [0x461cac]
add esp, 4
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
jmp 0x4048d2
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x8a]
push edx
mov word [esp + 0x8c], cx
call fcn.0044ac90
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
add esp, 0xc
push 1
lea eax, [esp + 0x24]
push eax
push 0
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov eax, dword [esp + 0x3c]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x80]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
push str.ProviderMicrosoft.Base.PnP
mov ecx, ebx
mov dword [esp + 0x5c], 0
call fcn.00415a50
mov edx, dword [esp + 0x20]
push edx
push str.nNumOfChild____d__n
call fcn.0043e2c0
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
jle 0x404a54
mov dword [esp + 0x14], 0
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x58]
xor eax, eax
lea edx, [esp + 0x88]
push edx
mov edx, dword [esp + 0x60]
sub esp, 0x14
mov word [esp + 0xa0], ax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov eax, dword [esp + 0x3c]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x80]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
push str.ProviderMicrosoft.Base.PnP
mov ecx, ebx
call fcn.00415a50
lea edx, [esp + 0x80]
push edx
push str.__Children____s__n
call fcn.0043e2c0
push 0x208
call fcn.0044b473
lea edx, [esp + 0x8c]
mov ecx, eax
mov ebx, edx
add esp, 0xc
sub ecx, ebx
movzx ebx, word [edx]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x404a20
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push 1
push eax
call fcn.004075d0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jl 0x404982
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], 1
test ebx, ebx
je 0x404a78
mov ecx, ebx
call fcn.004156d0
push ebx
call fcn.0044ad0a
add esp, 4
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4b8]
mov edx, dword [esp + 0x4a8]
mov eax, dword [esp + 0x28]
push ecx
push ebx
push edx
lea ecx, [esp + 0x70]
push ecx
inc eax
push eax
push edi
mov ecx, ebp
mov dword [esp + 0x40], eax
call fcn.00401cc0
test eax, eax
jne 0x404774
mov esi, dword [esp + 0x14]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp byte [ebp + 0x43c], 0
jne 0x404acc
push 0
push esi
push 2
mov ecx, ebp
call fcn.00401c90
mov eax, esi
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x47c]
xor ecx, esp
call fcn.0044ac80
add esp, 0x48c
ret 0x18
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x292]
push ecx
mov word [esp + 0x294], ax
call fcn.0044ac90
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push 0x104
lea eax, [esp + 0x290]
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
lea edx, [esp + 0x78]
push edx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
push 0x208
mov dword [esp + 0x18], eax
call fcn.0044b473
lea ecx, [esp + 0x28c]
mov edx, eax
mov esi, ecx
add esp, 4
sub edx, esi
lea ebx, [ebx]
movzx esi, word [ecx]
mov word [edx + ecx], si
add ecx, 2
test si, si
jne 0x404b60
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push 1
push eax
call fcn.004075d0
jmp 0x404a7c