Function at 0x4016e8
Capabilities:
Get hostname
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x254
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], str.GET__s_HTTP_1.1_r_nHost:_adl.windows.com_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_WicaAgent_r_nKey:__s_r_nts:__lu_r_nConnection:_close_r_n_r_n
add dword [ebp - 0xc], 1
mov dword [ebp - 0x18], 0x50
mov dword [esp], 0
call sub.msvcrt.dll_time
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx]
mov eax, dword [ebp + 0xc]
mov ecx, eax
call fcn.004236a0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.571f0936d221
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x21c]
mov dword [esp], eax
call fcn.0041f250
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004015af
movzx eax, ax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.00423680
mov edx, dword [ebp - 0x10]
add eax, edx
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.004236a0
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_gethostname]
call eax
sub esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4017c6
mov dword [esp], 4
call fcn.0042eab0
mov dword [eax], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x436f14
mov dword [esp], eax
call fcn.0042ee30
mov eax, dword [ebp - 0x18]
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, ax
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x22a], ax
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x10]
add eax, 2
mov word [ebp - 0x22c], ax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x10]
lea edx, [eax + 2]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
sub eax, 1
cmp dword [ebp - 0x24], eax
jne 0x40185d
mov dword [esp], 4
call fcn.0042eab0
mov dword [eax], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x436f14
mov dword [esp], eax
call fcn.0042ee30
mov eax, dword [ebp - 0x10]
add eax, 0x2710
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x10]
add eax, 0x80000
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x10]
add eax, 4
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0x1006]
mov dword [esp + 0x10], ecx
lea eax, [ebp - 0x230]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0xffff
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.004016b4
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x1006]
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0xffff]
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x234]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.004016b4
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0xffffffff
jne 0x40191d
mov dword [esp], 4
call fcn.0042eab0
mov dword [eax], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x436f14
mov dword [esp], eax
call fcn.0042ee30
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
add eax, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x21c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
nop
mov ebx, dword [ebp - 4]
leave
ret