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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1403f4280]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_WinHTTP_FiveM_Request_Program_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1400fad41
mov rcx, qword [rsp + 0xd8]
call fcn.1400416d0
xor r9d, r9d
movzx r8d, word [rsp + 0xe0]
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400fad35
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str._players.json
lea rdx, [0x14036a198]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400fad29
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]
test eax, eax
je 0x1400fad1d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400fad1d
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x8c], 0
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x90]
call fcn.1400149c0
nop
mov dword [rsp + 0x88], 0
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400facca
mov eax, dword [rsp + 0x88]
inc eax
mov eax, eax
mov ecx, eax
call fcn.140100aa0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400fac2e
mov dword [rsp + 0x88], 0
jmp 0x1400fac8a
mov eax, dword [rsp + 0x88]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
nop
lea r9, [rsp + 0x8c]
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400fac8a
mov eax, dword [rsp + 0x8c]
mov r8d, eax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x90]
call fcn.140016e40
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.1401001c4
cmp qword [rsp + 0x68], 0
jne 0x1400facb4
mov qword [rsp + 0x80], 0
jmp 0x1400facca
mov qword [rsp + 0x48], 0x8123
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0x88], 0
ja 0x1400fabd2
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0xd0]
call fcn.1400141a0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x90]
call fcn.140015200
nop
mov rcx, qword [rsp + 0xd8]
call fcn.140015230
mov rax, qword [rsp + 0xd0]
jmp 0x1400fad70
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
xor edx, edx
mov rcx, qword [rsp + 0xd0]
call fcn.1400142d0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0xd8]
call fcn.140015230
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140100260
add rsp, 0xc8
ret