Function at 0x1400a8d8c
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 - 0x2900]
mov eax, 0x2a00
call fcn.1400bf810
sub rsp, rax
mov qword [rbp + 0xc0], 0xfffffffffffffffe
mov qword [rsp + 0x2a38], rbx
mov qword [rsp + 0x2a40], rsi
mov rax, qword [0x1401080e0]
xor rax, rsp
mov qword [rbp + 0x28f0], rax
mov rdi, rcx
xor esi, esi
mov ebx, esi
mov dword [rsp + 0x50], ebx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], rsi
mov r13d, esi
mov r12d, esi
mov r14d, esi
mov dword [rsp + 0x60], esi
lea r8, [rcx + 0x50]
lea rdx, str.Content_type:_multipart_form_data__boundary
lea rcx, [rbp - 0x68]
call fcn.140094b9c
nop
lea rax, [0x1400ce520]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rsi
mov byte [rbp + 0x18f0], sil
xor edx, edx
mov r8d, 0xfff
lea rcx, [rbp + 0x18f1]
call sub.MSVCR120.dll_memset
mov dword [rsp + 0x70], esi
mov rax, qword [0x140108018]
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x38], rsi
lea rdx, str.Calculating_size_of_data_to_send.
lea rcx, [rbp + 0x90]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.1400a86a0
test eax, eax
jne 0x1400a8eaf
lea rdx, str.Error_calculating_size_of_data_to_send_
lea rcx, [rbp + 0x30]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
jmp 0x1400a9761
lea rdx, str.Opening_Internet_connection.
lea rcx, [rbp + 0xd0]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400ce610]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r13, rax
test rax, rax
jne 0x1400a8f02
lea rdx, str.Error_opening_Internet_session
lea rcx, [rbp + 0x48]
jmp 0x1400a8e93
mov dword [rsp + 0x40], 0x400
lea rax, [rbp + 0xcf0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov ecx, 0x200
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea r8, [rbp + 0x14f0]
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.1400a9840
lea rdx, str.Connecting_to_server
lea rcx, [rbp + 0xb8]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
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 + 0x60]
lea rdx, [rbp + 0xf0]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetConnectW]
mov r12, rax
test rax, rax
jne 0x1400a8fb6
lea rdx, str.Error_connecting_to_server
lea rcx, [rbp + 0x58]
jmp 0x1400a8e93
mov dword [rbp - 0x60], esi
mov r9d, 4
lea r8, [rbp - 0x60]
lea edx, [r9 + 2]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov rcx, qword [rdi + 0x28]
call fcn.14006c984
test al, al
jne 0x1400a9761
lea rdx, str.Opening_HTTP_request...
lea rcx, [rbp + 0xd8]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
mov edx, 0x4200000
mov eax, 0x4a00000
cmp dword [rsp + 0x60], 0x1bb
cmove edx, eax
mov dword [rsp + 0x74], edx
mov eax, esi
mov dword [rsp + 0x54], eax
mov ecx, esi
jmp 0x1400a902b
xor esi, esi
test ecx, ecx
je 0x1400a9037
test eax, eax
je 0x1400a96e1
inc ecx
mov dword [rsp + 0x78], ecx
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], edx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp + 0xcf0]
lea rdx, str.POST
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov r14, rax
test rax, rax
je 0x1400a973b
mov dword [rsp + 0x5c], esi
mov ebx, 4
mov dword [rbp - 0x58], ebx
lea r9, [rbp - 0x58]
lea r8, [rsp + 0x5c]
lea edx, [rbx + 0x1b]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [rsp + 0x5c], 0x3280
mov r9d, ebx
lea r8, [rsp + 0x5c]
lea edx, [rbx + 0x1b]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [rbp - 0x18], reloc.WS2_32.dll_getservbyport
mov qword [rbp - 0x10], rsi
mov rax, qword [rbp - 0x68]
mov qword [rbp - 8], rax
mov ecx, dword [rax - 8]
mov dword [rbp], ecx
mov dword [rbp + 4], esi
mov qword [rbp + 8], rsi
mov dword [rbp + 0x10], esi
mov rax, qword [rbp - 0x38]
mov dword [rbp + 0x14], eax
mov qword [rbp + 0x18], 0
mov dword [rdi + 0x58], eax
mov dword [rdi + 0x5c], esi
lea rdx, str.Sending_HTTP_request...
lea rcx, [rbp + 0x68]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x18]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x1400a972e
mov rax, qword [rdi + 8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400a91de
mov rsi, qword [rbx + 0x20]
xor ecx, ecx
cmp dword [rsi - 0xc], ecx
jl 0x1400a9156
mov qword [rbp - 0x50], rsi
lock inc dword [rsi - 0xc]
jmp 0x1400a9181
mov rax, qword [0x140108018]
mov qword [rbp - 0x50], rax
test rsi, rsi
jne 0x1400a916a
mov eax, ecx
jmp 0x1400a9173
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rsi
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.140067304
lea r8, [rbp - 0x50]
mov rdx, r14
mov rcx, rdi
call fcn.1400aa0d0
xor esi, esi
test eax, eax
je 0x1400a975d
cmp byte [rbx + 0x19], sil
jne 0x1400a91d4
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], sil
jne 0x1400a91b8
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], sil
je 0x1400a91aa
jmp 0x1400a91d4
mov rax, qword [rbx + 8]
jmp 0x1400a91cb
cmp rbx, qword [rax + 0x10]
jne 0x1400a91d1
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], sil
je 0x1400a91be
mov rbx, rax
cmp rbx, qword [rdi + 8]
jne 0x1400a9141
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400a928b
mov rsi, qword [rbx + 0x20]
xor ecx, ecx
cmp dword [rsi - 0xc], ecx
jl 0x1400a9203
mov qword [rbp - 0x40], rsi
lock inc dword [rsi - 0xc]
jmp 0x1400a922e
mov rax, qword [0x140108018]
mov qword [rbp - 0x40], rax
test rsi, rsi
jne 0x1400a9217
mov eax, ecx
jmp 0x1400a9220
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rsi
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140067304
lea r8, [rbp - 0x40]
mov rdx, r14
mov rcx, rdi
call fcn.1400a9b68
xor esi, esi
test eax, eax
je 0x1400a975d
cmp byte [rbx + 0x19], sil
jne 0x1400a9281
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], sil
jne 0x1400a9265
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], sil
je 0x1400a9257
jmp 0x1400a9281
mov rax, qword [rbx + 8]
jmp 0x1400a9278
cmp rbx, qword [rax + 0x10]
jne 0x1400a927e
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], sil
je 0x1400a926b
mov rbx, rax
cmp rbx, qword [rdi + 0x18]
jne 0x1400a91ee
mov rdx, r14
mov rcx, rdi
call fcn.1400aa588
test eax, eax
je 0x1400a975d
lea rdx, str.Ending_HTTP_request...
lea rcx, [rbp + 0xc8]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x1400a9721
lea rdx, str.Reading_server_response...
lea rcx, [rbp + 0x78]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
mov dword [rsp + 0x58], esi
mov dword [rbp - 0x5c], 4
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x5c]
lea r8, [rsp + 0x58]
mov edx, 0x20000013
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, eax
xor ebx, ebx
test eax, eax
je 0x1400a9390
mov r8d, dword [rsp + 0x58]
lea rdx, str.Server_response_code:__ld
lea rcx, [rsp + 0x68]
call fcn.140069514
mov rbx, qword [rsp + 0x68]
xor ecx, ecx
cmp dword [rbx - 0xc], ecx
jl 0x1400a9359
mov qword [rbp - 0x48], rbx
lock inc dword [rbx - 0xc]
jmp 0x1400a937b
mov rax, qword [0x140108018]
mov qword [rbp - 0x48], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x48]
call fcn.140067304
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp - 0x48]
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
xor ebx, ebx
lea r9, [rsp + 0x70]
mov r8d, 0xfff
lea rdx, [rbp + 0x18f0]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r8d, dword [rsp + 0x70]
cmp r8, 0x1000
jae 0x1400a971b
mov byte [rbp + r8 + 0x18f0], bl
lea rdx, [rbp + 0x18f0]
lea rcx, [rbp - 0x28]
call fcn.1400a8020
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140068904
nop
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400a9408
lock add dword [rcx], 0xffffffff
jg 0x1400a9408
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff4
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
lea r8, [rsp + 0x68]
lea rdx, str.Server_response_body:
lea rcx, [rbp - 0x20]
call fcn.140094b9c
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140068904
nop
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400a9450
lock add dword [rcx], 0xffffffff
jg 0x1400a9450
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov rbx, qword [rsp + 0x68]
xor ecx, ecx
cmp dword [rbx - 0xc], ecx
jl 0x1400a9466
mov qword [rbp - 0x80], rbx
lock inc dword [rbx - 0xc]
jmp 0x1400a948c
mov rax, qword [0x140108018]
mov qword [rbp - 0x80], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.140067304
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
xor ecx, ecx
cmp dword [rsp + 0x70], ecx
jbe 0x1400a94b7
mov al, byte [rbp + 0x18f0]
sub al, 0x30
cmp al, 9
jbe 0x1400a9632
test esi, esi
je 0x1400a970b
cmp dword [rsp + 0x58], 0x12e
jne 0x1400a96d5
mov eax, dword [rsp + 0x54]
xor esi, esi
test eax, eax
jne 0x1400a96a8
mov dword [rsp + 0x54], 1
mov word [rbp + 0x4f0], si
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x4f2]
call sub.MSVCR120.dll_memset
mov dword [rsp + 0x7c], 0x800
mov dword [rbp - 0x70], esi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x7c]
lea r8, [rbp + 0x4f0]
lea edx, [rsi + 0x21]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1400a9698
mov dword [rsp + 0x40], 0x400
lea rax, [rbp + 0xcf0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov ecx, 0x200
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea r8, [rbp + 0x14f0]
lea rdx, [rbp + 0x4f0]
mov rcx, rdi
call fcn.1400a9840
mov rax, qword [0x140108018]
mov qword [rbp - 0x30], rax
lea r8, [rbp + 0x4f0]
lea rdx, str.Redirecting_to__s
lea rcx, [rbp - 0x30]
call fcn.140069514
mov rbx, qword [rbp - 0x30]
lea rsi, [rbx - 0xc]
xor eax, eax
cmp dword [rsi], eax
jl 0x1400a95b7
mov qword [rbp - 0x78], rbx
lock inc dword [rsi]
jmp 0x1400a95d9
mov rax, qword [0x140108018]
mov qword [rbp - 0x78], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x78]
call fcn.140067304
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
nop
cmp rsi, qword [0x140108010]
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x78]
mov edx, dword [rsp + 0x74]
je 0x1400a9029
or eax, 0xffffffff
lock xadd dword [rsi], eax
dec eax
mov eax, dword [rsp + 0x54]
jg 0x1400a9029
mov rcx, rsi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x78]
mov edx, dword [rsp + 0x74]
jmp 0x1400a9029
lea rdx, str.Assuming_legacy_method_of_determining_delivery_status__from_HTTP_response_body_.
lea rcx, [rbp + 0xe8]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
lea rcx, [rbp + 0x18f0]
call qword [sym.imp.MSVCR120.dll_atoi]
cmp eax, 0xc8
je 0x1400a96df
lea rdx, str.Failed__HTTP_response_body_doesnt_start_with_code_200_.
lea rcx, [rbp + 0x88]
call fcn.14006874c
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
xor esi, esi
jmp 0x1400a975d
lea rdx, str.Failed_to_redirect.
lea rcx, [rbp + 0xe0]
jmp 0x1400a96b6
lea rdx, str.Multiple_redirects_are_not_allowed.
lea rcx, [rbp + 0x98]
call fcn.14006874c
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
mov ebx, esi
jmp 0x1400a9761
cmp dword [rsp + 0x58], 0xc8
jne 0x1400a970b
xor esi, esi
lea rdx, str.Error_report_has_been_sent_OK_
lea rcx, [rbp + 0x38]
call fcn.14006874c
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
mov ebx, 1
jmp 0x1400a9787
lea rdx, str.Failed__HTTP_response_code_is_not_equal_to_200_.
lea rcx, [rbp + 0x40]
jmp 0x1400a9679
call fcn.1400bf1c8
int3
lea rdx, str.HttpEndRequest_has_failed.
lea rcx, [rbp + 0x50]
jmp 0x1400a9746
lea rdx, str.HttpSendRequestEx_has_failed.
lea rcx, [rbp + 0x60]
jmp 0x1400a9746
lea rdx, str.HttpOpenRequest_has_failed.
lea rcx, [rbp + 0x70]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
mov ebx, dword [rsp + 0x50]
lea rdx, str.Error_sending_HTTP_request.
lea rcx, [rbp + 0x80]
call fcn.14006874c
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.14006caa0
test r14, r14
je 0x1400a9795
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r12, r12
je 0x1400a97a3
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r13, r13
je 0x1400a97b1
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, esi
test ebx, ebx
sete dl
mov rcx, qword [rdi + 0x28]
call fcn.14006ca18
nop
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400a97e0
lock add dword [rcx], 0xffffffff
jg 0x1400a97e0
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rax, qword [rbp - 0x68]
add rax, 0xfffffffffffffff4
cmp rax, qword [0x140108010]
je 0x1400a9805
lock add dword [rax], 0xffffffff
jg 0x1400a9805
mov rcx, qword [rbp - 0x68]
add rcx, 0xfffffffffffffff4
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
lea rcx, [rbp + 0xa0]
call fcn.140068890
mov eax, ebx
mov rcx, qword [rbp + 0x28f0]
xor rcx, rsp
call fcn.1400bf530
lea r11, [rsp + 0x2a00]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret