Function at 0x14001d8d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x6e0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14017c030]
xor rax, rsp
mov qword [rsp + 0x6d0], rax
mov r14, r8
mov r13, rdx
mov rdi, rcx
lea rcx, [rsp + 0x230]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void____ptr64]
nop
mov edx, 2
mov r12d, 1
mov r8d, r12d
lea rcx, [rsp + 0x140]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int____ptr64]
nop
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rsp + 0x2d0]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
je 0x14001d993
movsxd r8, ebx
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x140]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
cmp ebx, 0x400
jl 0x14001d993
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rsp + 0x2d0]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jne 0x14001d952
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x140]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void____ptr64]
nop
lea rdx, [rsp + 0x288]
cmp qword [rsp + 0x2a0], 0x10
cmovae rdx, qword [rsp + 0x288]
lea rcx, str._n_s_n
call qword [sym.imp.MSVCR90.dll_printf]
xor ebp, ebp
xor esi, esi
mov rcx, qword [rsp + 0x298]
test rcx, rcx
je 0x14001db27
cmp rsi, rcx
jbe 0x14001d9f1
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea rax, [rsp + 0x288]
cmp qword [rsp + 0x2a0], 0x10
cmovae rax, qword [rsp + 0x288]
movzx edx, byte [rax + rsi]
test ebx, ebx
je 0x14001dabe
cmp ebx, 0xffffffff
je 0x14001dabe
cmp dl, 0xd
je 0x14001da3e
cmp dl, 0xa
je 0x14001da3e
test dl, dl
je 0x14001da3e
lea rcx, [rsp + 0x230]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char____ptr64]
jmp 0x14001daa3
cmp qword [rsp + 0x248], 0
je 0x14001da95
test r12d, r12d
je 0x14001da74
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x258]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov rdx, rax
mov rcx, rdi
call fcn.14001df30
xor r12d, r12d
jmp 0x14001da95
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x258]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov rdx, rax
mov rcx, rdi
call fcn.14001e060
lea rcx, [rsp + 0x230]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void____ptr64]
inc ebp
inc rsi
movsxd rax, ebp
mov rcx, qword [rsp + 0x298]
cmp rax, rcx
jb 0x14001d9e6
jmp 0x14001db27
cmp qword [rsp + 0x248], 0
je 0x14001db89
test r12d, r12d
je 0x14001daf8
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x258]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov rdx, rax
mov rcx, rdi
call fcn.14001df30
xor r12d, r12d
jmp 0x14001db19
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x258]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov rdx, rax
mov rcx, rdi
call fcn.14001e060
lea rcx, [rsp + 0x230]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void____ptr64]
cmp qword [rsp + 0x248], 0
je 0x14001db89
test r12d, r12d
je 0x14001db5a
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x258]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov rdx, rax
mov rcx, rdi
call fcn.14001df30
jmp 0x14001db7b
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x258]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov rdx, rax
mov rcx, rdi
call fcn.14001e060
lea rcx, [rsp + 0x230]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void____ptr64]
cmp qword [rdi + 0x28], 0x10
jb 0x14001db96
mov rbx, qword [rdi + 0x10]
jmp 0x14001db9a
lea rbx, [rdi + 0x10]
mov ecx, dword [r14 + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
mov r8, rbx
lea rcx, [0x140127cf0]
call qword [sym.imp.MSVCR90.dll_printf]
mov qword [rsp + 0x30], 0
cmp qword [rdi + 0x28], 0x10
jb 0x14001dbcd
mov rdx, qword [rdi + 0x10]
jmp 0x14001dbd1
lea rdx, [rdi + 0x10]
mov rax, qword [rdi]
lea r8, [rsp + 0x30]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
test eax, eax
je 0x14001dc75
lea rdx, str.HTTP_1.1_404_Not_Found_r_n_r_n
lea rcx, [rsp + 0x258]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64____ptr64]
lea rdx, [rsp + 0x260]
cmp qword [rsp + 0x278], 0x10
cmovae rdx, qword [rsp + 0x260]
xor r9d, r9d
mov r8d, dword [rsp + 0x270]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_send]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [rsp + 0x258]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x280]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x140]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void____ptr64]
nop
lea rcx, [rsp + 0x230]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
xor eax, eax
jmp 0x14001df0c
mov qword [rsp + 0x40], 0xffffffffffffffff
mov qword [rsp + 0x38], 0xffffffffffffffff
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001e3e0
mov ebx, eax
mov r9, qword [rdi]
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call qword [r9 + 0x28]
mov r12, rax
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int____ptr64]
nop
test ebx, ebx
je 0x14001ddcd
mov rbp, qword [rsp + 0x40]
test rbp, rbp
jne 0x14001dce5
mov rsi, qword [rsp + 0x38]
cmp rsi, 0xffffffffffffffff
je 0x14001ddcd
jmp 0x14001dd0c
cmp rbp, 0xffffffffffffffff
jne 0x14001dcfa
mov rbp, r12
sub rbp, qword [rsp + 0x38]
lea rsi, [r12 + 1]
jmp 0x14001dcff
mov rsi, qword [rsp + 0x38]
cmp rsi, 0xffffffffffffffff
jne 0x14001dd0c
lea rsi, [r12 + 1]
jmp 0x14001dd14
cmp rsi, r12
jge 0x14001dd14
inc rsi
lea rdx, str.HTTP_1.1_206_Partial_Content_r_n
lea rcx, [rsp + 0x50]
call fcn.14001ff80
mov rbx, rsi
sub rbx, rbp
lea rdx, str.Content_Length:
lea rcx, [rsp + 0x50]
call fcn.14001ff80
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140127d40]
call fcn.14001ff80
lea rdx, str.Content_Range:_bytes
lea rcx, [rsp + 0x50]
call fcn.14001ff80
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140127d60]
call fcn.14001ff80
mov rcx, rax
lea rdx, [rsi - 1]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140127d5c]
call fcn.14001ff80
mov rcx, rax
mov rdx, r12
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140127d40]
call fcn.14001ff80
lea rdx, [0x140127d40]
lea rcx, [rsp + 0x50]
call fcn.14001ff80
jmp 0x14001de22
xor ebp, ebp
lea rsi, [r12 + 1]
lea rdx, str.HTTP_1.1_200_OK_r_n
lea rcx, [rsp + 0x50]
call fcn.14001ff80
lea rdx, str.Content_Length:
lea rcx, [rsp + 0x50]
call fcn.14001ff80
mov rcx, rax
mov rdx, r12
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140127d40]
call fcn.14001ff80
lea rdx, [0x140127d40]
lea rcx, [rsp + 0x50]
call fcn.14001ff80
lea rdx, [rsp + reloc.mfc90u.dll_CHtmlEditCtrl::CHtmlEditCtrl]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void____ptr64]
nop
lea rdx, [rsp + 0x2b0]
cmp qword [rsp + 0x2c8], 0x10
cmovae rdx, qword [rsp + 0x2b0]
lea rcx, [0x140127d94]
call qword [sym.imp.MSVCR90.dll_printf]
lea rdx, [rsp + 0x2b0]
cmp qword [rsp + 0x2c8], 0x10
cmovae rdx, qword [rsp + 0x2b0]
xor r9d, r9d
mov r8d, dword [rsp + 0x2c0]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_send]
mov r11, qword [rdi]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
mov r9, rbp
mov r8, qword [rsp + 0x30]
mov rdx, r13
mov rcx, rdi
call qword [r11 + 0x18]
mov r11, qword [rdi]
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call qword [r11 + 0x20]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
nop
lea rcx, [rsp + reloc.mfc90u.dll_CHtmlEditCtrl::CHtmlEditCtrl]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void____ptr64]
nop
lea rcx, [rsp + 0x280]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x140]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void____ptr64]
nop
lea rcx, [rsp + 0x230]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0x6d0]
xor rcx, rsp
call fcn.140113b50
add rsp, 0x6e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret