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

Disassembly:
jmp 0x14038c420
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 [0x1405c5ac0]
xor rax, r13
mov qword [rbp + 0x528], rax
mov dword [rbp + 0x504], 0
lea rcx, [0x1405f4efb]
call fcn.140139918
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.140388f10
mov rcx, rax
call fcn.14013949f
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 0x14038c834
mov rcx, qword [r13 + 0x578]
call fcn.140134828
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 0x14038c829
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.140389520
mov rcx, rax
call fcn.14013393c
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.140389400
mov rcx, rax
call fcn.1401382d4
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 0x14038c81e
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 0x14038c813
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14038c813
mov dword [rbp + 0x64], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xc4], 0
lea rcx, [rbp + 0xe8]
call fcn.14013987d
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 0x14038c7c4
mov eax, dword [rbp + 0x64]
inc eax
mov eax, eax
mov ecx, eax
call fcn.14013544e
mov qword [rbp + 0x4c8], rax
mov rax, qword [rbp + 0x4c8]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x14038c724
mov dword [rbp + 0x64], 0
jmp 0x14038c77a
mov eax, dword [rbp + 0x64]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0xa8]
call fcn.140137a41
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 0x14038c77a
mov eax, dword [rbp + 0x84]
mov r8d, eax
mov rdx, qword [rbp + 0xa8]
lea rcx, [rbp + 0xe8]
call fcn.140139f9e
nop
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x4e8], rax
mov rcx, qword [rbp + 0x4e8]
call fcn.140135953
cmp qword [rbp + 0x4e8], 0
jne 0x14038c7ab
mov qword [rbp + 0x518], 0
jmp 0x14038c7c4
mov qword [rbp + 0xa8], 0x8123
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x518], rax
cmp dword [rbp + 0x64], 0
ja 0x14038c6d1
lea rdx, [rbp + 0xe8]
mov rcx, qword [r13 + 0x570]
call fcn.1401390cb
mov eax, dword [rbp + 0x504]
or eax, 1
mov dword [rbp + 0x504], eax
lea rcx, [rbp + 0xe8]
call fcn.1401335f4
nop
mov rcx, qword [r13 + 0x578]
call fcn.1401386b2
nop
mov rax, qword [r13 + 0x570]
jmp 0x14038c865
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.14013566a
mov eax, dword [rbp + 0x504]
or eax, 1
mov dword [rbp + 0x504], eax
mov rcx, qword [r13 + 0x578]
call fcn.1401386b2
nop
mov rax, qword [r13 + 0x570]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1404c8680]
call fcn.1401383c4
mov rax, rdi
mov rcx, qword [rbp + 0x528]
xor rcx, r13
call fcn.1401359c6
lea rsp, [r13 + 0x550]
pop rdi
pop rbp
pop r13
ret