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

Disassembly:
push 0xffffffffffffffff
push 0x4a6b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, dword [esp + 0x74]
xor esi, esi
push 0x12
push esi
push esi
mov dword [esp + 0x28], ecx
push edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406341
mov eax, 0x1c
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], eax
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x2c]
mov dword [esp + 0x6c], esi
push eax
push esi
push edi
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x406329
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0
lea edx, [esp + 0x3c]
push 0
inc esi
push edx
push ebx
mov dword [esp + 0x44], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x40630c
lea ecx, [esp + 0x4c]
mov dword [edi], 5
mov edx, dword [esp + 0x1c]
push ecx
push 0
push edx
lea eax, [esp + 0x3c]
push edi
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
jne 0x4061ad
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x40630c
push 0x4e5d64
lea ecx, [esp + 0x18]
lea esi, [edi + 4]
call fcn.004a57ee
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push str.rev_
push edx
mov byte [esp + 0x7c], 1
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 2
call fcn.004a5776
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x7c]
push eax
push esi
call ebp
add esp, 8
test eax, eax
je 0x4062f0
mov ecx, dword [esp + 0x80]
push ecx
push esi
call ebp
add esp, 8
test eax, eax
je 0x4062f0
mov edx, dword [esp + 0x84]
push edx
push esi
call ebp
add esp, 8
test eax, eax
jne 0x40625d
mov eax, dword [esp + 0x88]
push eax
push esi
call ebp
add esp, 8
test eax, eax
jne 0x40625d
mov ecx, dword [esp + 0x14]
push ecx
push esi
call ebp
add esp, 8
test eax, eax
je 0x4062f0
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x20]
push edx
call fcn.00406360
movsx eax, al
push eax
lea ecx, [esp + 0x1c]
push str.._C:
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x2c]
add esp, 0xc
cmp dword [edx + 0x3cc8], 4
jb 0x406294
lea eax, [esp + 0x18]
jmp 0x4062a3
push esi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
or dword [esp + 0x10], 1
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov al, byte [esp + 0x10]
test al, 1
je 0x4062db
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
and al, 0xfe
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CString::CString
cmp esi, 0xffffffff
je 0x4062f0
push esi
call fcn.004155a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 0
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x30]
push eax
push esi
push ecx
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x406147
pop ebp
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0x18