Function at 0x18000ef60
Capabilities:
Prepare http request
Read http header
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rbx, rcx
lea rax, [0x180032710]
xor r12d, r12d
lea rcx, [rbp + 0x21]
xor edx, edx
mov r8d, 0x3ff
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r12
mov byte [rbp + 0x20], r12b
call fcn.18001fa30
lea r8d, [r12 + 0x7f]
lea rcx, [rbp - 0x5f]
xor edx, edx
mov byte [rbp - 0x60], r12b
call fcn.18001fa30
lea r8d, [r12 + 0x38]
lea rcx, [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x50], r12
call fcn.18001fa30
mov edx, dword [0x1800494c0]
lea eax, [r12 + 4]
mov dword [rbp + 0x468], r12d
mov dword [rbp + 0x478], eax
mov r13d, r12d
test edx, edx
je 0x18000f3f2
lea rcx, [rsp + 0x50]
call fcn.18001890c
mov rax, qword [0x1800494d0]
or rsi, 0xffffffffffffffff
test rax, rax
je 0x18000f05d
mov rcx, qword [rax + 0x120]
mov rax, rsi
inc rax
cmp byte [rcx + rax], r12b
jne 0x18000f01a
test rax, rax
je 0x18000f05d
lea rdx, [rbp + 0x20]
call fcn.180013734
mov rcx, qword [rsp + 0x60]
mov ebx, 0x400
lea r9, [rbp + 0x20]
lea r8, [0x180032704]
mov edx, ebx
call fcn.18001fb3c
lea rcx, [rbp + 0x20]
mov r8d, ebx
xor edx, edx
call fcn.18001fa30
jmp 0x18000f078
mov rcx, qword [rsp + 0x60]
mov r9, rbx
mov ebx, 0x400
lea r8, [0x180032704]
mov edx, ebx
call fcn.18001fb3c
mov r9d, dword [0x180051d20]
lea r8, [0x180032718]
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.18001fb3c
lea rax, [rbp - 0x60]
mov rdi, rsi
inc rdi
cmp byte [rax + rdi], r12b
jne 0x18000f09b
mov ecx, reloc.WS2_32.dll_listen
call fcn.18001b960
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rax
mov eax, dword [0x1800494c0]
mov r9d, edi
mov dword [rsp + 0x28], eax
mov rax, qword [0x1800494b8]
mov qword [rsp + 0x20], rax
call fcn.180018074
mov rax, qword [0x1800494d0]
test rax, rax
je 0x18000f11b
movzx ecx, word [rax + 0x1a8]
lea rdx, [rax + 0x128]
lea r8, [rsp + 0x50]
call fcn.1800132b0
mov rax, qword [0x1800494d0]
lea r8, [rsp + 0x50]
movzx ecx, word [rax + 0x230]
lea rdx, [rax + 0x1b0]
call fcn.18001314c
mov rcx, qword [rsp + 0x58]
mov rax, rsi
inc rax
cmp byte [rcx + rax], r12b
jne 0x18000f123
mov r9, qword [rsp + 0x60]
mov rdx, rbx
test rax, rax
jne 0x18000f14b
lea r8, [0x180032704]
lea rcx, [rbp + 0x20]
call fcn.18001fb3c
jmp 0x18000f160
mov qword [rsp + 0x20], rcx
lea r8, [0x18003271c]
lea rcx, [rbp + 0x20]
call fcn.18001fb3c
mov rdx, qword [0x180052160]
lea rcx, [rbp + 0x20]
call fcn.18000f510
mov ecx, 0x1b
call fcn.18001b960
mov rdx, qword [0x180052158]
mov rcx, rax
call fcn.18000f510
mov rdx, qword [0x180052150]
mov rcx, qword [rsp + 0x50]
call fcn.18000f510
mov r15d, dword [rbp + 0x468]
mov r14d, r12d
mov dword [rbp + 0x470], r12d
mov eax, dword [0x1800494d8]
mov r8, qword [0x180052160]
mov rdx, qword [0x180052158]
mov rcx, qword [0x1800494b0]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
test rax, rax
je 0x18000f3bc
mov rcx, rax
call fcn.18000eb04
xor eax, eax
mov esi, r12d
lea r14d, [rax + 4]
inc esi
mov edi, eax
mov dword [rbp + 0x468], eax
test r13d, r13d
je 0x18000f27c
mov ecx, 0x23
call fcn.18001b970
cmp ax, r14w
jne 0x18000f27a
mov ecx, 0x21
call fcn.18001b960
mov rdx, qword [0x180052178]
mov rcx, rax
call fcn.18000f510
mov ecx, 0x22
call fcn.18001b960
mov rdx, qword [0x180052170]
mov rcx, rax
call fcn.18000f510
mov r9, qword [0x180052178]
xor eax, eax
mov qword [rsp + 0x28], rax
mov rax, qword [0x180052170]
mov r8d, r13d
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
xor eax, eax
mov rdx, qword [0x180052150]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], ax
jne 0x18000f287
mov rax, qword [0x180042010]
mov r9, qword [rsp + 0x68]
mov rcx, rbx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x18000f362
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
xor ecx, ecx
test eax, eax
je 0x18000f362
mov qword [rsp + 0x28], rcx
lea rax, [rbp + 0x478]
lea r9, [rbp + 0x468]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x18000f377
cmp dword [rbp + 0x468], 0x197
jne 0x18000f359
mov ecx, 0x23
call fcn.18001b970
cmp ax, r14w
jne 0x18000f359
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
je 0x18000f34a
mov ecx, dword [rsp + 0x40]
call fcn.18000e690
mov edi, 1
mov r13d, eax
cmp r12d, 0x197
mov eax, 0
cmove edi, eax
mov r12d, dword [rbp + 0x468]
jmp 0x18000f377
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
cmp eax, 0x2f00
jne 0x18000f377
mov edi, 1
cmp esi, 5
sbb ecx, ecx
xor eax, eax
and ecx, edi
jne 0x18000f1fe
mov ecx, dword [rbp + 0x468]
mov r14d, dword [rbp + 0x470]
call fcn.18000f4f8
xor r12d, r12d
mov rcx, rbx
test eax, eax
jne 0x18000f3d5
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp r15d, 0x2f78
je 0x18000f3bc
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r14d
mov eax, 4
mov dword [rbp + 0x470], r14d
cmp r14d, eax
jae 0x18000f3db
jmp 0x18000f1ab
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [0x1800494c0]
lea rcx, [rsp + 0x50]
call fcn.180018900
mov dword [0x1800494c0], r12d
mov rbx, qword [rsp + 0x560]
add rsp, 0x520
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret