Function at 0x40df50
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push ebx
push esi
push edi
lea edi, [ebp - 0x1a8]
mov ecx, 0x6a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0x800
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x148], 0
movsx eax, word [0x419070]
add eax, 0x19
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
cmp dword [ebp + 8], 0xffffffff
je 0x40e054
cmp dword [ebp + 0x10], 0
je 0x40e054
cmp dword [ebp + 0x14], 0
je 0x40e054
cmp dword [ebp + 0x18], 0
jne 0x40e082
movsx ecx, word [0x419070]
add ecx, 0x1d
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 2
push str.TRANS
call fcn.00407880
add esp, 0x14
mov eax, 0xa1006002
jmp 0x40ee7b
movsx edx, word [0x419070]
add edx, 0x20
push edx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
movsx eax, word [0x419070]
add eax, 0x24
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411260
add esp, 8
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x40e112
mov eax, dword [ebp - 0x14c]
jmp 0x40ee7b
movsx eax, word [0x419070]
add eax, 0x2a
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.0040ee90
add esp, 4
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x158], 0
jmp 0x40e16a
mov edx, dword [ebp - 0x158]
add edx, 1
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x158]
cmp eax, dword [ebp - 0x104]
jae 0x40e18e
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp + ecx*4 - 0x100]
cmp edx, dword [ebp + 8]
jne 0x40e18c
jmp 0x40e18e
jmp 0x40e15b
mov eax, dword [ebp - 0x158]
cmp eax, dword [ebp - 0x104]
jne 0x40e1c4
cmp dword [ebp - 0x104], 0x40
jae 0x40e1c4
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x100], edx
mov eax, dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x104], eax
xor ecx, ecx
test ecx, ecx
jne 0x40e14f
movsx edx, word [0x419070]
add edx, 0x32
push edx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
mov esi, esp
push 0x801
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x40e251
mov eax, dword [ebp - 0x148]
push eax
call fcn.0040ee90
add esp, 4
movsx ecx, word [0x419070]
add ecx, 0x38
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 2
push str.TRANS
call fcn.00407880
add esp, 0x14
mov eax, 0xa1006001
jmp 0x40ee7b
movsx edx, word [0x419070]
add edx, 0x3b
push edx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
push 0x801
push 0
mov eax, dword [ebp - 0x118]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x148]
cmp dword [eax + 0x10], 0
je 0x40e546
mov esi, esp
push 0x415008
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x148]
cmp dword [eax + 0x10], 0x800
jbe 0x40e37c
cmp dword [ebp - 0x130], 0
je 0x40e31c
mov ecx, dword [ebp - 0x148]
mov esi, dword [ebp - 0x130]
sub esi, dword [ecx + 0x14]
push 0x415008
call sub.MSVCRT.dll_strlen
add esp, 4
add esi, eax
cmp esi, 0x800
jb 0x40e37c
mov esi, esp
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x148]
push eax
call fcn.0040ee90
add esp, 4
movsx ecx, word [0x419070]
add ecx, 0x4d
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 2
push str.TRANS
call fcn.00407880
add esp, 0x14
mov eax, 0xa1528104
jmp 0x40ee7b
movsx edx, word [0x419070]
add edx, 0x53
push edx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
cmp dword [ebp - 0x130], 0
jne 0x40e44e
movsx eax, word [0x419070]
add eax, 0x57
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x148]
mov eax, dword [edx + 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x114]
sub edx, dword [ecx + 0x10]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x10c]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x148]
mov dword [edx + 0x10], 0
jmp 0x40e546
mov dword [ebp - 0x15c], 0
movsx eax, word [0x419070]
add eax, 0x63
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x130]
sub edx, dword [ecx + 0x14]
add edx, 4
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x118]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x10]
sub edx, dword [ebp - 0x134]
mov dword [ebp - 0x15c], edx
cmp dword [ebp - 0x15c], 0
jbe 0x40e503
mov eax, dword [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x14]
add edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 0x14]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x164], eax
jmp 0x40e50d
mov dword [ebp - 0x164], 0
mov edx, dword [ebp - 0x148]
mov eax, dword [edx + 0xc]
sub eax, dword [ebp - 0x15c]
push eax
push 0
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x14]
add edx, dword [ebp - 0x15c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x15c]
mov dword [eax + 0x10], ecx
movsx edx, word [0x419070]
add edx, 0x72
push edx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
mov eax, dword [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x118]
add ecx, eax
mov dword [ebp - 0x11c], ecx
mov esi, esp
push 0x415008
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x40e8dd
mov dword [ebp - 0x160], 0
movsx eax, word [0x419070]
add eax, 0x79
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
mov ecx, dword [ebp - 0x11c]
sub ecx, dword [ebp - 0x118]
test ecx, ecx
jle 0x40e693
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x11c]
sub eax, dword [ebp - 0x118]
cmp eax, 3
jle 0x40e623
mov dword [ebp - 0x168], 3
jmp 0x40e635
mov ecx, dword [ebp - 0x11c]
sub ecx, dword [ebp - 0x118]
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x160], edx
jmp 0x40e652
mov eax, dword [ebp - 0x160]
sub eax, 1
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jle 0x40e685
mov ecx, dword [ebp - 0x11c]
sub ecx, dword [ebp - 0x160]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x40e683
mov eax, dword [ebp - 0x11c]
sub eax, dword [ebp - 0x160]
mov dword [ebp - 0x120], eax
jmp 0x40e685
jmp 0x40e643
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], ecx
jmp 0x40e69f
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x120], edx
cmp dword [ebp - 0x10c], 0x800
jl 0x40e6dd
mov esi, esp
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.0040ee90
add esp, 4
mov eax, 0xa1528104
jmp 0x40ee7b
cmp dword [ebp + 0xc], 0
je 0x40e7bd
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x40e6fc
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x40e7bd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x154], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x150], ecx
xor edx, edx
test edx, edx
jne 0x40e6fc
mov esi, esp
lea eax, [ebp - 0x154]
push eax
push 0
push 0
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
add edx, 1
push edx
call dword [sym.imp.WSOCK32.dll_select]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jge 0x40e782
mov esi, esp
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.0040ee90
add esp, 4
mov eax, 0xa1528102
jmp 0x40ee7b
cmp dword [ebp - 0x108], 0
jne 0x40e7bd
mov esi, esp
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, dword [ebp - 0x148]
push eax
call fcn.0040ee90
add esp, 4
mov eax, 0xa1528101
jmp 0x40ee7b
cmp dword [ebp + 0x1c], 0
jne 0x40e7cf
mov dword [ebp - 0x140], 0
jmp 0x40e7d9
mov dword [ebp - 0x140], 0x10
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov esi, esp
mov edx, dword [ebp - 0x144]
push edx
mov eax, dword [ebp + 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_recvfrom]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x110], eax
movsx ecx, word [0x419070]
add ecx, 0xbe
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
cmp dword [ebp - 0x110], 0
jg 0x40e8a2
mov esi, esp
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, dword [ebp - 0x148]
push eax
call fcn.0040ee90
add esp, 4
movsx ecx, word [0x419070]
add ecx, 0xc3
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 2
push str.TRANS
call fcn.00407880
add esp, 0x14
mov eax, 0xa1528102
jmp 0x40ee7b
mov edx, dword [ebp - 0x114]
sub edx, dword [ebp - 0x110]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x110]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x11c]
add ecx, dword [ebp - 0x110]
mov dword [ebp - 0x11c], ecx
jmp 0x40e587
movsx edx, word [0x419070]
add edx, 0xcb
push edx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
cmp dword [ebp - 0x10c], 0
jle 0x40ea00
mov eax, dword [ebp - 0x124]
sub eax, dword [ebp - 0x118]
add eax, 4
mov ecx, dword [ebp - 0x10c]
sub ecx, eax
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x148]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x148]
cmp eax, dword [ecx + 0xc]
jbe 0x40e9a1
mov esi, esp
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, dword [ebp - 0x148]
push eax
call fcn.0040ee90
add esp, 4
movsx ecx, word [0x419070]
add ecx, 0xd4
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 2
push str.TRANS
call fcn.00407880
add esp, 0x14
mov eax, 0xa1528105
jmp 0x40ee7b
mov edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x124]
add eax, 4
push eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x148]
add edx, dword [eax + 0x10]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x148]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x134]
push ecx
push 0
mov edx, dword [ebp - 0x124]
add edx, 4
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
movsx eax, word [0x419070]
add eax, 0xdf
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
mov esi, esp
push str.Content_Length
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x40eacc
mov esi, esp
push 0x3a
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x40eaa2
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
jmp 0x40ea83
mov esi, esp
push 0xa
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.MSVCRT.dll_strtol]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x13c], eax
jmp 0x40ead6
mov dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x13c]
push eax
movsx ecx, word [0x419070]
add ecx, 0xf0
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d:_s32BodyLength___d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x18
movsx edx, word [0x419070]
add edx, 0xf1
push edx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
cmp dword [ebp - 0x13c], 0
jle 0x40ee23
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x13c]
add edx, 1
mov esi, esp
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x40ebd4
mov esi, esp
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.0040ee90
add esp, 4
movsx edx, word [0x419070]
add edx, 0xfc
push edx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 2
push str.TRANS
call fcn.00407880
add esp, 0x14
mov eax, 0xa1006001
jmp 0x40ee7b
mov eax, dword [ebp - 0x148]
cmp dword [eax + 0x10], 0
jbe 0x40ed11
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0x13c]
ja 0x40ec5d
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x148]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x13c]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x10]
push edx
push 0
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 0x14]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x148]
mov dword [edx + 0x10], 0
jmp 0x40ed11
mov eax, dword [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x128]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x114], 0
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x10]
sub edx, dword [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x148]
mov eax, dword [edx + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x10]
sub edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 0xc]
sub ecx, edx
push ecx
push 0
mov edx, dword [ebp - 0x148]
mov eax, dword [edx + 0x10]
sub eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx + 0x14]
add edx, eax
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 0x10]
sub ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x148]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0x128]
add eax, dword [ebp - 0x13c]
sub eax, dword [ebp - 0x114]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x114], 0
jle 0x40ee14
mov ecx, dword [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x114]
push edx
movsx eax, word [0x419070]
add eax, 0x11e
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d:_s32RemSize___d_pszBodyPos___x__r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x1c
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410d50
add esp, 0x14
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x40ee14
mov esi, esp
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov esi, esp
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x128], 0
mov edx, dword [ebp - 0x148]
push edx
call fcn.0040ee90
add esp, 4
movsx eax, word [0x419070]
add eax, 0x126
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 2
push str.TRANS
call fcn.00407880
add esp, 0x14
mov eax, dword [ebp - 0x14c]
jmp 0x40ee7b
mov ecx, dword [ebp - 0x128]
add ecx, dword [ebp - 0x12c]
mov byte [ecx], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x118]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x128]
mov dword [ecx], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x12c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x148]
push edx
call fcn.0040ee90
add esp, 4
movsx eax, word [0x419070]
add eax, 0x131
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscp_transferhi_vscp_transfer.c
push str._r_nHI_VSCP_Transfer_Receive_:__s__d_r_n
push 8
push str.TRANS
call fcn.00407880
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1a8
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret