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

Disassembly:
push 0xffffffffffffffff
push 0x40ca70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov al, byte [esp + 0x5c]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov byte [esp + 0x3c], al
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov cl, byte [esp + 0x6c]
mov dword [esp + 0x64], ebx
mov byte [esp + 0x2c], cl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dl, byte [esp + 0x6c]
mov dword [esp + 0x50], ebx
mov byte [esp + 0x4c], dl
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
lea eax, [esp + 0x10]
mov byte [esp + 0x64], 2
push eax
push ebx
push ebx
push 2
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.SETUPAPI.dll_SetupGetInfFileListA]
mov ebp, dword [esp + 0x6c]
test eax, eax
je 0x40664f
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push ebx
push edx
push esi
push 2
push ebx
mov dword [esp + 0x80], esi
call dword [sym.imp.SETUPAPI.dll_SetupGetInfFileListA]
test eax, eax
je 0x406645
cmp byte [esi], 0
je 0x406645
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x3c]
push eax
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.DeviceList
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x74], 3
mov ecx, esp
mov dword [esp + 0x28], esp
push str.DESCRIPTION
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x78], 4
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Strings
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x7c], 5
mov ecx, esp
mov dword [esp + 0x38], esp
push str.SiUSBXp.sys
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x80], 6
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SourceDisksFiles
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x84], 7
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x410c88
call sub.MFC42.DLL_CString::CString
add esi, ebx
mov ecx, edi
push esi
push ebp
mov byte [esp + 0x8c], 2
call fcn.00406730
lea edx, [esp + 0x2c]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.DeviceList
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x74], 8
mov ecx, esp
mov dword [esp + 0x34], esp
push str.DESCRIPTION
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x78], 9
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Strings
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x7c], 0xa
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SiUSBXp.sys
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x80], 0xb
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SourceDisksFiles.x86
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x84], 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x410c88
call sub.MFC42.DLL_CString::CString
push esi
push ebp
mov ecx, edi
mov byte [esp + 0x8c], 2
call fcn.00406730
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x3c]
push ecx
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.DeviceList
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x74], 0xd
mov ecx, esp
mov dword [esp + 0x34], esp
push str.DESCRIPTION
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x78], 0xe
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Strings
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x7c], 0xf
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SiUSBXp.sys
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x80], 0x10
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SourceDisksFiles.amd64
call sub.MFC42.DLL_CString::CString
push ecx
mov byte [esp + 0x84], 0x11
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x410c88
call sub.MFC42.DLL_CString::CString
push esi
push ebp
mov ecx, edi
mov byte [esp + 0x8c], 2
call fcn.00406730
mov al, byte [esi]
inc ebx
test al, al
je 0x406633
mov eax, dword [esp + 0x6c]
inc ebx
mov cl, byte [ebx + eax - 1]
test cl, cl
jne 0x406626
mov edx, dword [esp + 0x6c]
mov esi, edx
cmp byte [ebx + edx], 0
jne 0x40643d
xor ebx, ebx
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x406665
mov ecx, dword [esp + 0x44]
sub ecx, eax
test ecx, 0xfffffffc
jne 0x406682
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40667b
mov edx, dword [esp + 0x34]
sub edx, eax
test edx, 0xfffffffc
jne 0x406682
mov ebp, 1
jmp 0x40669b
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
push ebp
mov ecx, edi
call fcn.00406900
mov ebp, eax
push ebx
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
add esp, 4
cmp esi, edi
mov byte [esp + 0x64], 0
je 0x4066c7
mov ecx, esi
call fcn.0040b9d8
add esi, 4
cmp esi, edi
jne 0x4066b5
mov esi, dword [esp + 0x30]
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
add esp, 4
cmp esi, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x64], 0xffffffff
mov edi, eax
je 0x406704
mov ecx, esi
call fcn.0040b9d8
add esi, 4
cmp esi, edi
jne 0x4066f2
mov esi, dword [esp + 0x40]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x60]
add esp, 4
mov eax, ebp
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10