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

Disassembly:
jmp 0x14038cab0
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 [0x1405c6ac0]
xor rax, r13
mov qword [rbp + 0x528], rax
mov dword [rbp + 0x504], 0
lea rcx, [0x1405f5f0f]
call fcn.140139936
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.1403895a0
mov rcx, rax
call fcn.140135ad9
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 0x14038cec4
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 0x14038ceb9
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.140389bb0
mov rcx, rax
call fcn.1401351d3
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.140389a90
mov rcx, rax
call fcn.14013a28c
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 0x14038ceae
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 0x14038cea3
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14038cea3
mov dword [rbp + 0x64], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xc4], 0
lea rcx, [rbp + 0xe8]
call fcn.1401398a0
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 0x14038ce54
mov eax, dword [rbp + 0x64]
inc eax
mov eax, eax
mov ecx, eax
call fcn.140135449
mov qword [rbp + 0x4c8], rax
mov rax, qword [rbp + 0x4c8]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x14038cdb4
mov dword [rbp + 0x64], 0
jmp 0x14038ce0a
mov eax, dword [rbp + 0x64]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0xa8]
call fcn.140137a73
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 0x14038ce0a
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.14013595d
cmp qword [rbp + 0x4e8], 0
jne 0x14038ce3b
mov qword [rbp + 0x518], 0
jmp 0x14038ce54
mov qword [rbp + 0xa8], 0x8123
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x518], rax
cmp dword [rbp + 0x64], 0
ja 0x14038cd61
lea rdx, [rbp + 0xe8]
mov rcx, qword [r13 + 0x570]
call fcn.1401390f3
mov eax, dword [rbp + 0x504]
or eax, 1
mov dword [rbp + 0x504], eax
lea rcx, [rbp + 0xe8]
call fcn.1401335f9
nop
mov rcx, qword [r13 + 0x578]
call fcn.1401386c6
nop
mov rax, qword [r13 + 0x570]
jmp 0x14038cef5
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.140135665
mov eax, dword [rbp + 0x504]
or eax, 1
mov dword [rbp + 0x504], eax
mov rcx, qword [r13 + 0x578]
call fcn.1401386c6
nop
mov rax, qword [r13 + 0x570]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1404c98a0]
call fcn.1401383d8
mov rax, rdi
mov rcx, qword [rbp + 0x528]
xor rcx, r13
call fcn.1401359d0
lea rsp, [r13 + 0x550]
pop rdi
pop rbp
pop r13
ret