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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1828]
mov eax, 0x18e8
call fcn.140010350
sub rsp, rax
mov r15, r8
mov r14, rcx
xor edx, edx
mov r8d, 0x1800
lea rcx, [rbp - 0x20]
call fcn.140003600
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140003600
mov dword [rsp + 0x70], ebx
lea rax, [rbp + 0x13e0]
mov qword [rbp - 0x38], rax
lea rax, [rbp + 0x3e0]
mov qword [rbp - 0x78], rax
lea rax, [rbp + 0xbe0]
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0xfe0]
mov qword [rbp - 0x48], rax
lea rax, [rbp + 0x7e0]
mov qword [rbp - 0x68], rax
mov eax, 0x200
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x40], eax
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x70], eax
mov dword [rbp - 0x30], eax
mov rbx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x14000122e
mov rbx, qword [r14]
or rsi, 0xffffffffffffffff
mov r9, rsi
xor r13d, r13d
inc r9
cmp byte [rbx + r9], r13b
jne 0x140001238
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rdx, ecx
mov eax, 2
mul rdx
cmovo rax, rsi
mov rcx, rax
call fcn.140001e5c
mov r12, rax
mov r9, rsi
inc r9
cmp byte [rbx + r9], r13b
jne 0x14000127b
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [r12 + rdi*2], r13w
lea r9, [rsp + 0x70]
xor edx, edx
mov r8d, 0x80000000
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
mov r9, qword [rbp - 0x48]
mov rdx, rsi
inc rdx
cmp word [r9 + rdx*2], r13w
jne 0x1400012d5
lea rcx, [rsp + 0x48]
cmp rdx, 7
ja 0x140001306
mov qword [rsp + 0x58], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.140005c90
mov word [rsp + rbx + 0x48], r13w
jmp 0x14000130c
call fcn.1400018cc
nop
mov r9, qword [rbp - 0x38]
inc rsi
cmp word [r9 + rsi*2], r13w
jne 0x140001310
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
sub rax, rcx
cmp rsi, rax
ja 0x14000135d
lea rdi, [rcx + rsi]
mov qword [rsp + 0x58], rdi
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rbx + rcx*2]
lea r8, [rsi + rsi]
mov rdx, r9
call fcn.140005c90
mov word [rbx + rdi*2], r13w
jmp 0x14000136f
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140001b68
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r13, rax
mov dword [rsp + 0x6c], 4
xor esi, esi
mov dword [rsp + 0x68], esi
xor r9d, r9d
movzx r8d, word [rbp - 0x6c]
mov rdx, qword [rbp - 0x78]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
mov edi, 0x100
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, str.HTTP_1.1
lea rdx, [0x140018838]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1848]
xor r8d, r8d
mov edx, 0x20000005
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, str.HTTP_1.1
lea rdx, [0x140018838]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, ebx
mov ecx, 0x400
call fcn.140001e5c
mov rbx, rax
mov ecx, dword [rbp + 0x1848]
call fcn.140001e5c
mov qword [rbp + 0x1830], rax
mov r8d, dword [rbp + 0x1848]
xor edx, edx
mov rcx, rax
call fcn.140003600
mov ecx, dword [rbp + 0x1848]
mov rax, qword [rbp + 0x1838]
mov dword [rax], ecx
test ecx, ecx
je 0x14000154e
mov r15, qword [rbp + 0x1830]
xor edx, edx
mov r8d, 0x400
mov rcx, rbx
call fcn.140003600
lea r9, [rsp + 0x40]
mov r8d, 0x400
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
cmp dword [rsp + 0x40], 1
jb 0x140001547
mov r8d, dword [rsp + 0x40]
mov ecx, edi
add rcx, r15
mov rdx, rbx
call fcn.140005c90
add edi, dword [rsp + 0x40]
cmp dword [rbp + 0x1848], edi
ja 0x1400014fb
mov r15, qword [rbp + 0x1840]
mov rcx, rbx
call fcn.140001e18
xor ebx, ebx
test rsi, rsi
je 0x140001566
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x140001574
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r13, r13
je 0x140001583
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.14000180c
nop
mov rdx, qword [r14 + 0x18]
mov esi, 0x1000
cmp rdx, 0x10
jb 0x1400015c5
mov rcx, qword [r14]
inc rdx
cmp rdx, rsi
jb 0x1400015c0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000162d
mov rcx, r8
call fcn.140001e18
mov qword [r14 + 0x10], rbx
mov edi, 0xf
mov qword [r14 + 0x18], rdi
mov byte [r14], bl
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x140001607
inc rdx
mov rcx, qword [r15]
cmp rdx, rsi
jb 0x140001602
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001633
mov rcx, r8
call fcn.140001e18
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rdi
mov byte [r15], bl
mov rax, qword [rbp + 0x1830]
add rsp, 0x18e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000653c
nop
call fcn.14000653c
int3