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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov dword [rsp + 0x5c], 0
mov rcx, qword [rsp + 0x1a8]
call fcn.140008a10
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
cmp byte [rax + rcx], 0
jne 0x1401501c4
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0x58], eax
mov r8d, 0xfde9
mov rdx, qword [rsp + 0x198]
lea rcx, [rsp + 0x158]
call fcn.14014fff0
nop
mov r8d, 0xfde9
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x138]
call fcn.14014fff0
nop
lea rcx, [rsp + 0x118]
call fcn.140015030
nop
mov dword [rsp + 0x110], 0
mov dword [rsp + 0x114], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x1b0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1401502b7
lea rcx, [rsp + 0x158]
call fcn.140017df0
xor r9d, r9d
mov r8w, 0x50
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140150303
lea rcx, [rsp + 0x138]
call fcn.140017df0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, [0x140364e58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
lea rax, [0x140364e70]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x78], 0xffffffff
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x80]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14015036f
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14015052f
mov dword [rsp + 0x110], 0
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1401503b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140364f10]
call fcn.140014e20
mov eax, dword [rsp + 0x110]
inc eax
mov eax, eax
mov ecx, eax
call fcn.14027fa00
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1401503fb
lea rcx, [0x140364f38]
call fcn.140014e20
mov dword [rsp + 0x110], 0
jmp 0x140150521
mov eax, dword [rsp + 0x110]
inc eax
mov eax, eax
mov qword [rsp + 0xa8], rax
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rcx, qword [rsp + 0xa8]
rep stosb byte [rdi], al
lea r9, [rsp + 0x114]
mov r8d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140150459
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140364ed8]
call fcn.140014e20
jmp 0x1401504d8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xf0]
call fcn.1400082a0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov r8, qword [rsp + 0xb8]
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0xd0]
call fcn.140010f80
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x118]
call fcn.14001a590
lea rcx, [rsp + 0xd0]
call fcn.1400089b0
nop
lea rcx, [rsp + 0xf0]
call fcn.1400089b0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.14027f980
cmp qword [rsp + 0x88], 0
jne 0x14015050b
mov qword [rsp + 0xc8], 0
jmp 0x140150521
mov qword [rsp + 0x48], 0x8123
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc8], rax
cmp dword [rsp + 0x110], 0
ja 0x14015037a
cmp dword [rsp + 0x40], 0
jne 0x14015054a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140364ef8]
call fcn.140014e20
cmp qword [rsp + 0x50], 0
je 0x14015055d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x60], 0
je 0x140150570
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x68], 0
je 0x140150583
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [rsp + 0x118]
mov rcx, qword [rsp + 0x190]
call fcn.140008710
mov eax, dword [rsp + 0x5c]
or eax, 1
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x118]
call fcn.1400089b0
nop
lea rcx, [rsp + 0x138]
call fcn.14001bec0
nop
lea rcx, [rsp + 0x158]
call fcn.14001bec0
nop
mov rcx, qword [rsp + 0x198]
call fcn.1400089b0
nop
mov rcx, qword [rsp + 0x1a0]
call fcn.1400089b0
nop
mov rcx, qword [rsp + 0x1a8]
call fcn.1400089b0
mov rax, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x180
pop rdi
ret