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

Disassembly:
push 0xffffffffffffffff
push 0x101a042e
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
test byte [0x103c3930], 1
jne 0x1003fbde
or dword [0x103c3930], 1
push 0
mov edx, str.com_util.dumpstate
mov dword [esp + 0x94], 0
call fcn.10073350
add esp, 4
mov byte [0x103c392c], al
mov dword [esp + 0x90], 0xffffffff
cmp byte [0x103c392c], 0
je 0x1003ff80
mov eax, dword [0x103b3220]
test eax, eax
jne 0x1003fc10
push 0x4c
call fcn.1016d7a5
add esp, 4
test eax, eax
je 0x1003fc09
call fcn.10036030
jmp 0x1003fc0b
xor eax, eax
mov dword [0x103b3220], eax
cmp dword [eax + 0x48], 0
je 0x1003fc35
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x1003fcd5
push 0xe5
push str.FlashToolLib_host_windows_com_util.cpp
lea eax, [esp + 0x4c]
push eax
push esi
call ecx
jmp 0x1003fc41
lea ecx, [esp + 0x44]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommProperties]
test eax, eax
mov eax, dword [0x103b3220]
jne 0x1003fcd5
test eax, eax
jne 0x1003fc6e
push 0x4c
call fcn.1016d7a5
add esp, 4
test eax, eax
je 0x1003fc67
call fcn.10036030
jmp 0x1003fc69
xor eax, eax
mov dword [0x103b3220], eax
cmp dword [eax + 0x48], 0
je 0x1003fc8d
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1003fc89
push 0xe6
push str.FlashToolLib_host_windows_com_util.cpp
call eax
jmp 0x1003fc93
xor eax, eax
jmp 0x1003fc93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.__p_:_GetCommProperties___Err__u____
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_host_windows_com_util.cpp
mov dword [esp + 0x24], 0xe6
mov byte [esp + 0x28], 0xff
mov dword [esp + 0x2c], str._ERROR:
mov dword [esp + 0x30], str.DumpState
call fcn.10017c90
add esp, 0xc
mov eax, 2
jmp 0x1003ff82
test eax, eax
jne 0x1003fcf5
push 0x4c
call fcn.1016d7a5
add esp, 4
test eax, eax
je 0x1003fcee
call fcn.10036030
jmp 0x1003fcf0
xor eax, eax
mov dword [0x103b3220], eax
cmp dword [eax + 0x48], 0
je 0x1003fd1a
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1003fd96
push 0xe8
push str.FlashToolLib_host_windows_com_util.cpp
lea edx, [esp + 0x30]
push edx
push esi
call eax
jmp 0x1003fd26
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
jne 0x1003fd96
call fcn.10036090
cmp dword [eax + 0x48], 0
je 0x1003fd4e
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1003fd4a
push 0xe9
push str.FlashToolLib_host_windows_com_util.cpp
call eax
jmp 0x1003fd54
xor eax, eax
jmp 0x1003fd54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.__p_:_GetCommState___Err__u____
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_host_windows_com_util.cpp
mov dword [esp + 0x24], 0xe9
mov byte [esp + 0x28], 0xff
mov dword [esp + 0x2c], str._ERROR:
mov dword [esp + 0x30], str.DumpState
call fcn.10017c90
add esp, 0xc
mov eax, 3
jmp 0x1003ff82
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
push esi
mov ebp, str._DEBUG:
mov ebx, str.DumpState
push str.__p_:_dwMaxTxQueue__d___dwMaxRxQueue__d___dwMaxBaud_0x_x___dwProvSubType_0x_x___dwProvCapabilities_0x_x_
lea edi, [esp + 0x30]
mov dword [esp + 0x30], str.FlashToolLib_host_windows_com_util.cpp
mov dword [esp + 0x34], 0xed
mov byte [esp + 0x38], 0
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebx
call fcn.10017c90
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
movzx edx, word [esp + 0x8a]
add esp, 0x1c
push eax
movzx eax, word [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x70]
push eax
push ecx
push edx
push esi
push str.__p_:_dwSettableParams_0x_x___dwSettableBaud_0x_x___wSettableData_0x_x___wSettableStopParity_0x_x___dwCurrentTxQueue__d___dwCurrentRxQueue__d_
lea edi, [esp + 0x34]
mov dword [esp + 0x34], str.FlashToolLib_host_windows_com_util.cpp
mov dword [esp + 0x38], 0xee
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
call fcn.10017c90
movsx eax, byte [esp + 0x61]
movsx ecx, byte [esp + 0x60]
movsx edx, byte [esp + 0x5f]
push eax
movsx eax, byte [esp + 0x62]
push ecx
movsx ecx, byte [esp + 0x65]
push edx
movzx edx, byte [esp + 0x68]
push eax
movzx eax, byte [esp + 0x6b]
push ecx
movzx ecx, byte [esp + 0x6e]
push edx
movzx edx, word [esp + 0x70]
push eax
movzx eax, word [esp + 0x72]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
push ecx
push esi
push str.__p_:_baud__d___XonLim__d___XoffLim__d___ByteSize__d___Parity__d___StopBits__d___XonChar__d___XoffChar__d___ErrorChar__d___EofChar__d___EvtChar__d_
lea edi, [esp + 0x68]
mov dword [esp + 0x68], str.FlashToolLib_host_windows_com_util.cpp
mov dword [esp + 0x6c], 0xef
mov byte [esp + 0x70], 0
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebx
call fcn.10017c90
mov eax, dword [esp + 0x84]
add esp, 0x54
mov dword [esp + 0x14], str.FlashToolLib_host_windows_com_util.cpp
mov dword [esp + 0x18], 0xf0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
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
push esi
push str.__p_:_fBinary__d___fParity__d___fOutxCtsFlow__d___fOutxDsrFlow__d___fDtrControl__d___fDsrSensitivity__d_
lea edi, [esp + 0x34]
call fcn.10017c90
mov eax, dword [esp + 0x50]
mov ecx, eax
shr ecx, 0xe
and ecx, 1
push ecx
mov edx, eax
shr edx, 0xc
and edx, 3
push edx
mov ecx, eax
shr ecx, 0xb
mov edx, eax
and ecx, 1
push ecx
shr edx, 0xa
and edx, 1
push edx
mov ecx, eax
mov edx, eax
shr ecx, 9
and ecx, 1
push ecx
shr edx, 8
and edx, 1
push edx
shr eax, 7
and eax, 1
push eax
push esi
push str.__p_:_fTXContinueOnXoff__d___fOutX__d___fInX__d___fErrorChar__d___fNull__d___fRtsControl__d___fAbortOnError__d_
lea edi, [esp + 0x58]
mov dword [esp + 0x58], str.FlashToolLib_host_windows_com_util.cpp
mov dword [esp + 0x5c], 0xf1
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebx
call fcn.10017c90
add esp, 0x44
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1016cb16
add esp, 0x84
ret