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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570c50
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x640040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x848], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x854], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x850], esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x834], eax
mov dword [ebp - 4], 0
cmp byte [edi + 0x78], 0
je 0x49b269
mov ecx, ebx
cmp byte [edi + 0x8c], 0
jne 0x49b26b
mov eax, dword [ebx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x49b277
mov eax, dword [ebx]
push 4
mov ecx, ebx
mov eax, dword [eax + 4]
call eax
test al, al
je 0x49b21e
sub esp, 8
push dword [ebp + 0x14]
push dword [ebp - 0x834]
push esi
push ebx
mov ecx, edi
call fcn.0049c0d0
jmp 0x49bddb
mov eax, dword [ebx]
push 5
mov ecx, ebx
mov eax, dword [eax + 4]
call eax
test al, al
je 0x49b247
sub esp, 8
push dword [ebp + 0x14]
push dword [ebp - 0x834]
push esi
push ebx
mov ecx, edi
call fcn.0049f380
jmp 0x49bddb
push 0x1c5
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbusPortClasses.cpp
push 0x587798
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec040
add esp, 0x10
mov ecx, ebx
call fcn.00499000
mov eax, ebx
jmp 0x49bddb
test esi, esi
jne 0x49b2ab
push 0x1cc
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbusPortClasses.cpp
push 0x587798
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec040
add esp, 0x10
mov ecx, ebx
call fcn.00499000
mov eax, ebx
jmp 0x49bddb
mov byte [ebp - 0x418], 0
mov dword [ebp - 0x838], 0
movzx eax, word [ebx + 0x1fe]
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x840], 0
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x844], eax
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x14]
call eax
mov byte [ebp - 0x82d], al
xorps xmm0, xmm0
movlpd qword [ebp - 0x820], xmm0
push dword [ebp + 0x14]
lea ecx, [esi + 0x24]
push ecx
lea ecx, [ebp - 0x820]
call fcn.004f6560
mov byte [ebp - 4], 1
mov eax, dword [esi]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
push 0
push 0
push 0
mov ecx, esi
mov eax, dword [eax + 0x2c]
call eax
test al, al
jne 0x49b34d
mov ecx, ebx
call fcn.00499000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x820]
call fcn.004f6620
mov eax, ebx
jmp 0x49bddb
cmp byte [edi + 0x100], 0
jne 0x49b431
cmp byte [0x641c68], 0
jne 0x49b431
mov edi, dword [esi]
mov ecx, esi
call dword [edi + 0x50]
push eax
mov ecx, esi
call dword [edi + 0xc8]
mov dword [ebp - 0x83c], 0
mov edi, dword [esi]
push 0
mov ecx, esi
call dword [edi + 0x50]
push eax
push 1
lea eax, [ebp - 0x418]
push eax
mov ecx, esi
call dword [edi + 0xdc]
mov ecx, eax
mov dword [ebp - 0x838], eax
test ecx, ecx
je 0x49b3df
push eax
lea eax, [ebp - 0x818]
push eax
push 3
push 0
mov ecx, esi
call fcn.004a8e30
mov ecx, dword [ebp - 0x83c]
cmp ecx, 0x400
jae 0x49b381
mov al, byte [ebp - 0x418]
mov byte [ebp + ecx - 0x818], al
inc ecx
mov dword [ebp - 0x83c], ecx
jmp 0x49b381
mov edi, dword [ebp - 0x848]
cmp dword [ebp - 0x83c], 0
jbe 0x49b431
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push dword [ebp - 0x83c]
push str.Flushed__d_characters_from_receive_buffer_on_port__s
push 0x3ec
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x10
push dword [ebp - 0x83c]
lea eax, [ebp - 0x818]
push eax
push ecx
mov ecx, edi
call fcn.0049d480
mov eax, dword [esi]
push dword [ebp - 0x834]
mov ecx, esi
call dword [eax + 0xc8]
mov dword [ebp - 0x828], 1
mov edx, dword [esi]
lea eax, [ebp - 0x828]
push eax
push dword [ebp - 0x82c]
lea eax, [ebx + 4]
push eax
mov ecx, esi
call dword [edx + 0xd8]
mov dword [ebp - 0x824], eax
push 1
push ebx
push esi
mov ecx, edi
call fcn.0049d3d0
cmp dword [ebp - 0x828], 1
je 0x49b4e6
cmp byte [ebp + 0x18], 0
je 0x49b4b6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push str.Warning:_SendBuffer_on_port__s_unsuccessful___error_code___d
push 0x3ea
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x14
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x30]
mov ecx, ebx
call fcn.00499000
mov dword [ebx + 0x218], 6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x820]
call fcn.004f6620
mov eax, ebx
jmp 0x49bddb
movzx eax, word [ebx + 0x1fe]
mov ecx, dword [ebp - 0x824]
cmp eax, ecx
je 0x49b54e
push ecx
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push str.Failed_to_complete_writing_of_message_to_port__s___requested__d_characters_to_be_written___only_wrote__d_characters
push 0x3ea
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push str.Re_initializing_comms_port__s
push 0x3ea
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x10
jmp 0x49b4b6
mov ecx, ebx
call fcn.004990f0
cmp byte [edi + 0x100], 0
je 0x49b6d9
mov eax, dword [esi]
push 4
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x49b6d9
cmp byte [esi + 0x1aee], 0
jne 0x49b6d9
mov dword [ebp - 0x824], 1
mov eax, dword [esi]
lea ecx, [ebp - 0x824]
push ecx
push dword [ebp - 0x834]
push 6
lea ecx, [ebp - 0x418]
push ecx
mov ecx, esi
call dword [eax + 0xdc]
mov dword [ebp - 0x838], eax
cmp eax, 6
jae 0x49b635
push esi
mov ecx, edi
call fcn.004a7950
test al, al
jne 0x49b5d0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x49b5d9
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x30]
mov dword [ebx + 0x218], 2
push ebx
push ecx
mov ecx, esi
call fcn.004a91d0
push 0
push ebx
push esi
mov ecx, edi
call fcn.0049d3d0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push str.Comms_Timeout_on_port__s
push 0x3ec
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x820]
call fcn.004f6620
mov eax, ebx
jmp 0x49bddb
cmp dword [ebp - 0x824], 7
jne 0x49b6d9
push esi
mov ecx, edi
call fcn.004a7950
test al, al
jne 0x49b65b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x49b664
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x30]
mov dword [ebx + 0x218], 7
push ebx
push ecx
mov ecx, esi
call fcn.004a91d0
push 0
push ebx
push esi
mov ecx, edi
call fcn.0049d3d0
movzx eax, word [esi + 0x3c]
push eax
movzx ecx, byte [ebp - 0x418]
shl ecx, 8
movzx eax, byte [ebp - 0x417]
add ecx, eax
push ecx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push str.MODBUS_TCP_Transaction_ID_Failure_port__s___received__d__expected__d
push 0x3ec
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x820]
call fcn.004f6620
mov eax, ebx
jmp 0x49bddb
mov eax, dword [esi]
push dword [ebp - 0x834]
push dword [ebp - 0x82c]
mov ecx, esi
mov eax, dword [eax + 0xec]
call eax
test al, al
jne 0x49b76b
mov dword [ebx + 0x218], 2
push ebx
push ecx
mov ecx, esi
call fcn.004a91d0
push 0
push ebx
push esi
mov ecx, edi
call fcn.0049d3d0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push str.Failed_to_receive_Comms_Echo_on_port__s
push 0x3ec
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x10
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x49b4d0
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x30]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x820]
call fcn.004f6620
mov eax, ebx
jmp 0x49bddb
xor al, al
mov byte [ebp - 0x82e], al
test al, al
jne 0x49bcfc
mov ecx, dword [ebp - 0x844]
lea eax, [ecx - 1]
cmp eax, 0x6a
ja case.0x49b794.9
movzx eax, byte [eax + 0x49be18]
jmp dword [eax*4 + 0x49bdfc]
mov dword [ebp - 0x82c], 0xa
cmp byte [edi + 0x100], 0
je 0x49b7ec
mov eax, dword [esi]
push 4
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x49b7c6
cmp byte [esi + 0x1aee], 0
je 0x49b7d5
mov eax, dword [esi]
push 4
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x49b7ec
cmp dword [ebx + 0x218], 4
jne 0x49b7ec
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x48]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
cmp dword [ebp - 0x82c], 0x1ef
jb 0x49b820
push 0x2ea
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbusPortClasses.cpp
push 0x587798
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec040
add esp, 0x10
nop word [eax + eax]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x4c]
test eax, eax
jne 0x49bcc6
movzx ecx, word [ebx + 0x1fe]
mov eax, 0x1f4
mov edx, dword [ebp - 0x82c]
sub eax, edx
cmp ecx, eax
jae 0x49bcc6
mov eax, dword [esi]
push 0
push dword [ebp - 0x834]
push edx
lea ecx, [ebp - 0x418]
push ecx
mov ecx, esi
call dword [eax + 0xdc]
mov dword [ebp - 0x838], eax
movzx ecx, ax
mov dword [ebp - 0x84c], ecx
cmp eax, 1
jae 0x49bc2c
push esi
mov ecx, edi
call fcn.004a7950
test al, al
jne 0x49b896
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x49b89f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x30]
mov dword [ebx + 0x218], 2
push ebx
push ecx
mov ecx, esi
call fcn.004a91d0
push 0
push ebx
push esi
mov ecx, edi
call fcn.0049d3d0
movzx ecx, word [ebx + 0x1fe]
mov eax, dword [edi]
mov eax, dword [eax + 0x80]
test cx, cx
je 0x49bbe3
mov edi, ecx
mov ecx, dword [ebp - 0x848]
call eax
push eax
add edi, dword [ebp - 0x838]
push edi
push str.Comms_Message_Read_Failure___got_header__but_only_read__d_characters_on_port__s
jmp 0x49bbf3
mov dword [ebp - 0x82c], 8
jmp 0x49b7a5
mov dword [ebp - 0x82c], 5
jmp 0x49b7a5
mov dword [ebp - 0x82c], 0xd
jmp 0x49b7a5
sub esp, 0xc
push dword [ebp - 0x834]
push esi
push ebx
call fcn.0049be90
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x820]
call fcn.004f6620
mov eax, esi
jmp 0x49bddb
push ecx
push str.Unknown_Number_Of_Bytes_to_Read_for_Modbus_Function__d
push 0x3e9
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
push 0x287
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbusPortClasses.cpp
push 0x587798
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec040
add esp, 0x20
mov eax, dword [esi]
push 0
push dword [ebp - 0x834]
push 3
lea ecx, [ebp - 0x418]
push ecx
mov ecx, esi
call dword [eax + 0xdc]
mov dword [ebp - 0x838], eax
cmp eax, 3
jae 0x49b9fe
push esi
mov ecx, edi
call fcn.004a7950
test al, al
jne 0x49b9c2
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x49b9cb
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x30]
mov dword [ebx + 0x218], 2
push ebx
push ecx
mov ecx, esi
call fcn.004a91d0
push 0
push ebx
push esi
mov ecx, edi
call fcn.0049d3d0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push str.Comms_Timeout_on_port__s_waiting_for_MODBUS_header
jmp 0x49b607
xor eax, eax
mov dword [ebp - 0x840], eax
cmp eax, 3
jae 0x49ba24
mov edx, dword [ebx]
movzx eax, byte [ebp + eax - 0x418]
push eax
mov ecx, ebx
call dword [edx + 0x44]
mov eax, dword [ebp - 0x840]
inc eax
jmp 0x49ba00
cmp byte [edi + 0x100], 0
je 0x49ba60
mov eax, dword [esi]
push 4
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x49ba45
cmp byte [esi + 0x1aee], 0
je 0x49ba54
mov eax, dword [esi]
push 5
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x49ba60
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x50]
sub eax, 2
jmp 0x49ba67
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x50]
mov dword [ebp - 0x82c], eax
mov edx, dword [ebx]
mov ecx, ebx
mov edx, dword [edx + 0x10]
call edx
test al, al
jne 0x49bac5
push esi
mov ecx, edi
call fcn.004a7950
test al, al
jne 0x49ba93
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x49ba9c
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x30]
push ebx
push ecx
mov ecx, esi
call fcn.004a91d0
push 0
push ebx
push esi
mov ecx, edi
call fcn.0049d3d0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push str.Comms_error_on_port__s_in_MODBUS_header
jmp 0x49b607
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x14]
call eax
cmp al, byte [ebp - 0x82d]
je 0x49bb6d
push esi
mov ecx, edi
call fcn.004a7950
test al, al
jne 0x49baf3
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x49bafc
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x30]
push ebx
push ecx
mov ecx, esi
call fcn.004a91d0
push 0
push ebx
push esi
mov ecx, edi
call fcn.0049d3d0
movzx eax, byte [ebp - 0x82d]
push eax
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x14]
call eax
movzx eax, al
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push str.Comms_error_on_port__s_in_MODBUS_header___response_message_from_MODBUS_device_address__d___request_was_for_MODBUS_device_address__d
push 0x3ec
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov dword [ebx + 0x218], 3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x820]
call fcn.004f6620
mov eax, ebx
jmp 0x49bddb
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
cmp eax, dword [ebp - 0x844]
je 0x49b7a5
push esi
mov ecx, edi
call fcn.004a7950
test al, al
jne 0x49bb9e
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x49bba7
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x30]
push ebx
push ecx
mov ecx, esi
call fcn.004a91d0
push 0
push ebx
push esi
mov ecx, edi
call fcn.0049d3d0
push dword [ebp - 0x844]
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push str.Comms_error_on_port__s_in_MODBUS_header___invalid_response_MODBUS_function_code__d___requested_MODBUS_function_code_was__d
jmp 0x49bb35
push dword [ebp - 0x82c]
mov ecx, edi
call eax
push eax
push str.Comms_Timeout_on_port__s___no_response___expecting__ld_bytes
mov eax, dword [0x641a88]
push 0x3ec
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x14
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0xe4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x820]
call fcn.004f6620
mov eax, ebx
jmp 0x49bddb
movzx edx, word [ebx + 0x1fe]
mov ecx, 0x1f4
sub ecx, edx
mov edx, eax
mov eax, dword [ebp - 0x84c]
movzx eax, ax
cmp eax, ecx
jle 0x49bc51
mov dword [ebp - 0x838], ecx
mov edx, ecx
push edx
lea eax, [ebp - 0x418]
push eax
movzx eax, word [ebx + 0x1fe]
add eax, 4
add eax, ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x838]
mov ecx, ebx
call fcn.004991e0
cmp byte [edi + 0x100], 0
je 0x49b820
mov eax, dword [esi]
push 4
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x49bca0
cmp byte [esi + 0x1aee], 0
je 0x49bcb3
mov eax, dword [esi]
push 5
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x49b820
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x48]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
jmp 0x49b820
lea eax, [ebx + 0x200]
push eax
call fcn.004cf540
mov eax, dword [esi]
push ebx
mov ecx, esi
mov eax, dword [eax + 0xe4]
call eax
test al, al
jne 0x49bcea
mov al, 1
jmp 0x49b76d
mov ecx, ebx
call fcn.004990f0
mov al, byte [ebp - 0x82e]
jmp 0x49b773
mov dword [ebx + 0x218], 1
push ebx
push ecx
mov ecx, esi
call fcn.004a91d0
push 0
push ebx
push esi
mov ecx, edi
call fcn.0049d3d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x820]
call fcn.004f6620
mov eax, 0x1f3
cmp word [ebx + 0x1fe], ax
jb 0x49bd59
push 0x329
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbusPortClasses.cpp
push 0x587798
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec040
add esp, 0x10
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x49b4df
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x30]
mov eax, ebx
jmp 0x49bddb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055c86d
mov esp, ebp
pop ebp
ret 0x18