Function at 0x140063040
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe80
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x1402126b0]
xor rax, rsp
mov qword [rsp + 0xe70], rax
lea rax, [rsp + 0x340]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov rax, qword [str.http:__]
mov qword [rsp + 0x2c0], rax
lea rdx, [rsp + 0x2c0]
mov rcx, qword [rsp + 0xe98]
call fcn.14013cc60
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400630ce
mov rax, qword [rsp + 0xe98]
mov qword [rsp + 0x38], rax
jmp 0x14006310e
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
cmp byte [rax + rcx], 0
jne 0x1400630e4
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov edx, 0x2f
mov rcx, qword [rsp + 0x38]
call fcn.14013cbd4
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov r8, rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x340]
call fcn.140151db0
lea rcx, str.WSAStartup
call fcn.14002c290
lea rdx, [rsp + 0x120]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rcx, str.gethostbyname
call fcn.14002c290
lea rcx, [rsp + 0x340]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400631a2
lea rcx, str.Unable_to_locate_host
call fcn.14002c290
mov eax, 0xffffff9c
jmp 0x1400635ea
mov eax, 2
mov word [rsp + 0xc8], ax
mov cx, 0x50
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xca], ax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rsp + 0xcc], eax
lea rcx, str.socket
call fcn.14002c290
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x140063216
lea rcx, str.socket_failed
call fcn.14002c290
mov eax, 0xffffff9b
jmp 0x1400635ea
lea rcx, str.connect
call fcn.14002c290
mov dword [rsp + 0xc0], 0x2710
movsxd rax, dword [rsp + 0x30]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xc0]
mov r8d, 0x1005
mov edx, 0xffff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
movsxd rax, dword [rsp + 0x30]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xc0]
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
movsxd rax, dword [rsp + 0x30]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0xc8]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400632b6
lea rcx, str.connect_failed
call fcn.14002c290
mov eax, 0xffffff9a
jmp 0x1400635ea
lea rcx, [rsp + 0xd8]
call fcn.140009a60
nop
mov rcx, qword [rsp + 0xea0]
call fcn.140009780
mov r8, rax
lea rdx, str.Content_Length:__d_r_n
lea rcx, [rsp + 0x2d0]
call fcn.140064000
lea rdx, str.POST
lea rcx, [rsp + 0xd8]
call fcn.140010460
mov rdx, qword [rsp + 0xe98]
mov rcx, rax
call fcn.140010460
lea rdx, str._HTTP_1.1_r_n
mov rcx, rax
call fcn.140010460
lea rdx, str.Host:
mov rcx, rax
call fcn.140010460
lea rdx, [rsp + 0x340]
mov rcx, rax
call fcn.140010460
lea rdx, [0x1401b3c8c]
mov rcx, rax
call fcn.140010460
lea rdx, str.Connection:_keep_alive_r_n
mov rcx, rax
call fcn.140010460
lea rdx, [rsp + 0x2d0]
mov rcx, rax
call fcn.140010460
lea rdx, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov rcx, rax
call fcn.140010460
lea rdx, [0x1401b3c9c]
mov rcx, rax
call fcn.140010460
mov rdx, qword [rsp + 0xea0]
mov rcx, rax
call fcn.1400104a0
lea rcx, str.send
call fcn.14002c290
lea rcx, [rsp + 0xd8]
call fcn.140009780
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xd8]
call fcn.1400097a0
movsxd rcx, dword [rsp + 0x30]
xor r9d, r9d
mov rdx, qword [rsp + 0x80]
mov r8d, edx
mov rdx, rax
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140063433
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov r8d, dword [rsp + 0x48]
lea rdx, str.send_failed__d_
lea rcx, [rsp + 0x450]
call fcn.14002c440
lea rcx, [rsp + 0x450]
call fcn.14002c290
mov dword [rsp + 0x4c], 0xffffff99
lea rcx, [rsp + 0xd8]
call fcn.140009960
mov eax, dword [rsp + 0x4c]
jmp 0x1400635ea
lea rcx, str.recv
call fcn.14002c290
lea rax, [rsp + 0x670]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rsp + 0x670]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1400634c5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x50], eax
mov r8d, dword [rsp + 0x50]
lea rdx, str.recv_failed__d_
lea rcx, [rsp + 0x560]
call fcn.14002c440
lea rcx, [rsp + 0x560]
call fcn.14002c290
mov dword [rsp + 0x54], 0xffffff98
lea rcx, [rsp + 0xd8]
call fcn.140009960
mov eax, dword [rsp + 0x54]
jmp 0x1400635ea
mov eax, 1
imul rax, rax, 0x3ff
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0x400
jae 0x1400634e3
jmp 0x1400634e8
call fcn.140138480
mov rax, qword [rsp + 0x68]
mov byte [rsp + rax + 0x670], 0
lea rax, [rsp + 0xa70]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
lea rdx, str.post::Request
lea rcx, [rsp + 0xf8]
call fcn.140009a10
nop
lea r8, [rsp + 0x670]
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xa0]
call fcn.1400259a0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400097a0
mov rcx, rax
call fcn.14002c290
nop
lea rcx, [rsp + 0xa0]
call fcn.140009960
lea r8, [rsp + 0xa70]
lea rdx, [rsp + 0x670]
mov rcx, qword [rsp + 0xe90]
call fcn.140063610
lea rdx, [rsp + 0xa70]
mov rcx, qword [rsp + 0xea8]
call fcn.14002c410
lea rcx, str.WSACleanup
call fcn.14002c290
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x58], 1
lea rcx, [rsp + 0xf8]
call fcn.140009960
nop
lea rcx, [rsp + 0xd8]
call fcn.140009960
mov eax, dword [rsp + 0x58]
jmp 0x1400635ea
mov rcx, qword [rsp + 0xe70]
xor rcx, rsp
call fcn.140138320
add rsp, 0xe80
pop rdi
ret