Function at 0x14009b7e0
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x2920]
mov eax, 0x2a20
call fcn.1400b0dd0
sub rsp, rax
mov qword [rbp + 0xe8], 0xfffffffffffffffe
mov qword [rsp + 0x2a58], rbx
mov qword [rsp + 0x2a60], rsi
mov rax, qword [0x1401740c0]
xor rax, rsp
mov qword [rbp + 0x2910], rax
mov rdi, rcx
xor esi, esi
mov ebx, esi
mov dword [rsp + 0x50], ebx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf0], xmm0
mov qword [rbp + 0x100], rsi
mov r13d, esi
mov r12d, esi
mov r14d, esi
mov dword [rsp + 0x68], esi
lea r8, [rcx + 0x50]
lea rdx, str.Content_type:_multipart_form_data__boundary
lea rcx, [rbp - 0x30]
call fcn.1400897a0
nop
lea rax, [0x140126a50]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rsi
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x1910]
call fcn.1400b1c70
mov dword [rbp - 0x80], esi
mov rax, qword [0x140174018]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x28], rsi
lea rdx, str.Calculating_size_of_data_to_send.
lea rcx, [rbp + 0x90]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14009b0c4
test eax, eax
jne 0x14009b904
lea rdx, str.Error_calculating_size_of_data_to_send_
lea rcx, [rbp + 0x98]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
jmp 0x14009c1aa
lea rdx, str.Opening_Internet_connection.
lea rcx, [rbp - 8]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140126b40]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r13, rax
test rax, rax
jne 0x14009b954
lea rdx, str.Error_opening_Internet_session
lea rcx, [rbp]
jmp 0x14009b8e8
mov dword [rsp + 0x40], 0x400
lea rax, [rbp + 0x1110]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov ecx, 0x200
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea r8, [rbp + 0x510]
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.14009c290
lea rdx, str.Connecting_to_server
lea rcx, [rbp + 8]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rsi
xor r9d, r9d
movzx r8d, word [rsp + 0x68]
lea rdx, [rbp + 0x110]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetConnectW]
mov r12, rax
test rax, rax
jne 0x14009ba05
lea rdx, str.Error_connecting_to_server
lea rcx, [rbp + 0x10]
jmp 0x14009b8e8
mov dword [rbp - 0x48], esi
mov r9d, 4
lea r8, [rbp - 0x48]
lea edx, [r9 + 2]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov rcx, qword [rdi + 0x28]
call fcn.14006b688
test al, al
jne 0x14009c1aa
lea rdx, str.Opening_HTTP_request...
lea rcx, [rbp + 0x18]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
mov edx, 0x4200000
mov eax, 0x4a00000
cmp dword [rsp + 0x68], 0x1bb
cmove edx, eax
mov dword [rbp - 0x78], edx
mov eax, esi
mov dword [rsp + 0x60], eax
mov ecx, esi
jmp 0x14009ba76
xor esi, esi
test ecx, ecx
je 0x14009ba82
test eax, eax
je 0x14009c121
inc ecx
mov dword [rbp - 0x7c], ecx
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], edx
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp + 0x1110]
lea rdx, str.POST
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov r14, rax
test rax, rax
je 0x14009c181
mov dword [rsp + 0x64], esi
mov ebx, 4
mov dword [rbp - 0x44], ebx
lea r9, [rbp - 0x44]
lea r8, [rsp + 0x64]
lea edx, [rbx + 0x1b]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [rsp + 0x64], 0x3280
mov r9d, ebx
lea r8, [rsp + 0x64]
lea edx, [rbx + 0x1b]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [rbp + 0xa0], reloc.WS2_32.dll_getservbyport
mov qword [rbp + 0xa8], rsi
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0xb0], rax
mov ecx, dword [rax - 8]
mov dword [rbp + 0xb8], ecx
mov dword [rbp + 0xbc], esi
mov qword [rbp + 0xc0], rsi
mov dword [rbp + 0xc8], esi
mov rax, qword [rbp - 0x28]
mov dword [rbp + 0xcc], eax
and qword [rbp + 0xd0], 0
mov dword [rdi + 0x58], eax
mov dword [rdi + 0x5c], esi
lea rdx, str.Sending_HTTP_request...
lea rcx, [rbp + 0x20]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xa0]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x14009c171
mov rbx, qword [rdi + 8]
mov rbx, qword [rbx]
jmp 0x14009bc37
mov rsi, qword [rbx + 0x20]
cmp dword [rsi - 0xc], 0
jl 0x14009bbb9
mov qword [rbp - 0x70], rsi
lock inc dword [rsi - 0xc]
jmp 0x14009bbe4
mov rax, qword [0x140174018]
mov qword [rbp - 0x70], rax
test rsi, rsi
jne 0x14009bbcd
xor eax, eax
jmp 0x14009bbd6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rsi
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.1400670f0
lea r8, [rbp - 0x70]
mov rdx, r14
mov rcx, rdi
call fcn.14009cb20
xor esi, esi
test eax, eax
je 0x14009c1a6
cmp byte [rbx + 0x19], sil
jne 0x14009bc37
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], sil
jne 0x14009bc1b
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], sil
je 0x14009bc0d
jmp 0x14009bc37
mov rax, qword [rbx + 8]
jmp 0x14009bc2e
cmp rbx, qword [rax + 0x10]
jne 0x14009bc34
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], sil
je 0x14009bc21
mov rbx, rax
mov rax, qword [rdi + 8]
cmp rbx, rax
mov qword [rbp + 0x28], rax
jne 0x14009bba5
mov rbx, qword [rdi + 0x18]
mov rbx, qword [rbx]
jmp 0x14009bce6
mov rsi, qword [rbx + 0x20]
cmp dword [rsi - 0xc], 0
jl 0x14009bc68
mov qword [rbp - 0x68], rsi
lock inc dword [rsi - 0xc]
jmp 0x14009bc93
mov rax, qword [0x140174018]
mov qword [rbp - 0x68], rax
test rsi, rsi
jne 0x14009bc7c
xor eax, eax
jmp 0x14009bc85
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rsi
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.1400670f0
lea r8, [rbp - 0x68]
mov rdx, r14
mov rcx, rdi
call fcn.14009c5b0
xor esi, esi
test eax, eax
je 0x14009c1a6
cmp byte [rbx + 0x19], sil
jne 0x14009bce6
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], sil
jne 0x14009bcca
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], sil
je 0x14009bcbc
jmp 0x14009bce6
mov rax, qword [rbx + 8]
jmp 0x14009bcdd
cmp rbx, qword [rax + 0x10]
jne 0x14009bce3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], sil
je 0x14009bcd0
mov rbx, rax
mov rax, qword [rdi + 0x18]
cmp rbx, rax
mov qword [rbp + 0x30], rax
jne 0x14009bc54
mov rdx, r14
mov rcx, rdi
call fcn.14009d000
test eax, eax
je 0x14009c1a6
lea rdx, str.Ending_HTTP_request...
lea rcx, [rbp + 0x38]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x14009c164
lea rdx, str.Reading_server_response...
lea rcx, [rbp + 0x40]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
mov dword [rsp + 0x6c], esi
mov dword [rbp - 0x40], 4
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x6c]
mov edx, 0x20000013
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, eax
test eax, eax
je 0x14009bdf4
mov r8d, dword [rsp + 0x6c]
lea rdx, str.Server_response_code:__ld
lea rcx, [rsp + 0x70]
call fcn.14006895c
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0xc], 0
jl 0x14009bdbf
mov qword [rbp - 0x60], rbx
lock inc dword [rbx - 0xc]
jmp 0x14009bde1
mov rax, qword [0x140174018]
mov qword [rbp - 0x60], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.1400670f0
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
lea r9, [rbp - 0x80]
mov r8d, 0xfff
lea rdx, [rbp + 0x1910]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r8d, dword [rbp - 0x80]
cmp r8, 0x1000
jae 0x14009c15e
mov byte [rbp + r8 + 0x1910], 0
lea rdx, [rbp + 0x1910]
lea rcx, [rbp - 0x20]
call fcn.14009ac88
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140067f7c
nop
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009be71
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14009be71
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
call fcn.1400b0230
lea r8, [rsp + 0x70]
lea rdx, str.Server_response_body:
lea rcx, [rbp - 0x18]
call fcn.1400897a0
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140067f7c
nop
mov rcx, qword [rbp - 0x18]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009bebf
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14009bebf
mov rcx, qword [rbp - 0x18]
add rcx, 0xfffffffffffffff4
call fcn.1400b0230
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0xc], 0
jl 0x14009bed4
mov qword [rbp - 0x58], rbx
lock inc dword [rbx - 0xc]
jmp 0x14009befa
mov rax, qword [0x140174018]
mov qword [rbp - 0x58], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x70]
mov edx, eax
lea rcx, [rbp - 0x58]
call fcn.1400670f0
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp - 0x58]
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
cmp dword [rbp - 0x80], 0
jbe 0x14009bf23
mov al, byte [rbp + 0x1910]
sub al, 0x30
cmp al, 9
jbe 0x14009c08f
test esi, esi
je 0x14009c14e
cmp dword [rsp + 0x6c], 0x12e
jne 0x14009c117
mov eax, dword [rsp + 0x60]
xor esi, esi
test eax, eax
jne 0x14009c0ed
mov dword [rsp + 0x60], 1
mov ebx, 0x800
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x910]
call fcn.1400b1c70
mov dword [rbp - 0x38], ebx
mov dword [rbp - 0x3c], esi
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
lea r8, [rbp + 0x910]
lea edx, [rsi + 0x21]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x14009c0e0
mov dword [rsp + 0x40], 0x400
lea rax, [rbp + 0x1110]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov ecx, 0x200
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea r8, [rbp + 0x510]
lea rdx, [rbp + 0x910]
mov rcx, rdi
call fcn.14009c290
mov rax, qword [0x140174018]
mov qword [rbp - 0x10], rax
lea r8, [rbp + 0x910]
lea rdx, str.Redirecting_to__s
lea rcx, [rbp - 0x10]
call fcn.14006895c
mov rbx, qword [rbp - 0x10]
lea rsi, [rbx - 0xc]
cmp dword [rsi], 0
jl 0x14009c017
mov qword [rbp - 0x50], rbx
lock inc dword [rsi]
jmp 0x14009c039
mov rax, qword [0x140174018]
mov qword [rbp - 0x50], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.1400670f0
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
nop
cmp rsi, qword [0x140174010]
mov eax, dword [rsp + 0x60]
mov ecx, dword [rbp - 0x7c]
mov edx, dword [rbp - 0x78]
je 0x14009ba74
or eax, 0xffffffff
lock xadd dword [rsi], eax
sub eax, 1
mov eax, dword [rsp + 0x60]
jg 0x14009ba74
mov rcx, rsi
call fcn.1400b0230
mov eax, dword [rsp + 0x60]
mov ecx, dword [rbp - 0x7c]
mov edx, dword [rbp - 0x78]
jmp 0x14009ba74
lea rdx, str.Assuming_legacy_method_of_determining_delivery_status__from_HTTP_response_body_.
lea rcx, [rbp + 0x48]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
lea rcx, [rbp + 0x1910]
call fcn.1400bfa3c
cmp eax, 0xc8
je 0x14009c121
lea rdx, str.Failed__HTTP_response_body_doesnt_start_with_code_200_.
lea rcx, [rbp + 0x50]
call fcn.140067e3c
xor r9d, r9d
lea r8d, [r9 + 0x64]
jmp 0x14009c19a
lea rdx, str.Failed_to_redirect.
lea rcx, [rbp + 0x58]
jmp 0x14009c0f8
lea rdx, str.Multiple_redirects_are_not_allowed.
lea rcx, [rbp + 0x60]
call fcn.140067e3c
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
mov ebx, esi
jmp 0x14009c1aa
cmp dword [rsp + 0x6c], 0xc8
jne 0x14009c14e
lea rdx, str.Error_report_has_been_sent_OK_
lea rcx, [rbp + 0x68]
call fcn.140067e3c
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
mov ebx, 1
jmp 0x14009c1ce
lea rdx, str.Failed__HTTP_response_code_is_not_equal_to_200_.
lea rcx, [rbp + 0x70]
jmp 0x14009c0cf
call fcn.1400b0380
int3
lea rdx, str.HttpEndRequest_has_failed.
lea rcx, [rbp + 0x78]
jmp 0x14009c18f
lea rdx, str.HttpSendRequestEx_has_failed.
lea rcx, [rbp + 0x80]
jmp 0x14009c18f
lea rdx, str.HttpOpenRequest_has_failed.
lea rcx, [rbp + 0x88]
call fcn.140067e3c
xor r8d, r8d
mov r9b, 1
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
mov ebx, dword [rsp + 0x50]
lea rdx, str.Error_sending_HTTP_request.
lea rcx, [rsp + 0x78]
call fcn.140067e3c
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006b790
test r14, r14
je 0x14009c1dc
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r12, r12
je 0x14009c1ea
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r13, r13
je 0x14009c1f8
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, ebx
xor edx, 1
mov rcx, qword [rdi + 0x28]
call fcn.14006b708
nop
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009c22b
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14009c22b
call fcn.1400b0230
nop
mov rax, qword [rbp - 0x30]
add rax, 0xfffffffffffffff4
cmp rax, qword [0x140174010]
je 0x14009c256
or ecx, 0xffffffff
lock xadd dword [rax], ecx
sub ecx, 1
jg 0x14009c256
mov rcx, qword [rbp - 0x30]
add rcx, 0xfffffffffffffff4
call fcn.1400b0230
nop
lea rcx, [rbp + 0xf0]
call fcn.140067f00
mov eax, ebx
mov rcx, qword [rbp + 0x2910]
xor rcx, rsp
call fcn.1400b0730
lea r11, [rsp + 0x2a20]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret