Function at 0x14000ddc0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xbd0]
sub rsp, 0xcd0
mov rax, qword [0x140050088]
xor rax, rsp
mov qword [rbp + 0xbb0], rax
mov r13, qword [rbp + 0xc30]
mov r15, rdx
mov rbx, qword [rbp + 0xc38]
xor edx, edx
mov qword [rbp - 0x48], r8
mov r14, rcx
mov qword [rcx + 0x58], 0xffffffffffffffff
mov rsi, r9
lea rcx, [rsp + 0x40]
mov dword [rbp - 0x50], 0
lea r8d, [rdx + 0x68]
call fcn.140019d60
lea rax, [rbp - 0x20]
mov dword [rsp + 0x40], 0x68
mov qword [rsp + 0x58], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x3e0]
mov dword [rbp - 0x70], 0x3e8
mov edi, 0x100
mov qword [rbp - 0x78], rax
xor r8d, r8d
mov dword [rsp + 0x60], edi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x14000e0f0
mov eax, 0x1bb
mov qword [rsp + 0xcc8], r12
cmp word [rsp + 0x64], ax
mov rcx, r13
sete r12b
xor ebx, ebx
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea edx, [rbx + 1]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [r15], rax
mov rcx, rax
test rax, rax
je 0x14000e022
mov eax, dword [r14 + 0xc]
mov r9d, dword [r14 + 8]
mov r8d, dword [r14 + 4]
mov edx, dword [r14]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x14000e022
mov r8d, 0x50
lea rdx, [rbp - 0x20]
mov ecx, 0x1bb
test r12b, r12b
cmovne r8w, cx
mov rcx, qword [r15]
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rcx, qword [rbp - 0x48]
mov qword [rcx], rax
test rax, rax
je 0x14000e022
lea rcx, [0x140046e40]
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], rcx
lea r9, str.HTTP_1.1
mov ecx, 0x800100
lea r8, [rbp + 0x3e0]
test r12b, r12b
lea rdx, [0x140046e60]
cmovne edi, ecx
lea rcx, [rbp - 0x40]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsi], rax
test rax, rax
je 0x14000e022
mov r9d, 0xa0000000
lea rdx, str.Accept_Encoding:_gzip__deflate
or r8d, 0xffffffff
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov r15d, eax
cmp qword [r14 + 0x28], rbx
jbe 0x14000dfb1
mov rdi, qword [r14 + 0x20]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000dfaf
cmp qword [rbx + 0x28], 8
jb 0x14000df8f
mov rdx, qword [rbx + 0x10]
jmp 0x14000df93
lea rdx, [rbx + 0x10]
mov r9d, dword [rbx + 0x30]
or r8d, 0xffffffff
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov rbx, qword [rbx]
and r15d, eax
cmp rbx, rdi
jne 0x14000df82
xor ebx, ebx
test r15d, r15d
je 0x14000e022
nop word [rax + rax]
mov rcx, qword [rsi]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14000e029
test r12b, r12b
je 0x14000e022
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f8f
jne 0x14000e01b
cmp byte [r14 + 0x10], 0
je 0x14000e022
mov rcx, qword [rsi]
lea r8, [rbp - 0x48]
mov r9d, 4
mov dword [rbp - 0x48], 0x3300
lea edx, [r9 + 0x1b]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jmp 0x14000dfc0
cmp eax, 0x2f00
je 0x14000dfc0
xor al, al
jmp 0x14000e0e8
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14000e022
mov rcx, qword [rsi]
lea rax, [rbp - 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rbx
lea r9, [rbp - 0x30]
mov dword [rbp - 0x50], 0x10
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x13]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14000e022
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0xa]
call fcn.14001b49c
mov dword [r14 + 0x58], eax
lea r9, [rbp + 0x1e0]
mov rcx, qword [rsi]
lea rax, [rbp - 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov dword [rbp - 0x50], 0x200
mov qword [rsp + 0x20], rax
lea edx, [r8 + 5]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14000e0b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x14000e022
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
je 0x14000e0de
xor edx, edx
lea rcx, [rbp + 0x1e0]
lea r8d, [rdx + 0xa]
call fcn.14001b49c
mov dword [r14 + 0x5c], eax
jmp 0x14000e0e6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
mov r12, qword [rsp + 0xcc8]
mov rcx, qword [rbp + 0xbb0]
xor rcx, rsp
call fcn.1400164d0
add rsp, 0xcd0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret