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

Disassembly:
jmp 0x14038dfa0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push r13
push rbp
push rdi
sub rsp, 0x590
lea r13, [rsp + 0x40]
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
lea rdi, [rsp + 0x40]
mov ecx, 0xf4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x5b8]
mov rax, qword [0x1405d0a00]
xor rax, r13
mov qword [rbp + 0x528], rax
mov dword [rbp + 0x504], 0
lea rcx, [0x14060002f]
call fcn.14013994a
nop
lea rax, [rbp + 0x334]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x354]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x374]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x334]
movzx r8d, byte [rbp + 0x354]
movzx edx, byte [rbp + 0x374]
lea rcx, [rbp + 0x2c0]
call fcn.14038aa90
mov rcx, rax
call fcn.140134a08
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14038e3b4
mov rcx, qword [r13 + 0x578]
call fcn.140134850
xor r9d, r9d
movzx r8d, word [r13 + 0x580]
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14038e3a9
lea rax, [rbp + 0x3d4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x3f4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x414]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x3d4]
movzx r8d, byte [rbp + 0x3f4]
movzx edx, byte [rbp + 0x414]
lea rcx, [rbp + 0x3a0]
call fcn.14038b0a0
mov rcx, rax
call fcn.140139a76
mov qword [rbp + 0x518], rax
lea rax, [rbp + 0x464]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x484]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x4a4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x464]
movzx r8d, byte [rbp + 0x484]
movzx edx, byte [rbp + 0x4a4]
lea rcx, [rbp + 0x440]
call fcn.14038af80
mov rcx, rax
call fcn.140132884
mov qword [rbp + 0x520], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x518]
mov rdx, qword [rbp + 0x520]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x14038e39e
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 [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14038e393
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14038e393
mov dword [rbp + 0x64], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xc4], 0
lea rcx, [rbp + 0xe8]
call fcn.1401398b4
nop
mov dword [rbp + 0x64], 0
lea rdx, [rbp + 0x64]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14038e344
mov eax, dword [rbp + 0x64]
inc eax
mov eax, eax
mov ecx, eax
call fcn.140135476
mov qword [rbp + 0x4c8], rax
mov rax, qword [rbp + 0x4c8]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x14038e2a4
mov dword [rbp + 0x64], 0
jmp 0x14038e2fa
mov eax, dword [rbp + 0x64]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0xa8]
call fcn.140137aa5
nop
lea r9, [rbp + 0x84]
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14038e2fa
mov eax, dword [rbp + 0x84]
mov r8d, eax
mov rdx, qword [rbp + 0xa8]
lea rcx, [rbp + 0xe8]
call fcn.140139fd0
nop
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x4e8], rax
mov rcx, qword [rbp + 0x4e8]
call fcn.14013597b
cmp qword [rbp + 0x4e8], 0
jne 0x14038e32b
mov qword [rbp + 0x518], 0
jmp 0x14038e344
mov qword [rbp + 0xa8], 0x8123
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x518], rax
cmp dword [rbp + 0x64], 0
ja 0x14038e251
lea rdx, [rbp + 0xe8]
mov rcx, qword [r13 + 0x570]
call fcn.14013910c
mov eax, dword [rbp + 0x504]
or eax, 1
mov dword [rbp + 0x504], eax
lea rcx, [rbp + 0xe8]
call fcn.14013361c
nop
mov rcx, qword [r13 + 0x578]
call fcn.140138702
nop
mov rax, qword [r13 + 0x570]
jmp 0x14038e3e5
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
xor edx, edx
mov rcx, qword [r13 + 0x570]
call fcn.140135688
mov eax, dword [rbp + 0x504]
or eax, 1
mov dword [rbp + 0x504], eax
mov rcx, qword [r13 + 0x578]
call fcn.140138702
nop
mov rax, qword [r13 + 0x570]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1404cae60]
call fcn.140138428
mov rax, rdi
mov rcx, qword [rbp + 0x528]
xor rcx, r13
call fcn.1401359e9
lea rsp, [r13 + 0x550]
pop rdi
pop rbp
pop r13
ret