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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x2900]
mov eax, 0x2a00
call fcn.1400b1570
sub rsp, rax
mov rax, qword [0x1400ef0c8]
xor rax, rsp
mov qword [rbp + 0x28f0], rax
mov rdi, rcx
xor r15d, r15d
mov esi, r15d
mov dword [rsp + 0x60], r15d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r15
mov ebx, r15d
mov r13d, r15d
mov r14d, r15d
mov dword [rsp + 0x6c], r15d
lea r8, [rcx + 0x50]
lea rdx, str.Content_type:_multipart_form_data__boundary
lea rcx, [rbp - 0x18]
call fcn.14008bf08
nop
lea rax, [0x1400bc2f0]
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], r15
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x18f0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x78], r15d
mov rax, qword [0x1400ef018]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x10], r15
lea rdx, str.Calculating_size_of_data_to_send.
lea rcx, [rbp + 0x68]
call fcn.14006c728
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.14009cf0c
test eax, eax
jne 0x14009d752
lea rdx, str.Error_calculating_size_of_data_to_send_
lea rcx, [rsp + 0x58]
call fcn.14006c728
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
jmp 0x14009e04e
lea rdx, str.Opening_Internet_connection.
lea rcx, [rbp + 0x70]
call fcn.14006c728
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400bc3e0]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14009d7a4
lea rdx, str.Error_opening_Internet_session
jmp 0x14009d731
mov dword [rsp + 0x40], 0x400
lea rax, [rbp + 0x10f0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x6c]
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 + 0x4f0]
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.14009e138
lea rdx, str.Connecting_to_server
lea rcx, [rbp + 8]
call fcn.14006c728
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r15
xor r9d, r9d
movzx r8d, word [rsp + 0x6c]
lea rdx, [rbp + 0xf0]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetConnectW]
mov r13, rax
test rax, rax
jne 0x14009d852
lea rdx, str.Error_connecting_to_server
jmp 0x14009d731
mov dword [rbp - 0x30], r15d
mov r9d, 4
lea r8, [rbp - 0x30]
lea edx, [r9 + 2]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov rcx, qword [rdi + 0x28]
call fcn.140070030
test al, al
jne 0x14009e04e
lea rdx, str.Opening_HTTP_request...
lea rcx, [rbp + 0x10]
call fcn.14006c728
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
mov ecx, 0x4200000
mov eax, 0x4a00000
cmp dword [rsp + 0x6c], 0x1bb
cmove ecx, eax
mov dword [rbp - 0x68], ecx
mov dword [rbp - 0x60], r15d
xor edx, edx
mov eax, edx
test eax, eax
je 0x14009d8cd
test r15d, r15d
je 0x14009dfca
inc eax
mov dword [rbp - 0x74], eax
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], ecx
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp + 0x10f0]
lea rdx, str.POST
mov rcx, r13
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov r14, rax
test rax, rax
je 0x14009e024
mov dword [rsp + 0x68], r15d
lea ebx, [r15 + 4]
mov dword [rbp - 0x2c], ebx
lea r9, [rbp - 0x2c]
lea r8, [rsp + 0x68]
lea edx, [rbx + 0x1b]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [rsp + 0x68], 0x3280
mov r9d, ebx
lea r8, [rsp + 0x68]
lea edx, [rbx + 0x1b]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [rbp + 0x78], reloc.WS2_32.dll_getservbyport
mov qword [rbp + 0x80], r15
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x88], rax
mov ecx, dword [rax - 8]
mov dword [rbp + 0x90], ecx
mov dword [rbp + 0x94], r15d
mov qword [rbp + 0x98], r15
mov dword [rbp + 0xa0], r15d
mov rax, qword [rbp - 0x10]
mov dword [rbp + 0xa4], eax
mov qword [rbp + 0xa8], r15
mov dword [rdi + 0x58], eax
mov dword [rdi + 0x5c], r15d
lea rdx, str.Sending_HTTP_request...
lea rcx, [rbp + 0x18]
call fcn.14006c728
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x78]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x14009e017
mov rax, qword [rdi + 8]
mov rbx, qword [rax]
jmp 0x14009da94
mov rsi, qword [rbx + 0x20]
cmp dword [rsi - 0xc], r15d
jl 0x14009da03
mov qword [rbp - 0x58], rsi
lock inc dword [rsi - 0xc]
jmp 0x14009da2f
mov rax, qword [0x1400ef018]
mov qword [rbp - 0x58], rax
test rsi, rsi
jne 0x14009da18
mov eax, r15d
jmp 0x14009da21
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rsi
mov edx, eax
lea rcx, [rbp - 0x58]
call fcn.14006b5e4
lea r8, [rbp - 0x58]
mov rdx, r14
mov rcx, rdi
call fcn.14009ea04
test eax, eax
je 0x14009e046
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r15b
je 0x14009da6e
mov rax, qword [rbx + 8]
jmp 0x14009da63
cmp rbx, qword [rax + 0x10]
jne 0x14009da69
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r15b
je 0x14009da56
mov rbx, rax
jmp 0x14009da89
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r15b
jne 0x14009da89
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r15b
je 0x14009da7a
mov rax, qword [rdi + 8]
mov qword [rbp + 0xc0], rax
cmp rbx, rax
jne 0x14009d9ef
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax]
jmp 0x14009db4e
mov rsi, qword [rbx + 0x20]
cmp dword [rsi - 0xc], r15d
jl 0x14009dabd
mov qword [rbp - 0x50], rsi
lock inc dword [rsi - 0xc]
jmp 0x14009dae9
mov rax, qword [0x1400ef018]
mov qword [rbp - 0x50], rax
test rsi, rsi
jne 0x14009dad2
mov eax, r15d
jmp 0x14009dadb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rsi
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.14006b5e4
lea r8, [rbp - 0x50]
mov rdx, r14
mov rcx, rdi
call fcn.14009e484
test eax, eax
je 0x14009e046
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r15b
je 0x14009db28
mov rax, qword [rbx + 8]
jmp 0x14009db1d
cmp rbx, qword [rax + 0x10]
jne 0x14009db23
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r15b
je 0x14009db10
mov rbx, rax
jmp 0x14009db43
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r15b
jne 0x14009db43
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r15b
je 0x14009db34
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0xc8], rax
cmp rbx, rax
jne 0x14009daa9
mov rdx, r14
mov rcx, rdi
call fcn.14009ef40
test eax, eax
je 0x14009e046
lea rdx, str.Ending_HTTP_request...
lea rcx, [rbp + 0x20]
call fcn.14006c728
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x14009e00a
lea rdx, str.Reading_server_response...
lea rcx, [rbp + 0x28]
call fcn.14006c728
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
mov dword [rsp + 0x70], r15d
mov dword [rbp - 0x28], 4
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x28]
lea r8, [rsp + 0x70]
mov edx, 0x20000013
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov r15d, eax
xor esi, esi
test eax, eax
je 0x14009dc57
mov r8d, dword [rsp + 0x70]
lea rdx, str.Server_response_code:__ld
lea rcx, [rsp + 0x78]
call fcn.14006d4dc
mov rbx, qword [rsp + 0x78]
cmp dword [rbx - 0xc], esi
jl 0x14009dc22
mov qword [rbp - 0x48], rbx
lock inc dword [rbx - 0xc]
jmp 0x14009dc44
mov rax, qword [0x1400ef018]
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.14006b5e4
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp - 0x48]
mov rcx, qword [rdi + 0x28]
call fcn.140070150
lea r9, [rbp - 0x78]
mov r8d, 0xfff
lea rdx, [rbp + 0x18f0]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [rbp - 0x78]
cmp rsi, 0x1000
jae 0x14009e132
xor ecx, ecx
mov byte [rbp + rsi + 0x18f0], cl
mov rbx, qword [0x1400ef018]
mov qword [rbp - 0x70], rbx
test esi, esi
je 0x14009dd03
mov edx, esi
lea rcx, [rbp - 0x70]
call fcn.14006b560
test eax, eax
je 0x14009dcff
lea eax, [rsi + 1]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, [rbp + 0x18f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
or esi, 0xffffffff
test eax, eax
cmovns esi, eax
lea rcx, [rbp - 0x70]
call fcn.14006cf20
mov rbx, qword [rbp - 0x70]
cmp esi, 0xffffffff
jne 0x14009dcf1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [rbx - 8], esi
movsxd rax, esi
xor esi, esi
mov word [rbx + rax*2], si
jmp 0x14009dd05
mov rbx, qword [rbp - 0x70]
xor esi, esi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x78]
call fcn.14006c8f4
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x1400ef010]
je 0x14009dd32
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14009dd32
call fcn.1400b0a54
lea r8, [rsp + 0x78]
lea rdx, str.Server_response_body:
lea rcx, [rbp - 8]
call fcn.14008bf08
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14006c8f4
nop
mov rcx, qword [rbp - 8]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x14009dd80
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14009dd80
mov rcx, qword [rbp - 8]
add rcx, 0xfffffffffffffff4
call fcn.1400b0a54
mov rbx, qword [rsp + 0x78]
cmp dword [rbx - 0xc], esi
jl 0x14009dd94
mov qword [rbp - 0x40], rbx
lock inc dword [rbx - 0xc]
jmp 0x14009ddba
mov rax, qword [0x1400ef018]
mov qword [rbp - 0x40], rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x78]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.14006b5e4
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, qword [rdi + 0x28]
call fcn.140070150
cmp dword [rbp - 0x78], esi
jbe 0x14009dde2
mov al, byte [rbp + 0x18f0]
sub al, 0x30
cmp al, 9
jbe 0x14009df44
test r15d, r15d
je 0x14009dffa
cmp dword [rsp + 0x70], 0x12e
jne 0x14009dfc0
cmp dword [rbp - 0x60], esi
jne 0x14009dfb3
mov r15d, 1
mov dword [rbp - 0x60], r15d
mov ebx, 0x800
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x8f0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x20], ebx
mov dword [rbp - 0x24], esi
lea rax, [rbp - 0x24]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
lea r8, [rbp + 0x8f0]
lea edx, [r15 + 0x20]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x14009dfa6
mov dword [rsp + 0x40], 0x400
lea rax, [rbp + 0x10f0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x6c]
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 + 0x4f0]
lea rdx, [rbp + 0x8f0]
mov rcx, rdi
call fcn.14009e138
mov rax, qword [0x1400ef018]
mov qword [rbp], rax
lea r8, [rbp + 0x8f0]
lea rdx, str.Redirecting_to__s
lea rcx, [rbp]
call fcn.14006d4dc
mov rbx, qword [rbp]
lea rsi, [rbx - 0xc]
cmp dword [rsi], 0
jl 0x14009ded5
mov qword [rbp - 0x38], rbx
lock inc dword [rsi]
jmp 0x14009def7
mov rax, qword [0x1400ef018]
mov qword [rbp - 0x38], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.14006b5e4
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp - 0x38]
mov rcx, qword [rdi + 0x28]
call fcn.140070150
nop
cmp rsi, qword [0x1400ef010]
mov eax, dword [rbp - 0x74]
mov ecx, dword [rbp - 0x68]
je 0x14009d8c0
or eax, 0xffffffff
lock xadd dword [rsi], eax
sub eax, 1
mov eax, dword [rbp - 0x74]
jg 0x14009d8c0
mov rcx, rsi
call fcn.1400b0a54
mov eax, dword [rbp - 0x74]
mov ecx, dword [rbp - 0x68]
jmp 0x14009d8c0
lea rdx, str.Assuming_legacy_method_of_determining_delivery_status__from_HTTP_response_body_.
lea rcx, [rbp - 0x68]
call fcn.14006c728
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
lea rcx, [rbp + 0x18f0]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xc8
je 0x14009dfca
lea rdx, str.Failed__HTTP_response_body_doesnt_start_with_code_200_.
lea rcx, [rbp + 0x30]
call fcn.14006c728
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
mov esi, dword [rsp + 0x60]
jmp 0x14009e049
lea rdx, str.Failed_to_redirect.
lea rcx, [rbp + 0x38]
jmp 0x14009df85
lea rdx, str.Multiple_redirects_are_not_allowed.
lea rcx, [rbp + 0x40]
jmp 0x14009df85
cmp dword [rsp + 0x70], 0xc8
jne 0x14009dffa
lea rdx, str.Error_report_has_been_sent_OK_
lea rcx, [rsp + 0x60]
call fcn.14006c728
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
mov esi, 1
mov rbx, qword [rsp + 0x58]
jmp 0x14009e071
lea rdx, str.Failed__HTTP_response_code_is_not_equal_to_200_.
lea rcx, [rbp + 0x48]
jmp 0x14009df85
lea rdx, str.HttpEndRequest_has_failed.
lea rcx, [rbp + 0x50]
jmp 0x14009e02f
lea rdx, str.HttpSendRequestEx_has_failed.
lea rcx, [rbp + 0x58]
jmp 0x14009e02f
lea rdx, str.HttpOpenRequest_has_failed.
lea rcx, [rbp + 0x60]
call fcn.14006c728
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
mov esi, r15d
mov rbx, qword [rsp + 0x58]
lea rdx, str.Error_sending_HTTP_request.
lea rcx, [rbp - 0x80]
call fcn.14006c728
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
mov rcx, qword [rdi + 0x28]
call fcn.140070150
test r14, r14
je 0x14009e07f
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r13, r13
je 0x14009e08d
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rbx, rbx
je 0x14009e09b
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, esi
xor edx, 1
mov rcx, qword [rdi + 0x28]
call fcn.1400700c8
nop
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x14009e0ce
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14009e0ce
call fcn.1400b0a54
nop
mov rax, qword [rbp - 0x18]
add rax, 0xfffffffffffffff4
cmp rax, qword [0x1400ef010]
je 0x14009e0f9
or ecx, 0xffffffff
lock xadd dword [rax], ecx
sub ecx, 1
jg 0x14009e0f9
mov rcx, qword [rbp - 0x18]
add rcx, 0xfffffffffffffff4
call fcn.1400b0a54
nop
lea rcx, [rbp + 0xd0]
call fcn.14006c87c
mov eax, esi
mov rcx, qword [rbp + 0x28f0]
xor rcx, rsp
call fcn.1400b0f60
lea r11, [rsp + 0x2a00]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.1400b0ba4
nop