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

Disassembly:
push 0xffffffffffffffff
push 0x41feb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
xor esi, esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], esi
call sub.MFC42.DLL_CStringArray::CStringArray
mov byte [esp + 0x78], 1
or ebx, 0xffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
inc esi
lea eax, [esp + 0x24]
push esi
push str.COM_d
push eax
mov byte [esp + 0x84], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x54]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CString::CString
cmp esi, 0xff
jl 0x4198ad
push edi
xor eax, eax
push 2
mov ecx, 6
lea edi, [esp + 0x60]
push eax
mov dword [esp + 0x60], 0x1c
push eax
rep stosd dword es:[edi], eax
push 0x42c7f8
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
lea eax, [esp + 0x58]
push eax
push 0
push edi
mov dword [esp + 0x38], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x419cfc
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 5
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x7c], 6
cmp eax, 0xff
ja 0x419cc4
push 0
push 0x104
push 0x104
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x60]
push eax
push ecx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
push 0
push 0x104
push 0x104
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push eax
push 0
lea edx, [esp + 0x68]
push 0xc
push edx
push edi
call esi
push 0
push 0x104
push 0x104
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
lea eax, [esp + 0x68]
push 4
push eax
push edi
call esi
push 0
push 0x104
push 0x104
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
lea ecx, [esp + 0x68]
push 1
push ecx
push edi
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 4
push 0x28
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [eax]
push str._COM
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0x34]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x419c6c
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
call fcn.0041ec02
push 0x28
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 7
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 8
call fcn.0041ec32
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 7
call sub.MFC42.DLL_CString::CString
push 0x29
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x3c]
push eax
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 9
call fcn.0041ec32
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 7
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x40]
push 3
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0xa
push 0
push eax
call dword [sym.imp.MSVCRT.dll_strtoul]
mov esi, eax
add esp, 0xc
lea ecx, [esp + 0x40]
dec esi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push str.USBVID_34BFPID_1004REV_0100MI_01
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x419c35
mov edx, dword [esp + 0x18]
push str.USBVID_34BFPID_1005REV_0100MI_01
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x419c35
mov eax, dword [esp + 0x18]
push str.USBVID_34BFPID_1004REV_0100MI_03
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x419c1d
mov ecx, dword [esp + 0x18]
push str.USBVID_34BFPID_1005REV_0100MI_03
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x419c1d
mov edx, dword [esp + 0x18]
push str.USBVID_34BFPID_FF0AREV_0100MI_00
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x419c06
mov edx, dword [esp + 0x18]
push str.USBVID_34BFPID_FF0AREV_0100MI_02
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x419bef
lea eax, [esi + 1]
lea ecx, [esp + 0x14]
push eax
push str.STC_CDC2_UART2__COM_d__2CDCHID
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x419c4d
mov edx, dword [esp + 0x18]
push str.USBVID_34BFPID_FF02REV_0100
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x419c16
lea eax, [esi + 1]
lea ecx, [esp + 0x14]
push eax
push str.STC_CDC1_UART1__COM_d__2CDCHID
push ecx
jmp 0x419c43
cmp ebx, 0xffffffff
jne 0x419c4d
jmp 0x419c4b
lea edx, [esi + 1]
lea eax, [esp + 0x14]
push edx
push str.STC_USB_CDC2_UART2__COM_d__Link
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x419c4d
lea ecx, [esi + 1]
lea edx, [esp + 0x14]
push ecx
push str.STC_USB_CDC1_UART1__COM_d__Link
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ebx, esi
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x14]
push eax
lea ecx, [ecx + esi*4]
call fcn.0041ec32
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x58]
inc eax
push edx
push eax
push edi
mov dword [esp + 0x38], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x419940
jmp 0x419cfc
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 1
call sub.MFC42.DLL_CString::CString
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp ebx, 0xffffffff
jne 0x419d20
push 0
push str.Main_COMx
push str.Settings
mov ecx, 0x43a458
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov ebx, eax
mov eax, dword [ebp + 0x170]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x146
push eax
call esi
test eax, eax
je 0x419d64
mov ecx, dword [ebp + 0x170]
push 0
push 0
push 0x144
push ecx
call esi
mov edx, dword [ebp + 0x170]
push 0
push 0
push 0x146
push edx
call esi
test eax, eax
jne 0x419d3c
xor edi, edi
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x170]
mov eax, dword [edi + eax]
push eax
push 0
push 0x143
push ecx
call esi
add edi, 4
cmp edi, 0x3fc
jl 0x419d66
lea edx, [esp + 0x20]
push 0x1a
push edx
mov ecx, ebp
call fcn.0041c560
mov eax, dword [esp + 0x20]
mov byte [esp + 0x7c], 0xa
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x419db5
push str.STC_USB_Writer
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_1
mov edi, 1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
push 0
push 0x1004
push 0x34bf
push edi
lea ecx, [ebp + 0x790]
mov byte [esp + 0x8c], 0xb
call fcn.00411770
cmp eax, 0xffffffff
je 0x419e4c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea ecx, [esp + 0x28]
push eax
push str.STC_USB_HID_UART1__Link_d_
push ecx
inc edi
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
mov eax, dword [ebp + 0x170]
add esp, 0xc
push edx
push 0
push 0x143
push eax
call esi
mov ecx, dword [ebp + 0x170]
mov ebx, eax
push 0x34bf1004
push ebx
push 0x151
push ecx
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_CString::CString
cmp edi, 0x100
jl 0x419dba
jmp 0x419e5a
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x1c]
push 0
push 0x1005
push 0x34bf
push edx
lea ecx, [ebp + 0x790]
mov byte [esp + 0x8c], 0xc
call fcn.00411770
cmp eax, 0xffffffff
je 0x419f00
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
inc edi
push eax
lea eax, [esp + 0x2c]
push str.STC_USB_HID_UART1__Link_d_
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x170]
add esp, 0xc
push ecx
push 0
push 0x143
push edx
call esi
mov ebx, eax
mov eax, dword [ebp + 0x170]
push 0x34bf1005
push ebx
push 0x151
push eax
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x100
mov dword [esp + 0x1c], eax
jl 0x419e62
jmp 0x419f0e
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_CString::CString
mov edi, 1
push 0
push 0xff09
push 0x34bf
push edi
lea ecx, [ebp + 0x790]
call fcn.00411770
cmp eax, 0xffffffff
je 0x419f7e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [esp + 0x34]
push str.STC_USB_HID_UART1__2CDCHID_d_
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x3c]
mov eax, dword [ebp + 0x170]
add esp, 0xc
push edx
push 0
push 0x143
push eax
call esi
mov ecx, dword [ebp + 0x170]
mov ebx, eax
push 0x34bfff09
push ebx
push 0x151
push ecx
call esi
inc edi
cmp edi, 0x100
jl 0x419f13
mov edi, 1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
push 0x4312
push 0x5354
push edi
lea ecx, [ebp + 0x790]
mov byte [esp + 0x88], 0xd
call fcn.00411df0
cmp eax, 0xffffffff
je 0x41a02c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [esp + 0x2c]
push str.__USB_d_
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x40]
push eax
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 0x170]
push 0
push 0x143
push eax
call esi
lea ecx, [esp + 0x40]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x170]
push 0x53544312
push ebx
push 0x151
push ecx
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_CString::CString
inc edi
cmp edi, 0x100
jl 0x419f83
jmp 0x41a03a
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_CString::CString
mov edi, 1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
push 0
push 0x4313
push 0x5354
push edi
lea ecx, [ebp + 0x790]
mov byte [esp + 0x8c], 0xe
call fcn.00411770
cmp eax, 0xffffffff
je 0x41a0ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea edx, [esp + 0x28]
push eax
push str.__HID_d_
push edx
inc edi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x40]
push eax
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 0x170]
push 0
push 0x143
push eax
call esi
lea ecx, [esp + 0x40]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x170]
push 0x53544313
push ebx
push 0x151
push ecx
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_CString::CString
cmp edi, 0x100
jl 0x41a03f
jmp 0x41a0fa
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x1c]
push 0
push 0x1001
push 0x34bf
push edx
lea ecx, [ebp + 0x790]
mov byte [esp + 0x8c], 0xf
call fcn.00411770
cmp eax, 0xffffffff
je 0x41a1bf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
inc edi
push eax
lea eax, [esp + 0x2c]
push str.__HID_d_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
lea eax, [esp + 0x40]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [ebp + 0x170]
push eax
push 0
push 0x143
push ecx
call esi
lea ecx, [esp + 0x40]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp + 0x170]
push 0x34bf1001
push ebx
push 0x151
push edx
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x100
mov dword [esp + 0x1c], eax
jl 0x41a102
jmp 0x41a1cd
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_CString::CString
cmp ebx, 0xffffffff
pop edi
je 0x41a1e9
mov eax, dword [ebp + 0x170]
push 0
push 0
push 0x146
push eax
call esi
cmp ebx, eax
jl 0x41a1eb
xor ebx, ebx
mov ecx, dword [ebp + 0x170]
push 0
push ebx
push 0x14e
push ecx
call esi
lea edx, [esp + 0x3c]
push 0xe
push edx
mov ecx, ebp
call fcn.0041c560
mov eax, dword [eax]
push 0x435c08
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x41a265
lea eax, [esp + 0x3c]
push 0xf
push eax
mov ecx, ebp
call fcn.0041c560
mov eax, dword [eax]
push 0
push 0
push eax
call dword [sym.imp.MSVCRT.dll_strtoul]
mov ecx, dword [ebp + 0x170]
add esp, 0xc
push 0
push eax
push 0x14e
push ecx
call esi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 0
call fcn.0041ee5a
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x70]
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret