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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5b0
lea rax, [0x180063038]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x128], 0
mov byte [rsp + 0x1b0], 0
lea rax, [rsp + 0x1b1]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
mov byte [rsp + 0x130], 0
lea rax, [rsp + 0x131]
mov rdi, rax
xor eax, eax
mov ecx, 0x7f
rep stosb byte [rdi], al
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x94], 4
mov dword [rsp + 0x58], 0
mov qword [rsp + 0xe8], 0
cmp dword [0x18006ac00], 0
jne 0x1800105ed
jmp 0x180010bb8
mov edx, dword [0x18006ac00]
lea rcx, [rsp + 0xa0]
call fcn.18001eaf0
cmp qword [0x18006ac10], 0
je 0x1800106a1
mov rax, qword [0x18006ac10]
mov rax, qword [rax + 0x120]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x70]
cmp byte [rax + rcx], 0
jne 0x18001062d
mov rax, qword [rsp + 0x70]
test rax, rax
jbe 0x1800106a1
lea rdx, [rsp + 0x1b0]
mov rax, qword [0x18006ac10]
mov rcx, qword [rax + 0x120]
call fcn.180016af0
lea r9, [rsp + 0x1b0]
lea r8, [0x180063040]
mov edx, 0x400
mov rcx, qword [rsp + 0xb0]
call fcn.18004027c
lea rax, [rsp + 0x1b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
jmp 0x1800106c2
mov r9, qword [rsp + 0x5c0]
lea r8, [0x180063044]
mov edx, 0x400
mov rcx, qword [rsp + 0xb0]
call fcn.18004027c
mov r9d, dword [0x180073480]
lea r8, [0x180063048]
mov edx, 0x80
lea rcx, [rsp + 0x130]
call fcn.18004027c
lea rax, [rsp + 0x130]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x78], 0xffffffffffffffff
inc qword [rsp + 0x78]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x78]
cmp byte [rax + rcx], 0
jne 0x1800106fb
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x108], rax
mov ecx, reloc.WS2_32.dll_listen
call fcn.18003a6f4
mov ecx, dword [0x18006ac00]
mov dword [rsp + 0x28], ecx
mov rcx, qword [0x18006abf8]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x108]
mov r9d, ecx
lea r8, [rsp + 0x130]
lea rdx, [rsp + 0xa0]
mov rcx, rax
call fcn.18001de88
cmp qword [0x18006ac10], 0
je 0x1800107c3
mov rax, qword [0x18006ac10]
add rax, 0x128
mov rcx, qword [0x18006ac10]
movzx ecx, word [rcx + 0x1a8]
lea r8, [rsp + 0xa0]
mov rdx, rax
call fcn.18001640c
mov rax, qword [0x18006ac10]
add rax, 0x1b0
mov rcx, qword [0x18006ac10]
movzx ecx, word [rcx + 0x230]
lea r8, [rsp + 0xa0]
mov rdx, rax
call fcn.180016224
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x88], 0xffffffffffffffff
inc qword [rsp + 0x88]
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x88]
cmp byte [rax + rcx], 0
jne 0x1800107df
mov rax, qword [rsp + 0x88]
test rax, rax
jne 0x18001082d
mov r9, qword [rsp + 0xb0]
lea r8, [0x18006304c]
mov edx, 0x400
lea rcx, [rsp + 0x1b0]
call fcn.18004027c
jmp 0x18001085b
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
lea r8, [0x180063050]
mov edx, 0x400
lea rcx, [rsp + 0x1b0]
call fcn.18004027c
mov rdx, qword [0x1800738c0]
lea rcx, [rsp + 0x1b0]
call fcn.180010d34
mov ecx, 0x1b
call fcn.18003a6f4
mov rdx, qword [0x1800738b8]
mov rcx, rax
call fcn.180010d34
mov rdx, qword [0x1800738b0]
mov rcx, qword [rsp + 0xa0]
call fcn.180010d34
call fcn.180010d30
mov dword [rsp + 0x60], 0
jmp 0x1800108b5
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 4
jae 0x180010b96
mov eax, dword [0x18006ac18]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0xe8]
mov r8, qword [0x1800738c0]
mov rdx, qword [0x1800738b8]
mov rcx, qword [0x18006abf0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x180010912
jmp 0x1800108ab
mov rcx, qword [rsp + 0x50]
call fcn.18000ff14
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 0
cmp dword [rsp + 0x58], 0
je 0x1800109c6
mov ecx, 0x23
call fcn.18003a714
movzx eax, ax
cmp eax, 4
jne 0x1800109c6
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 + 0x58]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov dword [rsp + 0x40], eax
mov rax, qword [0x1800738b0]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x80], 0xffffffffffffffff
inc qword [rsp + 0x80]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x80]
cmp word [rax + rcx*2], 0
jne 0x1800109e1
mov rax, qword [rsp + 0x80]
mov rcx, qword [0x180063028]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0xc0]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0xc0]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0xb8]
mov r8d, eax
mov rdx, qword [0x1800738b0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x180010a63
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x180010a8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0x2f00
jne 0x180010a86
mov dword [rsp + 0x44], 1
jmp 0x180010b39
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x94]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x180010b39
cmp dword [rsp + 0x48], 0x197
jne 0x180010b31
mov ecx, 0x23
call fcn.18003a714
movzx eax, ax
cmp eax, 4
jne 0x180010b31
lea r9, [rsp + 0xf8]
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x180010b1f
mov ecx, dword [rsp + 0x90]
call fcn.18000f824
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x44], 1
cmp dword [rsp + 0x64], 0x197
jne 0x180010b31
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x5c], 5
jb 0x180010b48
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x44], 0
jne 0x18001092c
mov ecx, dword [rsp + 0x48]
call fcn.180010cec
test eax, eax
je 0x180010b6f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x180010b96
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [rsp + 0x68], 0x2f78
jne 0x180010b86
jmp 0x180010b91
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1800108ab
mov edx, dword [0x18006ac00]
lea rcx, [rsp + 0xa0]
call fcn.18001ead0
mov dword [0x18006ac00], 0
call fcn.180010d30
add rsp, 0x5b0
pop rdi
ret