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

Disassembly:
push 0xffffffffffffffff
push 0x43c851
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push ebp
mov dword [esp + 8], ecx
push esi
push edi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov eax, dword [esp + 0x124]
xor ebp, ebp
push 0x12
push ebp
push ebp
push eax
mov dword [esp + 0x12c], ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4124f5
lea ecx, [esp + 0x34]
mov dword [esp + 0x11c], eax
call fcn.0043adda
or eax, ebx
jmp 0x412909
xor esi, esi
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x124]
lea ecx, [esp + 0x78]
push ecx
push esi
push edx
mov eax, 0x1c
push ebp
push ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x70], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov edi, eax
lea eax, [esp + 0x5c]
push eax
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp edi, ebp
je 0x4126f2
cmp eax, ebp
je 0x4126f2
lea ecx, [esp + 0x24]
push ebp
push ecx
push ebp
lea edx, [esp + 0x84]
push ebp
mov dword [esp + 0x34], ebp
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push edx
push ebx
call ebp
mov edi, dword [esp + 0x24]
push 0x210
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x9c]
push edi
lea edx, [esp + 0x84]
push ecx
push edx
push ebx
mov dword [esp + 0xac], 5
call ebp
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
mov edi, eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x4c], ecx
mov cl, byte [esp + 0xb0]
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xac]
lea edx, [esp + 0x48]
mov byte [esp + 0x58], cl
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], eax
mov byte [esp + 0x5d], 0
call fcn.0043abe8
mov ecx, 0x44bf70
mov byte [esp + 0x11c], 1
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 0x20]
push 0
push eax
mov ecx, 0x44bf70
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x4126d6
lea ecx, [esp + 0x98]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x2c]
lea ebp, [esi + 0x80]
push edx
push 0x80
lea eax, [esp + 0x30]
push ebp
push eax
lea ecx, [esp + 0x6c]
push 0xc
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x41267b
lea edx, [esp + 0x2c]
lea eax, [esp + 0x28]
push edx
push 0x80
push ebp
push eax
lea ecx, [esp + 0x6c]
push 0
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x41267b
push 0x448e54
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x2c]
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push edx
lea eax, [esi + 0x100]
push 0x80
lea ecx, [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x6c]
push 0xe
push edx
push ebx
call ebp
lea eax, [esp + 0x2c]
lea ecx, [esi + 0x180]
push eax
push 0x80
lea edx, [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0x6c]
push 9
push eax
push ebx
call ebp
test edi, edi
je 0x4126d6
mov ecx, dword [esp + 0x3c]
push esi
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
jmp 0x4126dd
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x11c], 0
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x14]
xor ebp, ebp
inc esi
cmp edi, ebp
mov dword [esp + 0x14], esi
jne 0x4124fb
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esp + 0x10]
mov byte [esp + 0x11c], 2
mov dword [esp + 0x1c], ebp
lea edx, [esi + 0x5078]
add esi, 0x50f8
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x3c]
xor ebp, ebp
test eax, eax
jle 0x412763
lea edi, [esi - 0xa0]
mov eax, edi
cmp dword [eax], 0
je 0x41275a
mov eax, dword [esp + 0x38]
mov ecx, dword [edi]
mov eax, dword [eax + ebp*4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x412836
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
jl 0x41273a
mov ecx, dword [esi - 0xa0]
xor eax, eax
cmp ecx, eax
je 0x412836
mov ecx, dword [esi]
mov edi, dword [esp + 0x10]
cmp ecx, eax
je 0x4127a3
cmp dword [edi + 0x4134], eax
je 0x4127a3
cmp dword [edi + 0x411c], eax
je 0x4127a3
cmp dword [edi + 0x4138], 1
jne 0x4127a3
mov dword [esi], eax
mov edx, dword [esi - 0x105c]
mov dword [edx + 4], eax
jmp 0x4127c7
mov ecx, dword [esi + 0x20]
cmp ecx, eax
je 0x4127c7
cmp dword [edi + 0x411c], eax
je 0x4127c7
cmp dword [edi + 0x4138], 2
jne 0x4127c7
mov dword [esi + 0x20], eax
mov ecx, dword [esi - 0x101c]
mov dword [ecx + 4], eax
mov edx, dword [esi - 0xa0]
lea eax, [esp + 0x18]
push edx
push 0x448e48
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, edi
call fcn.00416230
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x44a754
call fcn.0043abe8
mov eax, dword [esp + 0x20]
mov ecx, edi
push eax
call fcn.00416380
mov ecx, dword [esi + 0x2c4]
push ecx
mov ecx, edi
call fcn.0041a9e0
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esi - 0x10fc], eax
mov dword [esi - 0xa0], eax
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
inc eax
add esi, 4
add edx, 8
cmp eax, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jl 0x41272a
mov eax, dword [esp + 0x3c]
xor ebp, ebp
test eax, eax
jle 0x4128db
mov eax, dword [esp + 0x10]
xor edi, edi
lea esi, [eax + 0x5058]
mov eax, dword [esi]
test eax, eax
je 0x412885
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + ebp*4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4128d2
inc edi
add esi, 4
cmp edi, 8
jl 0x41286c
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + ebp*4]
push eax
call fcn.004114e0
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x18]
mov ecx, dword [eax + ebp*4]
push ecx
push 0x448e40
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x14]
call fcn.00416230
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
jl 0x412860
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea ecx, [esp + 0x18]
mov byte [esp + 0x11c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x11c], 0xffffffff
call fcn.0043adda
xor eax, eax
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x110
ret 4