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

Disassembly:
push 0xffffffffffffffff
push 0x101a046e
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
test byte [0x103c3938], 1
mov esi, ecx
jne 0x1003d0b8
or dword [0x103c3938], 1
push 0
mov edx, str.com_base.dumpstate
mov dword [esp + 0x7c], 0
call fcn.10073350
add esp, 4
mov byte [0x103c3934], al
mov dword [esp + 0x78], 0xffffffff
cmp byte [0x103c3934], 0
je 0x1003d492
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
je 0x1003d0d3
cmp dword [eax + 0x30], 0
jne 0x1003d11b
mov eax, dword [eax + 8]
push eax
add esi, 0x20
push esi
push str.__s___p_:_invalid_com_port_handle___
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_host_windows_com_sentry.cpp
mov dword [esp + 0x28], 0x9d
mov byte [esp + 0x2c], 0xff
mov dword [esp + 0x30], str._ERROR:
mov dword [esp + 0x34], str.com_base::DumpState
call fcn.10017c90
add esp, 0xc
mov eax, 1
jmp 0x1003d494
mov eax, dword [0x103b3220]
test eax, eax
jne 0x1003d140
push 0x4c
call fcn.1016d7a5
add esp, 4
test eax, eax
je 0x1003d139
call fcn.10036030
jmp 0x1003d13b
xor eax, eax
mov dword [0x103b3220], eax
cmp dword [eax + 0x48], 0
mov ecx, dword [esi]
mov ecx, dword [ecx + 8]
je 0x1003d16a
mov eax, dword [eax + 0x30]
test eax, eax
je 0x1003d1f7
push 0x9f
push str.FlashToolLib_host_windows_com_sentry.cpp
lea edx, [esp + 0x34]
push edx
push ecx
call eax
jmp 0x1003d176
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommProperties]
test eax, eax
jne 0x1003d1f7
call fcn.10036090
cmp dword [eax + 0x48], 0
je 0x1003d19e
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1003d19a
push 0xa0
push str.FlashToolLib_host_windows_com_sentry.cpp
call eax
jmp 0x1003d1a4
xor eax, eax
jmp 0x1003d1a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
add esi, 0x20
push esi
push str.__s___p_:_GetCommProperties___Err__u____
lea edi, [esp + 0x28]
mov dword [esp + 0x28], str.FlashToolLib_host_windows_com_sentry.cpp
mov dword [esp + 0x2c], 0xa1
mov byte [esp + 0x30], 0xff
mov dword [esp + 0x34], str._ERROR:
mov dword [esp + 0x38], str.com_base::DumpState
call fcn.10017c90
add esp, 0x10
mov eax, 2
jmp 0x1003d494
mov ebp, dword [esi]
push 0xa3
mov edi, str.FlashToolLib_host_windows_com_sentry.cpp
push edi
lea ebx, [esi + 4]
call fcn.10036090
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.10036190
test eax, eax
jne 0x1003d28f
call fcn.10036090
cmp dword [eax + 0x48], 0
je 0x1003d23a
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1003d236
push 0xa4
push edi
call eax
jmp 0x1003d240
xor eax, eax
jmp 0x1003d240
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
add esi, 0x20
mov dword [esp + 0x20], edi
push esi
push str.__s___p_:_GetCommState___Err__u____
lea edi, [esp + 0x28]
mov dword [esp + 0x2c], 0xa5
mov byte [esp + 0x30], 0xff
mov dword [esp + 0x34], str._ERROR:
mov dword [esp + 0x38], str.com_base::DumpState
call fcn.10017c90
add esp, 0x10
mov eax, 3
jmp 0x1003d494
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esi]
push ecx
mov ecx, dword [eax + 8]
push edx
push ecx
lea ebp, [esi + 0x20]
mov dword [esp + 0x30], edi
push ebp
mov ebx, str._DEBUG:
push str.__s___p_:_dwMaxTxQueue__d___dwMaxRxQueue__d___dwMaxBaud_0x_x___dwProvSubType_0x_x___dwProvCapabilities_0x_x_
lea edi, [esp + 0x38]
mov dword [esp + 0x3c], 0xa8
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], str.com_base::DumpState
call fcn.10017c90
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
movzx ecx, word [esp + 0x76]
push edx
movzx edx, word [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 8]
push ecx
push eax
push ebp
push str.__s___p_:_dwSettableParams_0x_x___dwSettableBaud_0x_x___wSettableData_0x_x___wSettableStopParity_0x_x___dwCurrentTxQueue__d___dwCurrentRxQueue__d_
lea edi, [esp + 0x5c]
mov dword [esp + 0x5c], str.FlashToolLib_host_windows_com_sentry.cpp
mov dword [esp + 0x60], 0xa9
mov byte [esp + 0x64], 0
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], str.com_base::DumpState
call fcn.10017c90
movsx ecx, byte [esi + 0x1d]
movsx edx, byte [esi + 0x1c]
movsx eax, byte [esi + 0x1b]
add esp, 0x44
push ecx
movsx ecx, byte [esi + 0x1a]
push edx
movsx edx, byte [esi + 0x19]
push eax
movzx eax, byte [esi + 0x18]
push ecx
movzx ecx, byte [esi + 0x17]
push edx
movzx edx, byte [esi + 0x16]
push eax
movzx eax, word [esi + 0x14]
push ecx
movzx ecx, word [esi + 0x12]
push edx
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi]
push ecx
mov ecx, dword [eax + 8]
push edx
push ecx
push ebp
mov dword [esp + 0x4c], str.FlashToolLib_host_windows_com_sentry.cpp
mov dword [esp + 0x50], 0xaa
mov byte [esp + 0x54], 0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], str.com_base::DumpState
push str.__s___p_:_baud__d___XonLim__d___XoffLim__d___ByteSize__d___Parity__d___StopBits__d___XonChar__d___XoffChar__d___ErrorChar__d___EofChar__d___EvtChar___
lea edi, [esp + 0x50]
call fcn.10017c90
mov eax, dword [esi + 0xc]
mov edx, eax
shr edx, 6
and edx, 1
push edx
mov ecx, eax
shr ecx, 4
and ecx, 3
push ecx
mov edx, eax
shr edx, 3
and edx, 1
push edx
mov ecx, eax
mov edx, eax
shr ecx, 2
and ecx, 1
push ecx
shr edx, 1
and edx, 1
push edx
and eax, 1
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
push ebp
push str.__s___p_:_fBinary__d___fParity__d___fOutxCtsFlow__d___fOutxDsrFlow__d___fDtrControl__d___fDsrSensitivity__d_
lea edi, [esp + 0x74]
mov dword [esp + 0x74], str.FlashToolLib_host_windows_com_sentry.cpp
mov dword [esp + 0x78], 0xab
mov byte [esp + 0x7c], 0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], str.com_base::DumpState
call fcn.10017c90
mov eax, dword [esi + 0xc]
add esp, 0x5c
mov edx, eax
shr edx, 0xe
and edx, 1
push edx
mov ecx, eax
shr ecx, 0xc
and ecx, 3
push ecx
mov edx, eax
shr edx, 0xb
mov ecx, eax
and edx, 1
push edx
shr ecx, 0xa
and ecx, 1
push ecx
mov edx, eax
mov ecx, eax
shr edx, 9
and edx, 1
push edx
mov edx, dword [esi]
shr ecx, 8
shr eax, 7
and ecx, 1
push ecx
and eax, 1
push eax
mov eax, dword [edx + 8]
push eax
push ebp
push str.__s___p_:_fTXContinueOnXoff__d___fOutX__d___fInX__d___fErrorChar__d___fNull__d___fRtsControl__d___fAbortOnError__d_
lea edi, [esp + 0x40]
mov dword [esp + 0x40], str.FlashToolLib_host_windows_com_sentry.cpp
mov dword [esp + 0x44], 0xac
mov byte [esp + 0x48], 0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], str.com_base::DumpState
call fcn.10017c90
add esp, 0x28
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1016cb16
add esp, 0x68
ret