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

Disassembly:
jmp 0x140393480
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 [0x1405cda80]
xor rax, r13
mov qword [rbp + 0x528], rax
mov dword [rbp + 0x504], 0
lea rcx, [0x1405fcd22]
call fcn.14013b9db
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.14038f8b0
mov rcx, rax
call fcn.140135be4
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 0x140393894
mov rcx, qword [r13 + 0x578]
call fcn.1401367ec
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 0x140393889
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.140390070
mov rcx, rax
call fcn.140138a2e
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.14038fec0
mov rcx, rax
call fcn.14013c642
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 0x14039387e
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 0x140393873
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140393873
mov dword [rbp + 0x64], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xc4], 0
lea rcx, [rbp + 0xe8]
call fcn.14013b93b
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 0x140393824
mov eax, dword [rbp + 0x64]
inc eax
mov eax, eax
mov ecx, eax
call fcn.140137435
mov qword [rbp + 0x4c8], rax
mov rax, qword [rbp + 0x4c8]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x140393784
mov dword [rbp + 0x64], 0
jmp 0x1403937da
mov eax, dword [rbp + 0x64]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0xa8]
call fcn.140139ad7
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 0x1403937da
mov eax, dword [rbp + 0x84]
mov r8d, eax
mov rdx, qword [rbp + 0xa8]
lea rcx, [rbp + 0xe8]
call fcn.14013c03e
nop
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x4e8], rax
mov rcx, qword [rbp + 0x4e8]
call fcn.140137962
cmp qword [rbp + 0x4e8], 0
jne 0x14039380b
mov qword [rbp + 0x518], 0
jmp 0x140393824
mov qword [rbp + 0xa8], 0x8123
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x518], rax
cmp dword [rbp + 0x64], 0
ja 0x140393731
lea rdx, [rbp + 0xe8]
mov rcx, qword [r13 + 0x570]
call fcn.14013b19d
mov eax, dword [rbp + 0x504]
or eax, 1
mov dword [rbp + 0x504], eax
lea rcx, [rbp + 0xe8]
call fcn.1401355bd
nop
mov rcx, qword [r13 + 0x578]
call fcn.14013a75c
nop
mov rax, qword [r13 + 0x570]
jmp 0x1403938c5
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.140137651
mov eax, dword [rbp + 0x504]
or eax, 1
mov dword [rbp + 0x504], eax
mov rcx, qword [r13 + 0x578]
call fcn.14013a75c
nop
mov rax, qword [r13 + 0x570]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1404cfa50]
call fcn.14013a469
mov rax, rdi
mov rcx, qword [rbp + 0x528]
xor rcx, r13
call fcn.1401379df
lea rsp, [r13 + 0x550]
pop rdi
pop rbp
pop r13
ret