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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x520
lea rax, [0x180063060]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], 0
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0xc0], 0
lea rax, [rsp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov byte [rsp + 0x120], 0
lea rax, [rsp + 0x121]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x8c], 4
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x538]
mov edx, dword [rax + 4]
lea rcx, [rsp + 0xc0]
call fcn.18001eaf0
mov r9, qword [rsp + 0x530]
lea r8, [0x180063068]
mov edx, 0x400
mov rcx, qword [rsp + 0xd0]
call fcn.18004027c
mov rax, qword [rsp + 0x538]
add rax, 8
mov qword [rsp + 0xb0], rax
mov ecx, ntohl
call fcn.18003a6f4
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x538]
mov r9d, dword [rcx + 4]
mov rcx, qword [rsp + 0xb0]
mov r8, rcx
lea rdx, [rsp + 0xc0]
mov rcx, rax
call fcn.18001de88
cmp qword [0x18006ac10], 0
je 0x18000fa52
mov rax, qword [0x18006ac10]
add rax, 0x10
mov rcx, qword [0x18006ac10]
movzx ecx, word [rcx + 0x90]
lea r8, [rsp + 0xc0]
mov rdx, rax
call fcn.18001640c
mov rax, qword [0x18006ac10]
add rax, 0x98
mov rcx, qword [0x18006ac10]
movzx ecx, word [rcx + 0x118]
lea r8, [rsp + 0xc0]
mov rdx, rax
call fcn.180016224
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x80], 0xffffffffffffffff
inc qword [rsp + 0x80]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
cmp byte [rax + rcx], 0
jne 0x18000fa6e
mov rax, qword [rsp + 0x80]
test rax, rax
jne 0x18000fabc
mov r9, qword [rsp + 0xd0]
lea r8, [0x18006306c]
mov edx, 0x400
lea rcx, [rsp + 0x120]
call fcn.18004027c
jmp 0x18000faea
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xd0]
lea r8, [0x180063070]
mov edx, 0x400
lea rcx, [rsp + 0x120]
call fcn.18004027c
mov rdx, qword [0x1800738c0]
lea rcx, [rsp + 0x120]
call fcn.180010d34
mov ecx, 0x1a
call fcn.18003a6f4
mov rdx, qword [0x1800738b8]
mov rcx, rax
call fcn.180010d34
mov rdx, qword [0x1800738b0]
mov rcx, qword [rsp + 0xc0]
call fcn.180010d34
mov eax, dword [0x18006ac18]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x98]
mov r8, qword [0x1800738c0]
mov rdx, qword [0x1800738b8]
mov rcx, qword [0x18006abf0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x18000fb8a
mov eax, 0xffffffff
jmp 0x18000ff08
mov rcx, qword [rsp + 0x48]
call fcn.18000ff14
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x54], 0
cmp dword [rsp + 0x64], 0
je 0x18000fc3e
mov ecx, 0x23
call fcn.18003a714
movzx eax, ax
cmp eax, 4
jne 0x18000fc3e
mov ecx, 0x21
call fcn.18003a6f4
mov rdx, qword [0x1800738d8]
mov rcx, rax
call fcn.180010d34
mov ecx, 0x22
call fcn.18003a6f4
mov rdx, qword [0x1800738d0]
mov rcx, rax
call fcn.180010d34
mov qword [rsp + 0x28], 0
mov rax, qword [0x1800738d0]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1800738d8]
mov r8d, dword [rsp + 0x64]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov dword [rsp + 0x50], eax
mov rax, qword [0x1800738b0]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x78], 0xffffffffffffffff
inc qword [rsp + 0x78]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
cmp word [rax + rcx*2], 0
jne 0x18000fc56
mov rax, qword [rsp + 0x78]
mov rcx, qword [0x180063028]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0xe0]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0xe0]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0xd8]
mov r8d, eax
mov rdx, qword [0x1800738b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x18000fccf
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18000fcf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0x2f00
jne 0x18000fcf2
mov dword [rsp + 0x58], 1
jmp 0x18000fda5
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x18000fda5
mov ecx, 0x23
call fcn.18003a714
movzx eax, ax
cmp eax, 4
jne 0x18000fd9d
cmp dword [rsp + 0x54], 0x197
jne 0x18000fd9d
lea r9, [rsp + 0x100]
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x18000fd8b
mov ecx, dword [rsp + 0x88]
call fcn.18000f824
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x58], 1
cmp dword [rsp + 0x70], 0x197
jne 0x18000fd9d
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x60], 5
jbe 0x18000fdb4
mov dword [rsp + 0x58], 0
cmp dword [rsp + 0x58], 0
jne 0x18000fb9c
mov rax, qword [rsp + 0x538]
mov edx, dword [rax + 4]
lea rcx, [rsp + 0xc0]
call fcn.18001ead0
mov ecx, dword [rsp + 0x54]
call fcn.180010cec
test eax, eax
jne 0x18000fdf9
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 0xffffffff
jmp 0x18000ff08
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
je 0x18000fe28
cmp dword [rsp + 0x5c], 0
jb 0x18000fe28
mov eax, dword [rsp + 0x548]
cmp dword [rsp + 0x5c], eax
jb 0x18000fe3d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 0xffffffff
jmp 0x18000ff08
cmp dword [rsp + 0x5c], 0
jne 0x18000fe56
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x18000ff08
mov eax, dword [rsp + 0x548]
cmp dword [rsp + 0x40], eax
jae 0x18000feaf
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x540]
add rcx, rax
mov rax, rcx
lea r9, [rsp + 0x68]
mov r8d, 0x1000
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x18000fe94
jmp 0x18000feaf
cmp dword [rsp + 0x68], 0
jne 0x18000fe9d
jmp 0x18000feaf
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x18000fe56
mov eax, dword [rsp + 0x548]
cmp dword [rsp + 0x40], eax
jb 0x18000fece
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 0xffffffff
jmp 0x18000ff08
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, reloc.WS2_32.dll_inet_addr
call fcn.18003a6f4
mov r9d, dword [rsp + 0x548]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x540]
mov rcx, rax
call fcn.18001ec08
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
add rsp, 0x520
pop rdi
ret