Function at 0x410440
Capabilities:
Get socket status
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc64
mov eax, dword [0x5e8e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xb04], ecx
mov dword [ebp - 0x80c], 0
mov byte [ebp - 0x808], 0
push 0x7ff
push 0
lea eax, [ebp - 0x807]
push eax
call fcn.0055ca00
add esp, 0xc
mov dword [ebp - 0x854], 0
mov byte [ebp - 0x9e8], 0
push 0xff
push 0
lea ecx, [ebp - 0x9e7]
push ecx
call fcn.0055ca00
add esp, 0xc
mov byte [ebp - 0x8d8], 0
push 0x7d
push 0
lea edx, [ebp - 0x8d7]
push edx
call fcn.0055ca00
add esp, 0xc
mov byte [ebp - 0x850], 0
push 0x3f
push 0
lea eax, [ebp - 0x84f]
push eax
call fcn.0055ca00
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x8e8], ecx
mov dword [ebp - 0x8e4], ecx
mov dword [ebp - 0x8e0], ecx
mov dword [ebp - 0x8dc], ecx
mov edx, 2
mov word [ebp - 0x8e8], dx
push 0x1f42
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x8e6], ax
push 0x5bc5d4
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x8e4], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0xb08], eax
mov ecx, dword [ebp - 0xb08]
add ecx, 1
mov dword [ebp - 0xb0c], ecx
mov edx, dword [ebp - 0xb08]
mov al, byte [edx]
mov byte [ebp - 0xb0d], al
add dword [ebp - 0xb08], 1
cmp byte [ebp - 0xb0d], 0
jne 0x41053c
mov ecx, dword [ebp - 0xb08]
sub ecx, dword [ebp - 0xb0c]
mov dword [ebp - 0xb14], ecx
jne 0x4106ac
lea edx, [ebp + 0x9c]
mov dword [ebp - 0xb18], edx
mov eax, dword [ebp - 0xb18]
add eax, 1
mov dword [ebp - 0xb1c], eax
mov ecx, dword [ebp - 0xb18]
mov dl, byte [ecx]
mov byte [ebp - 0xb1d], dl
add dword [ebp - 0xb18], 1
cmp byte [ebp - 0xb1d], 0
jne 0x41058d
mov eax, dword [ebp - 0xb18]
sub eax, dword [ebp - 0xb1c]
mov dword [ebp - 0xb24], eax
jne 0x4106ac
lea ecx, [ebp + 0x88]
mov dword [ebp - 0xb28], ecx
mov edx, dword [ebp - 0xb28]
add edx, 1
mov dword [ebp - 0xb2c], edx
mov eax, dword [ebp - 0xb28]
mov cl, byte [eax]
mov byte [ebp - 0xb2d], cl
add dword [ebp - 0xb28], 1
cmp byte [ebp - 0xb2d], 0
jne 0x4105de
mov edx, dword [ebp - 0xb28]
sub edx, dword [ebp - 0xb2c]
mov dword [ebp - 0xb34], edx
jne 0x4106ac
lea eax, [ebp + 0x48]
mov dword [ebp - 0xb38], eax
mov ecx, dword [ebp - 0xb38]
add ecx, 1
mov dword [ebp - 0xb3c], ecx
mov edx, dword [ebp - 0xb38]
mov al, byte [edx]
mov byte [ebp - 0xb3d], al
add dword [ebp - 0xb38], 1
cmp byte [ebp - 0xb3d], 0
jne 0x41062c
mov ecx, dword [ebp - 0xb38]
sub ecx, dword [ebp - 0xb3c]
mov dword [ebp - 0xb44], ecx
jne 0x4106ac
lea edx, [ebp + 0x68]
mov dword [ebp - 0xb48], edx
mov eax, dword [ebp - 0xb48]
add eax, 1
mov dword [ebp - 0xb4c], eax
mov ecx, dword [ebp - 0xb48]
mov dl, byte [ecx]
mov byte [ebp - 0xb4d], dl
add dword [ebp - 0xb48], 1
cmp byte [ebp - 0xb4d], 0
jne 0x410676
mov eax, dword [ebp - 0xb48]
sub eax, dword [ebp - 0xb4c]
mov dword [ebp - 0xb54], eax
je 0x410e6b
lea ecx, [ebp + 0x28]
mov dword [ebp - 0xb58], ecx
mov edx, dword [ebp - 0xb58]
add edx, 1
mov dword [ebp - 0xb5c], edx
mov eax, dword [ebp - 0xb58]
mov cl, byte [eax]
mov byte [ebp - 0xb5d], cl
add dword [ebp - 0xb58], 1
cmp byte [ebp - 0xb5d], 0
jne 0x4106c4
mov edx, dword [ebp - 0xb58]
sub edx, dword [ebp - 0xb5c]
mov dword [ebp - 0xb64], edx
jne 0x4107df
lea eax, [ebp + 0x9c]
mov dword [ebp - 0xb68], eax
mov ecx, dword [ebp - 0xb68]
add ecx, 1
mov dword [ebp - 0xb6c], ecx
mov edx, dword [ebp - 0xb68]
mov al, byte [edx]
mov byte [ebp - 0xb6d], al
add dword [ebp - 0xb68], 1
cmp byte [ebp - 0xb6d], 0
jne 0x410715
mov ecx, dword [ebp - 0xb68]
sub ecx, dword [ebp - 0xb6c]
mov dword [ebp - 0xb74], ecx
jne 0x4107df
lea edx, [ebp + 0x48]
mov dword [ebp - 0xb78], edx
mov eax, dword [ebp - 0xb78]
add eax, 1
mov dword [ebp - 0xb7c], eax
mov ecx, dword [ebp - 0xb78]
mov dl, byte [ecx]
mov byte [ebp - 0xb7d], dl
add dword [ebp - 0xb78], 1
cmp byte [ebp - 0xb7d], 0
jne 0x410763
mov eax, dword [ebp - 0xb78]
sub eax, dword [ebp - 0xb7c]
mov dword [ebp - 0xb84], eax
jne 0x4107df
lea ecx, [ebp + 0x68]
mov dword [ebp - 0xb88], ecx
mov edx, dword [ebp - 0xb88]
add edx, 1
mov dword [ebp - 0xb8c], edx
mov eax, dword [ebp - 0xb88]
mov cl, byte [eax]
mov byte [ebp - 0xb8d], cl
add dword [ebp - 0xb88], 1
cmp byte [ebp - 0xb8d], 0
jne 0x4107ad
mov edx, dword [ebp - 0xb88]
sub edx, dword [ebp - 0xb8c]
mov dword [ebp - 0xb94], edx
je 0x410802
mov eax, dword [0x5bc514]
mov dword [ebp - 0x9e8], eax
mov ecx, dword [0x5bc518]
mov dword [ebp - 0x9e4], ecx
mov edx, dword [0x5bc51c]
mov dword [ebp - 0x9e0], edx
lea eax, [ebp + 0x28]
mov dword [ebp - 0xb98], eax
mov ecx, dword [ebp - 0xb98]
add ecx, 1
mov dword [ebp - 0xb9c], ecx
mov edx, dword [ebp - 0xb98]
mov al, byte [edx]
mov byte [ebp - 0xb9d], al
add dword [ebp - 0xb98], 1
cmp byte [ebp - 0xb9d], 0
jne 0x41081a
mov ecx, dword [ebp - 0xb98]
sub ecx, dword [ebp - 0xb9c]
mov dword [ebp - 0xba4], ecx
je 0x4108b6
lea edx, [ebp - 0x9e8]
mov dword [ebp - 0xba8], edx
mov eax, dword [ebp - 0xba8]
add eax, 1
mov dword [ebp - 0xbac], eax
mov ecx, dword [ebp - 0xba8]
mov dl, byte [ecx]
mov byte [ebp - 0xbad], dl
add dword [ebp - 0xba8], 1
cmp byte [ebp - 0xbad], 0
jne 0x410867
mov eax, dword [ebp - 0xba8]
sub eax, dword [ebp - 0xbac]
mov dword [ebp - 0xbb4], eax
lea ecx, [ebp + 0x28]
push ecx
push 0x5bc5e4
mov edx, dword [ebp - 0xbb4]
lea eax, [ebp + edx - 0x9e8]
push eax
call fcn.00556a42
add esp, 0xc
lea ecx, [ebp + 0x48]
mov dword [ebp - 0xbb8], ecx
mov edx, dword [ebp - 0xbb8]
add edx, 1
mov dword [ebp - 0xbbc], edx
mov eax, dword [ebp - 0xbb8]
mov cl, byte [eax]
mov byte [ebp - 0xbbd], cl
add dword [ebp - 0xbb8], 1
cmp byte [ebp - 0xbbd], 0
jne 0x4108ce
mov edx, dword [ebp - 0xbb8]
sub edx, dword [ebp - 0xbbc]
mov dword [ebp - 0xbc4], edx
je 0x41096a
lea eax, [ebp - 0x9e8]
mov dword [ebp - 0xbc8], eax
mov ecx, dword [ebp - 0xbc8]
add ecx, 1
mov dword [ebp - 0xbcc], ecx
mov edx, dword [ebp - 0xbc8]
mov al, byte [edx]
mov byte [ebp - 0xbcd], al
add dword [ebp - 0xbc8], 1
cmp byte [ebp - 0xbcd], 0
jne 0x41091b
mov ecx, dword [ebp - 0xbc8]
sub ecx, dword [ebp - 0xbcc]
mov dword [ebp - 0xbd4], ecx
lea edx, [ebp + 0x48]
push edx
push 0x5bc5f0
mov eax, dword [ebp - 0xbd4]
lea ecx, [ebp + eax - 0x9e8]
push ecx
call fcn.00556a42
add esp, 0xc
lea edx, [ebp + 0x68]
mov dword [ebp - 0xbd8], edx
mov eax, dword [ebp - 0xbd8]
add eax, 1
mov dword [ebp - 0xbdc], eax
mov ecx, dword [ebp - 0xbd8]
mov dl, byte [ecx]
mov byte [ebp - 0xbdd], dl
add dword [ebp - 0xbd8], 1
cmp byte [ebp - 0xbdd], 0
jne 0x410982
mov eax, dword [ebp - 0xbd8]
sub eax, dword [ebp - 0xbdc]
mov dword [ebp - 0xbe4], eax
je 0x410a1e
lea ecx, [ebp - 0x9e8]
mov dword [ebp - 0xbe8], ecx
mov edx, dword [ebp - 0xbe8]
add edx, 1
mov dword [ebp - 0xbec], edx
mov eax, dword [ebp - 0xbe8]
mov cl, byte [eax]
mov byte [ebp - 0xbed], cl
add dword [ebp - 0xbe8], 1
cmp byte [ebp - 0xbed], 0
jne 0x4109cf
mov edx, dword [ebp - 0xbe8]
sub edx, dword [ebp - 0xbec]
mov dword [ebp - 0xbf4], edx
lea eax, [ebp + 0x68]
push eax
push 0x5bc600
mov ecx, dword [ebp - 0xbf4]
lea edx, [ebp + ecx - 0x9e8]
push edx
call fcn.00556a42
add esp, 0xc
lea eax, [ebp + 0x9c]
mov dword [ebp - 0xbf8], eax
mov ecx, dword [ebp - 0xbf8]
add ecx, 1
mov dword [ebp - 0xbfc], ecx
mov edx, dword [ebp - 0xbf8]
mov al, byte [edx]
mov byte [ebp - 0xbfd], al
add dword [ebp - 0xbf8], 1
cmp byte [ebp - 0xbfd], 0
jne 0x410a39
mov ecx, dword [ebp - 0xbf8]
sub ecx, dword [ebp - 0xbfc]
mov dword [ebp - 0xc04], ecx
je 0x410ad8
lea edx, [ebp - 0x9e8]
mov dword [ebp - 0xc08], edx
mov eax, dword [ebp - 0xc08]
add eax, 1
mov dword [ebp - 0xc0c], eax
mov ecx, dword [ebp - 0xc08]
mov dl, byte [ecx]
mov byte [ebp - 0xc0d], dl
add dword [ebp - 0xc08], 1
cmp byte [ebp - 0xc0d], 0
jne 0x410a86
mov eax, dword [ebp - 0xc08]
sub eax, dword [ebp - 0xc0c]
mov dword [ebp - 0xc14], eax
lea ecx, [ebp + 0x9c]
push ecx
push 0x5bc610
mov edx, dword [ebp - 0xc14]
lea eax, [ebp + edx - 0x9e8]
push eax
call fcn.00556a42
add esp, 0xc
lea ecx, [ebp + 0x88]
mov dword [ebp - 0xc18], ecx
mov edx, dword [ebp - 0xc18]
add edx, 1
mov dword [ebp - 0xc1c], edx
mov eax, dword [ebp - 0xc18]
mov cl, byte [eax]
mov byte [ebp - 0xc1d], cl
add dword [ebp - 0xc18], 1
cmp byte [ebp - 0xc1d], 0
jne 0x410af3
mov edx, dword [ebp - 0xc18]
sub edx, dword [ebp - 0xc1c]
mov dword [ebp - 0xc24], edx
je 0x410b92
lea eax, [ebp - 0x9e8]
mov dword [ebp - 0xc28], eax
mov ecx, dword [ebp - 0xc28]
add ecx, 1
mov dword [ebp - 0xc2c], ecx
mov edx, dword [ebp - 0xc28]
mov al, byte [edx]
mov byte [ebp - 0xc2d], al
add dword [ebp - 0xc28], 1
cmp byte [ebp - 0xc2d], 0
jne 0x410b40
mov ecx, dword [ebp - 0xc28]
sub ecx, dword [ebp - 0xc2c]
mov dword [ebp - 0xc34], ecx
lea edx, [ebp + 0x88]
push edx
push 0x5bc61c
mov eax, dword [ebp - 0xc34]
lea ecx, [ebp + eax - 0x9e8]
push ecx
call fcn.00556a42
add esp, 0xc
cmp dword [ebp + 0x98], 0
je 0x410bb6
push str.X_Modify_Type:_WIFI
push str._s_r_n
lea edx, [ebp - 0x8d8]
push edx
call fcn.00556a42
add esp, 0xc
jmp 0x410bcf
push 0x5b6165
push 0x5bc654
lea eax, [ebp - 0x8d8]
push eax
call fcn.00556a42
add esp, 0xc
lea ecx, [ebp + 0x28]
push ecx
push str.Virtual_IP:_s_r_n
lea edx, [ebp - 0x850]
push edx
call fcn.00556a42
add esp, 0xc
lea eax, [ebp - 0x9e8]
mov dword [ebp - 0xc38], eax
mov ecx, dword [ebp - 0xc38]
add ecx, 1
mov dword [ebp - 0xc3c], ecx
mov edx, dword [ebp - 0xc38]
mov al, byte [edx]
mov byte [ebp - 0xc3d], al
add dword [ebp - 0xc38], 1
cmp byte [ebp - 0xc3d], 0
jne 0x410c02
mov ecx, dword [ebp - 0xc38]
sub ecx, dword [ebp - 0xc3c]
mov dword [ebp - 0xc44], ecx
lea edx, [ebp - 0x9e8]
push edx
mov eax, dword [ebp - 0xc44]
push eax
lea ecx, [ebp - 0x8d8]
push ecx
lea edx, [ebp + 0xbc]
push edx
lea eax, [ebp - 0x850]
push eax
mov ecx, dword [ebp - 0x854]
push ecx
push str.CMD__HDS_1.0_r_nCSeq:_d_r_nClient_ID:nvmOPxEnYfQRAeLFdsMrpBbnMDbEPiMC_r_nAccept_Type:text_HDP_r_n_sAuthorization:Basic_YWRtaW46_r_nDevice_ID:_s_r_n_sContent_Length:_d_r_n_r_n_s_r_n
push 0x800
lea edx, [ebp - 0x808]
push edx
call fcn.00559374
add esp, 0x24
lea eax, [ebp - 0x808]
mov dword [ebp - 0xc48], eax
mov ecx, dword [ebp - 0xc48]
add ecx, 1
mov dword [ebp - 0xc4c], ecx
mov edx, dword [ebp - 0xc48]
mov al, byte [edx]
mov byte [ebp - 0xc4d], al
add dword [ebp - 0xc48], 1
cmp byte [ebp - 0xc4d], 0
jne 0x410c90
mov ecx, dword [ebp - 0xc48]
sub ecx, dword [ebp - 0xc4c]
mov dword [ebp - 0xc54], ecx
mov edx, dword [ebp - 0xc54]
mov dword [ebp - 0xaf4], edx
mov dword [ebp - 0xaf0], 0
mov dword [ebp - 0xafc], 0
mov dword [ebp - 0xaf8], 0x14
mov dword [ebp - 0xb00], 0
jmp 0x410d05
mov eax, dword [ebp - 0xb00]
add eax, 1
mov dword [ebp - 0xb00], eax
mov ecx, dword [ebp - 0xb00]
cmp ecx, dword [ebp - 0xaf0]
jae 0x410d31
mov edx, dword [ebp - 0xb04]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0xb00]
mov edx, dword [ebp + ecx*4 - 0xaec]
cmp edx, dword [eax]
jne 0x410d2f
jmp 0x410d31
jmp 0x410cf6
mov eax, dword [ebp - 0xb00]
cmp eax, dword [ebp - 0xaf0]
jne 0x410d6f
cmp dword [ebp - 0xaf0], 0x40
jae 0x410d6f
mov ecx, dword [ebp - 0xb04]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0xb00]
mov ecx, dword [edx]
mov dword [ebp + eax*4 - 0xaec], ecx
mov edx, dword [ebp - 0xaf0]
add edx, 1
mov dword [ebp - 0xaf0], edx
xor eax, eax
jne 0x410cea
lea ecx, [ebp - 0xafc]
push ecx
push 0
lea edx, [ebp - 0xaf0]
push edx
push 0
push 0
call dword [sym.imp.WSOCK32.dll_select]
mov dword [ebp - 0x858], eax
cmp dword [ebp - 0x858], 0
jne 0x410daa
or eax, 0xffffffff
jmp 0x410e6d
cmp dword [ebp - 0x858], 0xffffffff
jne 0x410dbb
or eax, 0xffffffff
jmp 0x410e6d
lea eax, [ebp - 0xaf0]
push eax
mov ecx, dword [ebp - 0xb04]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
je 0x410e54
lea ecx, [ebp - 0x808]
mov dword [ebp - 0xc58], ecx
mov edx, dword [ebp - 0xc58]
add edx, 1
mov dword [ebp - 0xc5c], edx
mov eax, dword [ebp - 0xc58]
mov cl, byte [eax]
mov byte [ebp - 0xc5d], cl
add dword [ebp - 0xc58], 1
cmp byte [ebp - 0xc5d], 0
jne 0x410df3
mov edx, dword [ebp - 0xc58]
sub edx, dword [ebp - 0xc5c]
mov dword [ebp - 0xc64], edx
push 0x10
lea eax, [ebp - 0x8e8]
push eax
push 0
mov ecx, dword [ebp - 0xc64]
push ecx
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 0xb04]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WSOCK32.dll_sendto]
mov dword [ebp - 0x858], eax
mov eax, dword [ebp - 0x854]
add eax, 1
mov dword [ebp - 0x854], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005562bb
mov esp, ebp
pop ebp
ret 0x174