Function at 0x4081e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
lea edi, [ebp - 0x7c]
mov ecx, 0x1f
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 dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0
cmp dword [ebp + 8], 0
jne 0x408234
mov eax, 0xa1006002
jmp 0x4086d2
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 0x408260
mov eax, 0xa1518006
jmp 0x4086d2
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040b520
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x4082a1
mov eax, dword [ebp - 0x38]
push eax
movsx ecx, word [0x41900c]
add ecx, 0x1a
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 0
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
call fcn.00409980
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x4082e4
mov ecx, dword [ebp - 0x38]
push ecx
movsx edx, word [0x41900c]
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.DEVS_CLI
call fcn.00407880
add esp, 0x18
push str.SEARCH
mov eax, dword [ebp - 8]
push eax
call fcn.00409f50
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x408326
mov ecx, dword [ebp - 0x38]
push ecx
movsx edx, word [0x41900c]
add edx, 0x26
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.DEVS_CLI
call fcn.00407880
add esp, 0x18
push 0x414bfc
mov eax, dword [ebp - 8]
push eax
call fcn.00409ea0
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x408368
mov ecx, dword [ebp - 0x38]
push ecx
movsx edx, word [0x41900c]
add edx, 0x2b
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.DEVS_CLI
call fcn.00407880
add esp, 0x18
push str.HDS_1.0
mov eax, dword [ebp - 8]
push eax
call fcn.00409df0
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x4083aa
mov ecx, dword [ebp - 0x38]
push ecx
movsx edx, word [0x41900c]
add edx, 0x30
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.DEVS_CLI
call fcn.00407880
add esp, 0x18
mov esi, esp
mov eax, dword [0x418fec]
push eax
push 0x414bf8
push 0xb
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov edx, dword [0x418fec]
add edx, 1
mov dword [0x418fec], edx
cmp dword [0x418fec], 0xee6b2800
jb 0x4083f2
mov dword [0x418fec], 1
lea eax, [ebp - 0x14]
push eax
push str.CSeq
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040a000
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x408438
mov edx, dword [ebp - 0x38]
push edx
movsx eax, word [0x41900c]
add eax, 0x3e
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
push 0x4192a4
push str.Client_ID
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040a000
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x40847f
mov edx, dword [ebp - 0x38]
push edx
movsx eax, word [0x41900c]
add eax, 0x44
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
push str.text_HDP
push str.Accept_Type
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040a000
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x4084c6
mov edx, dword [ebp - 0x38]
push edx
movsx eax, word [0x41900c]
add eax, 0x4a
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
push 0x418f28
push str.Content_Length
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040a000
add esp, 0xc
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040a590
add esp, 0x10
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x408528
mov eax, dword [ebp - 0x38]
push eax
movsx ecx, word [0x41900c]
add ecx, 0x51
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
mov edx, dword [ebp - 8]
push edx
call fcn.00409a70
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x408565
mov eax, dword [ebp - 0x38]
push eax
movsx ecx, word [0x41900c]
add ecx, 0x58
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
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 - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b490
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x4085c3
mov edx, dword [ebp - 0x38]
push edx
movsx eax, word [0x41900c]
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.DEVS_CLI
call fcn.00407880
add esp, 0x18
mov word [ebp - 0x30], 2
mov ecx, dword [ebp - 0x34]
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 - 0x2c], eax
mov esi, esp
mov edx, dword [ebp - 0x34]
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 - 0x2e], ax
mov esi, esp
push 0xb
lea ecx, [ebp - 0x14]
push ecx
push 0x419290
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x3c], 0
jmp 0x40862c
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [0x4192a0]
jae 0x408696
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
push eax
push 3
mov ecx, dword [ebp - 0x3c]
mov edx, dword [0x41929c]
mov eax, dword [edx + ecx*4]
push eax
call fcn.0040efb0
add esp, 0x14
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x408694
mov ecx, dword [ebp - 0x38]
push ecx
movsx edx, word [0x41900c]
add edx, 0x77
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.DEVS_CLI
call fcn.00407880
add esp, 0x18
jmp 0x408623
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x18], 0
mov esi, esp
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x1c], 0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x7c
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret