Function at 0x1400be3e0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x1b8
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x50], 0
lea rdx, [0x14031a956]
lea rcx, [rsp + 0x110]
call fcn.1400979d0
nop
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
lea rcx, str.A_WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x1400be573
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x130]
lea rcx, str._BCH_SU
mov rdi, rax
mov rsi, rcx
mov ecx, Ordinal_26
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x130]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x80], rax
mov eax, 2
imul rax, rax, 0xb
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax]
test eax, eax
je 0x1400be4cf
mov dword [rsp + 0x5c], 1
jmp 0x1400be4d7
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x40]
movzx eax, al
test eax, eax
je 0x1400be540
mov dword [rsp + 0x48], 0
jmp 0x1400be500
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xc
jge 0x1400be540
mov eax, dword [rsp + 0x48]
cdq
mov ecx, Ordinal_60
idiv ecx
mov eax, edx
add eax, 0x35
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
movzx ecx, word [rdx + rcx*2]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov word [rdx + rcx*2], ax
jmp 0x1400be4f6
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
xor r9d, r9d
mov r8w, 0x1bb
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x1400be5b6
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140330948]
lea rdx, [0x140330950]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400be5ee
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 [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1400be606
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1400be6f0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x44], 0
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [rsp + 0x44]
inc eax
mov eax, eax
mov ecx, eax
call fcn.140284208
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400be66f
mov dword [rsp + 0x44], 0
jmp 0x1400be6e5
mov eax, dword [rsp + 0x44]
inc eax
mov eax, eax
mov qword [rsp + 0xa0], rax
mov rdi, qword [rsp + 0x68]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
rep stosb byte [rdi], al
lea r9, [rsp + 0x60]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1400be6b0
jmp 0x1400be6ca
mov eax, dword [rsp + 0x60]
mov r8d, eax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x110]
call fcn.140097b80
nop
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140284104
nop
cmp dword [rsp + 0x44], 0
ja 0x1400be621
cmp qword [rsp + 0x50], 0
je 0x1400be704
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
cmp qword [rsp + 0x70], 0
je 0x1400be718
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
cmp qword [rsp + 0x78], 0
je 0x1400be72c
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rdx, [0x14031a956]
lea rcx, [rsp + 0xf0]
call fcn.1400979d0
nop
lea rax, [rsp + 0x168]
mov qword [rsp + 0xb0], rax
xor edx, edx
mov rcx, qword [rsp + 0xb0]
call fcn.1400cd4c0
mov qword [rsp + 0xb8], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8, qword [rsp + 0xb8]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xd8]
call fcn.1400d58a0
mov qword [rsp + 0xe8], rax
lea rdx, str.origin
lea rcx, [rsp + 0xd8]
call fcn.1400d46d0
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
lea rdx, [rsp + 0x148]
mov rcx, qword [rsp + 0xc8]
call fcn.1400d4200
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0xf0]
call fcn.1400ce9c0
lea rcx, [rsp + 0x148]
call fcn.140097940
nop
lea rcx, [rsp + 0xd8]
call fcn.1400cdc10
nop
jmp 0x1400be811
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x1d0]
call fcn.1400979a0
mov eax, dword [rsp + 0x64]
or eax, 1
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0xf0]
call fcn.140097940
nop
lea rcx, [rsp + 0x110]
call fcn.140097940
mov rax, qword [rsp + 0x1d0]
add rsp, 0x1b8
pop rdi
pop rsi
ret