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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f8]
sub rsp, 0x4c0
xor esi, esi
mov rbx, rcx
lea rax, [0x180032710]
mov rdi, rdx
lea rcx, [rsp + 0x78]
lea r8d, [rsi + 0x38]
xor edx, edx
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rsi
mov dword [rsp + 0x44], esi
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x70], rsi
call fcn.18001fa30
lea rcx, [rbp - 0x3f]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp - 0x40], sil
call fcn.18001fa30
mov edx, dword [rdi + 4]
lea eax, [rsi + 4]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x40], esi
mov r13d, esi
call fcn.18001890c
mov rcx, qword [rbp - 0x80]
mov r12d, 0x400
lea r8, [0x180032704]
mov r9, rbx
mov edx, r12d
call fcn.18001fb3c
lea ecx, [rsi + 0xc]
call fcn.18001b960
mov r9d, dword [rdi + 4]
lea r8, [rdi + 8]
lea rdx, [rsp + 0x70]
mov rcx, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call fcn.180018074
mov rax, qword [0x1800494d0]
test rax, rax
je 0x18000e7ce
movzx ecx, word [rax + 0x90]
lea rdx, [rax + 0x10]
lea r8, [rsp + 0x70]
call fcn.1800132b0
mov rax, qword [0x1800494d0]
lea r8, [rsp + 0x70]
movzx ecx, word [rax + 0x118]
lea rdx, [rax + 0x98]
call fcn.18001314c
mov rcx, qword [rsp + 0x78]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], sil
jne 0x18000e7da
mov r9, qword [rbp - 0x80]
mov rdx, r12
test rax, rax
jne 0x18000e801
lea r8, [0x180032704]
lea rcx, [rbp - 0x40]
call fcn.18001fb3c
jmp 0x18000e816
mov qword [rsp + 0x20], rcx
lea r8, [0x18003271c]
lea rcx, [rbp - 0x40]
call fcn.18001fb3c
mov rdx, qword [0x180052160]
lea rcx, [rbp - 0x40]
call fcn.18000f510
mov ecx, 0x1a
call fcn.18001b960
mov rdx, qword [0x180052158]
mov rcx, rax
call fcn.18000f510
mov rdx, qword [0x180052150]
mov rcx, qword [rsp + 0x70]
call fcn.18000f510
mov eax, dword [0x1800494d8]
mov r8, qword [0x180052160]
mov rdx, qword [0x180052158]
mov rcx, qword [0x1800494b0]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
test rax, rax
je 0x18000ea7f
mov rcx, rax
call fcn.18000eb04
mov r12d, esi
mov r15d, esi
mov r14d, 4
jmp 0x18000e8aa
xor esi, esi
xor eax, eax
inc r12d
mov dword [rsp + 0x40], eax
test r13d, r13d
je 0x18000e925
lea ecx, [rax + 0x23]
call fcn.18001b970
cmp ax, r14w
jne 0x18000e923
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]
mov r8, rdi
inc r8
cmp word [rdx + r8*2], ax
jne 0x18000e92f
mov rax, qword [0x180042010]
mov r9, qword [rbp - 0x78]
mov rcx, rbx
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x18000ea00
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
xor ecx, ecx
test eax, eax
je 0x18000ea00
mov qword [rsp + 0x28], rcx
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x40]
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 0x18000ea12
mov ecx, 0x23
call fcn.18001b970
cmp ax, r14w
jne 0x18000e9f9
cmp dword [rsp + 0x40], 0x197
jne 0x18000e9f9
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
je 0x18000e9ea
mov ecx, dword [rsp + 0x4c]
call fcn.18000e690
mov esi, 1
mov r13d, eax
cmp r15d, 0x197
mov eax, 0
cmove esi, eax
mov r15d, dword [rsp + 0x40]
jmp 0x18000ea12
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x18000ea12
mov esi, 1
cmp r12d, 5
mov eax, 0
cmova esi, eax
test esi, esi
jne 0x18000e8a8
mov rax, qword [rbp + 0x408]
lea rcx, [rsp + 0x70]
mov edx, dword [rax + 4]
call fcn.180018900
mov ecx, dword [rsp + 0x40]
call fcn.18000f4f8
mov r15d, dword [rbp + 0x418]
xor r12d, r12d
mov r14d, r12d
test eax, eax
je 0x18000ea76
lea rdx, [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18000ea76
mov eax, dword [rsp + 0x44]
cmp eax, r15d
jae 0x18000ea76
test eax, eax
jne 0x18000ea9c
mov edi, r12d
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, edi
mov rbx, qword [rsp + 0x500]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r15d, r15d
je 0x18000ea76
mov rsi, qword [rbp + 0x410]
mov edx, r14d
lea r9, [rsp + 0x48]
mov r8d, 0x1000
add rdx, rsi
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18000ead6
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x18000ead6
add r14d, eax
cmp r14d, r15d
jb 0x18000eaa8
cmp r14d, r15d
jae 0x18000ea76
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, reloc.WS2_32.dll_inet_addr
call fcn.18001b960
mov r9d, r15d
mov r8d, r14d
mov rcx, rax
mov rdx, rsi
call fcn.1800189a8
jmp 0x18000ea81
jmp 0x18000e6bc