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

Disassembly:
push 0xffffffffffffffff
push 0x429c3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x2c], esi
mov ebx, 1
push str.Samsung_External_Hard_Drive
lea ecx, [esp + 0x1c]
mov dword [esp + 0x298], ebx
call fcn.00427942
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 2
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x294], 3
call sub.MFC42u.DLL_CString::CString_3
push 0x12
push esi
push esi
push 0x436808
mov byte [esp + 0x2a4], 4
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x24], edi
jne 0x41607e
mov esi, dword [esp + 0x29c]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x2c], ebx
jmp 0x416491
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0x1c
mov dword [esp + 0x1c], esi
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x4c]
mov byte [esp + 0x294], 5
push ecx
push esi
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x416462
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, 6
mov edx, dword [esp + 0x64]
push 0
lea eax, [esp + 0x38]
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
mov edx, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x8c]
push 0x104
push ecx
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov ecx, dword [esp + 0x2a4]
lea eax, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41643e
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], 0x1c
push edx
push esi
push 0x436808
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x20]
xor esi, esi
push eax
push ecx
push esi
lea edx, [esp + 0x78]
push esi
push edx
push edi
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov dword [esp + 0x38], esi
mov dword [esp + 0x68], 0x1c
call edi
test eax, eax
jne 0x41643a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41617f
test esi, esi
je 0x41616e
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [esi], ebx
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x78]
push esi
push ecx
push edx
call edi
test eax, eax
je 0x416158
test esi, esi
je 0x41643a
lea eax, [esi + 4]
lea ecx, [esp + 0x24]
push eax
call fcn.004276c0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x24]
push 0x26
push 1
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.MFC42u.DLL_AfxExtractSubString
mov eax, dword [esp + 0x24]
push 0x26
push 2
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42u.DLL_AfxExtractSubString
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_3
push 0x436d9c
mov byte [esp + 0x29c], bl
call ebp
add esp, 4
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x14]
push eax
push edx
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x29c], 7
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x298], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov ax, word [eax]
push eax
call fcn.00427a8c
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x48]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
dec eax
push eax
push edx
call sub.MFC42u.DLL_CString::Right
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x434384
push edx
mov byte [esp + 0x2a8], 8
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x48]
mov byte [esp + 0x298], bl
call sub.MFC42u.DLL_CString::CString
push 0x436d98
push 0x436d94
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Replace
push str.prod_
call ebp
add esp, 4
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x48]
push eax
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x29c], 9
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x298], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov ax, word [ecx]
lea ecx, [esp + 0x18]
push eax
call fcn.00427a8c
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::MakeUpper
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x50]
push eax
call sub.MFC42u.DLL_CString::Right
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x434384
push eax
mov byte [esp + 0x2a8], 0xa
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x4c]
mov byte [esp + 0x298], bl
call sub.MFC42u.DLL_CString::CString
push 0x5f
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find
mov esi, eax
test esi, esi
jl 0x41640d
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
mov edx, dword [ecx - 8]
cmp eax, edx
jge 0x4163f8
mov ax, word [ecx + eax*2]
lea ecx, [esp + 0x18]
push eax
call fcn.00427a8c
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x40]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
sub eax, 2
push eax
push edx
call sub.MFC42u.DLL_CString::Right
mov edi, eax
lea eax, [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2a0], 0xb
call sub.MFC42u.DLL_CString::Left
mov ecx, dword [edi]
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s__s_s
push ecx
mov byte [esp + 0x2ac], 0xc
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x38]
mov byte [esp + 0x298], 0xb
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x298], bl
call sub.MFC42u.DLL_CString::CString
push 0x5f
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find
mov esi, eax
test esi, esi
jge 0x416355
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x24]
push str._s__s
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 5
call sub.MFC42u.DLL_CString::CString
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x50]
inc esi
push edx
push esi
push edi
mov dword [esp + 0x38], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x4160c0
mov ebx, 1
pop ebp
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov esi, dword [esp + 0x29c]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x294], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x294], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x294], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2a0]
mov byte [esp + 0x294], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x28c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28c
ret