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

Disassembly:
push 0xffffffffffffffff
push 0x46786e
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48807c]
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.004454c0
add esp, 8
cmp dword [ebp + 0x438], esi
jne 0x404eba
xor eax, eax
jmp 0x40528e
cmp byte [ebp + 0x444], 0
jne 0x404ed0
push 0
push 0
push 1
mov ecx, ebp
call fcn.0040bbd0
test byte [esp + 0x4b8], 2
mov eax, 4
je 0x404ee4
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 0x405277
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.00401fe0
test eax, eax
je 0x405270
cmp eax, 1
jne 0x40523c
push ebx
push str.FOUND___s__n
call fcn.004454c0
mov esi, dword [esp + 0x4b8]
add esp, 8
mov dword [esp + 0x30], 0
cmp esi, 0x1000
jbe 0x4052b8
push 8
call fcn.004534f0
add esp, 4
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x49c], ebx
cmp eax, ebx
je 0x404f90
mov ecx, eax
call fcn.004186a0
mov ebx, eax
mov dword [esp + 0x18], eax
jmp 0x404f94
mov dword [esp + 0x18], ebx
mov ecx, ebx
mov dword [esp + 0x49c], 0xffffffff
call fcn.004186d0
test eax, eax
jne 0x405224
cmp dword [esp + 0x4a8], 0x99
jne 0x404feb
mov edx, dword [0x46adcc]
mov eax, dword [0x46add0]
mov ecx, dword [0x46add4]
mov dword [esp + 0x3c], edx
mov edx, dword [0x46add8]
mov dword [esp + 0x40], eax
mov eax, dword [0x46addc]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
cmp esi, 0x1001
jne 0x40501b
mov ecx, dword [0x46b174]
mov edx, dword [0x46b178]
mov ebp, dword [0x46b17c]
mov edi, dword [0x46b180]
mov esi, dword [0x46b184]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jmp 0x405092
cmp esi, 0x1002
jne 0x40504a
mov eax, dword [0x46abc4]
mov ecx, dword [0x46abc8]
mov ebp, dword [0x46abcc]
mov edi, dword [0x46abd0]
mov esi, dword [0x46abd4]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
jmp 0x405092
cmp esi, 0x1003
jne 0x405086
push str.Get_child_n
call fcn.004454c0
mov edx, dword [0x46ada4]
mov eax, dword [0x46ada8]
mov ebp, dword [0x46adac]
mov edi, dword [0x46adb0]
mov esi, dword [0x46adb4]
add esp, 4
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
jmp 0x405092
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.00453450
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.00418a30
mov edx, dword [esp + 0x20]
push edx
push str.nNumOfChild____d__n
call fcn.004454c0
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
jle 0x405214
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.00418a30
lea edx, [esp + 0x80]
push edx
push str.__Children____s__n
call fcn.004454c0
push 0x208
call fcn.00453c61
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 0x4051e0
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push 1
push eax
call fcn.00403750
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jl 0x405142
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], 1
test ebx, ebx
je 0x405238
mov ecx, ebx
call fcn.004186b0
push ebx
call fcn.004534ca
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.00401fe0
test eax, eax
jne 0x404f34
mov esi, dword [esp + 0x14]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp byte [ebp + 0x444], 0
jne 0x40528c
push 0
push esi
push 2
mov ecx, ebp
call fcn.0040bbd0
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.00453432
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.00453450
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.00453c61
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 0x405320
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push 1
push eax
call fcn.00403750
jmp 0x40523c