Function at 0x140011393
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Terminate process

Disassembly:
jmp 0x140011af0
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x298
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2b8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x240], rax
lea rcx, [0x1400240f5]
call fcn.14001146f
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x84], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xe8], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x140011bd2
xor r9d, r9d
movzx r8d, word [rbp + 0x278]
mov rdx, qword [rbp + 0x270]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 0xc8], rax
mov dword [rbp + 0x104], 0x3300
cmp qword [rbp + 0xc8], 0
je 0x140011c29
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str.HTTP_1.1
lea r8, str._test.bin
lea rdx, [0x14001adb0]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0xe8], rax
mov r9d, 4
lea r8, [rbp + 0x104]
mov edx, 0x1f
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x140011c57
mov ecx, 0x1bb
call qword [sym.imp.ucrtbased.dll_exit]
cmp qword [rbp + 0xe8], 0
je 0x140011c95
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
je 0x140011cb3
xor edx, edx
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
je 0x140011e40
mov dword [rbp + 0x24], 0
lea rdx, [rbp + 0x24]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140011cf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.140011203
jmp 0x140011e3e
cmp dword [rbp + 0x24], 0
jne 0x140011d00
jmp 0x140011e3e
mov eax, dword [rbp + 0x24]
inc eax
mov eax, eax
mov ecx, eax
call fcn.1400111d6
mov qword [rbp + 0x208], rax
mov rax, qword [rbp + 0x208]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140011d38
lea rcx, str.Out_of_memory_n
call fcn.140011203
jmp 0x140011e3e
mov eax, dword [rbp + 0x24]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x68]
call fcn.14001137f
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140011d80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140011203
jmp 0x140011deb
mov dword [rbp + 0x124], 0
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x124], eax
jae 0x140011deb
movsxd rax, dword [rbp + 4]
cmp rax, 0x268
jb 0x140011da3
jmp 0x140011deb
movsxd rax, dword [rbp + 0x124]
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rbp + 4]
lea rdx, [0x14001e480]
add rdx, rcx
mov rcx, rdx
mov r8d, 1
mov rdx, rax
call fcn.140011226
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
jmp 0x140011d8a
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x228], rax
mov rcx, qword [rbp + 0x228]
call fcn.140011217
cmp qword [rbp + 0x228], 0
jne 0x140011e19
mov qword [rbp + 0x238], 0
jmp 0x140011e2c
mov qword [rbp + 0x68], 0x8123
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x238], rax
cmp dword [rbp + 0x44], 0
jne 0x140011e34
jmp 0x140011e3e
cmp dword [rbp + 0x24], 0
ja 0x140011cc0
jmp 0x140011e54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.140011203
mov edx, 0x268
lea rcx, str.____d_Bytes_successfully_written__n
call fcn.140011203
cmp qword [rbp + 0xe8], 0
je 0x140011e7c
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rbp + 0xc8], 0
je 0x140011e93
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rbp + 0xa8], 0
je 0x140011eaa
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ad10]
call fcn.1400113d9
mov rcx, qword [rbp + 0x240]
xor rcx, rbp
call fcn.140011221
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret