Function at 0x4086f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
lea edi, [ebp - 0xd4]
mov ecx, 0x35
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov byte [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov word [ebp - 0x17], cx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
cmp dword [ebp + 8], 0
je 0x40877e
cmp dword [ebp + 0xc], 0
je 0x40877e
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x40877e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 0x20
jne 0x40877e
cmp dword [ebp + 0x10], 0
jne 0x408788
mov eax, 0xa1006002
jmp 0x408fab
mov esi, esp
push 0x21
push 0x4190a0
push 0x4192a4
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
test eax, eax
jne 0x4087b4
mov eax, 0xa1518006
jmp 0x408fab
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040b520
add esp, 8
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x4087fe
mov ecx, dword [ebp - 0x8c]
push ecx
movsx edx, word [0x419010]
add edx, 0x20
push edx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
push 0
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00409980
add esp, 0xc
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x40884a
mov edx, dword [ebp - 0x8c]
push edx
movsx eax, word [0x419010]
add eax, 0x26
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
push 0x414c24
mov ecx, dword [ebp - 8]
push ecx
call fcn.00409f50
add esp, 8
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x408895
mov edx, dword [ebp - 0x8c]
push edx
movsx eax, word [0x419010]
add eax, 0x2c
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
push 0x414bfc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00409ea0
add esp, 8
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x4088e0
mov edx, dword [ebp - 0x8c]
push edx
movsx eax, word [0x419010]
add eax, 0x32
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
push str.HDS_1.0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00409df0
add esp, 8
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x40892b
mov edx, dword [ebp - 0x8c]
push edx
movsx eax, word [0x419010]
add eax, 0x38
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
mov esi, esp
mov ecx, dword [0x418fec]
push ecx
push 0x414bf8
push 0xb
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, dword [0x418fec]
add eax, 1
mov dword [0x418fec], eax
cmp dword [0x418fec], 0xee6b2800
jb 0x408972
mov dword [0x418fec], 1
lea ecx, [ebp - 0x14]
push ecx
push str.CSeq
mov edx, dword [ebp - 8]
push edx
call fcn.0040a000
add esp, 0xc
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x4089c1
mov eax, dword [ebp - 0x8c]
push eax
movsx ecx, word [0x419010]
add ecx, 0x46
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
push 0x4192a4
push str.Client_ID
mov edx, dword [ebp - 8]
push edx
call fcn.0040a000
add esp, 0xc
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x408a11
mov eax, dword [ebp - 0x8c]
push eax
movsx ecx, word [0x419010]
add ecx, 0x4c
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.DEVS_CLI
call fcn.00407880
add esp, 0x18
push str.text_HDP
push str.Accept_Type
mov edx, dword [ebp - 8]
push edx
call fcn.0040a000
add esp, 0xc
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x408a61
mov eax, dword [ebp - 0x8c]
push eax
movsx ecx, word [0x419010]
add ecx, 0x52
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0
je 0x408b4a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 0x20
jae 0x408b4a
mov edx, dword [ebp + 0xc]
cmp dword [edx + 8], 0
je 0x408aa7
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 0x20
jae 0x408b4a
mov edx, dword [ebp + 0xc]
cmp dword [edx + 8], 0
je 0x408abe
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x94], ecx
jmp 0x408ac8
mov dword [ebp - 0x94], 0x4190a0
mov esi, esp
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
push str.Basic__s:_s
push 0x42
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
cmp esi, esp
call sub.MSVCRT.dll__chkesp
lea eax, [ebp - 0x88]
push eax
push str.Authorization
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040a000
add esp, 0xc
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x408b48
mov edx, dword [ebp - 0x8c]
push edx
movsx eax, word [0x419010]
add eax, 0x60
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
jmp 0x408b75
mov ecx, dword [ebp - 0x8c]
push ecx
movsx edx, word [0x419010]
add edx, 0x65
push edx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x408bce
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push str.Device_ID
mov eax, dword [ebp - 8]
push eax
call fcn.0040a000
add esp, 0xc
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x408bce
mov ecx, dword [ebp - 0x8c]
push ecx
movsx edx, word [0x419010]
add edx, 0x6d
push edx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040a250
add esp, 0xc
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x408c28
mov eax, dword [ebp - 0x8c]
push eax
movsx ecx, word [0x419010]
add ecx, 0x74
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
mov esi, esp
push eax
push 0x414bf8
push 0xb
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
cmp esi, esp
call sub.MSVCRT.dll__chkesp
lea ecx, [ebp - 0x20]
push ecx
push str.Content_Length
mov edx, dword [ebp - 8]
push edx
call fcn.0040a000
add esp, 0xc
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x408ca4
mov eax, dword [ebp - 0x8c]
push eax
movsx ecx, word [0x419010]
add ecx, 0x7b
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040a590
add esp, 0x10
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x408cf9
mov eax, dword [ebp - 0x8c]
push eax
movsx ecx, word [0x419010]
add ecx, 0x81
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
mov edx, dword [ebp - 8]
push edx
call fcn.00409a70
add esp, 4
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x408d42
mov eax, dword [ebp - 0x8c]
push eax
movsx ecx, word [0x419010]
add ecx, 0x87
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 8], 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b490
add esp, 8
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x408dab
mov edx, dword [ebp - 0x8c]
push edx
movsx eax, word [0x419010]
add eax, 0x90
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.HI_VSCP_DEVSCLI_Cmd
call fcn.00407880
add esp, 0x18
mov word [ebp - 0x3c], 2
mov ecx, dword [ebp - 0x40]
add ecx, 0x10
mov esi, esp
push ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x38], eax
mov esi, esp
mov edx, dword [ebp - 0x40]
mov ax, word [edx + 0x20]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov word [ebp - 0x3a], ax
mov esi, esp
push 0x578
mov ecx, dword [ebp - 0x24]
push ecx
push 0x41a440
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov edx, dword [ebp - 0x24]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, 0x578
sub ecx, eax
mov esi, esp
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0x41a440
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x90], 0
jmp 0x408e4f
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
cmp ecx, dword [0x4192a0]
jae 0x408ed2
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x2c]
add ecx, eax
push ecx
push 0x41a440
push 3
mov edx, dword [ebp - 0x90]
mov eax, dword [0x41929c]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0040efb0
add esp, 0x14
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x408ecd
mov edx, dword [ebp - 0x8c]
push edx
movsx eax, word [0x419010]
add eax, 0xac
push eax
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrdwin32devs_clienthi_vscp_devs_cli.c
push str.__S___d_:s32Rtn_d
push 7
push str.DEVS_CLI
call fcn.00407880
add esp, 0x18
jmp 0x408e40
mov esi, esp
push 0x3c
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x408ef9
mov eax, 0xa1006001
jmp 0x408fab
mov esi, esp
push 0xb
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x44]
add edx, 0xc
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov esi, esp
push 0x21
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x44]
add edx, 0x17
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mov dword [edx + 8], eax
push 0x418fe0
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00408fc0
add esp, 8
mov esi, esp
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x24], 0
mov esi, esp
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x28], 0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xd4
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret