Function at 0x180011c30
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x14b8]
mov eax, 0x15b8
call fcn.18001bcc0
sub rsp, rax
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rax, qword [0x180058090]
xor rax, rsp
mov qword [rbp + 0x14a0], rax
mov qword [rbp - 0x78], r9
mov rsi, r8
mov qword [rsp + 0x48], r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [rbp + 0x1500]
mov qword [rbp - 0x80], rax
mov rcx, qword [rbp + 0x1508]
mov qword [rsp + 0x78], rcx
mov eax, dword [rbp + 0x1510]
mov dword [rsp + 0x6c], eax
xor ecx, ecx
mov dword [rbp - 0x70], ecx
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], send
mov byte [rbp + 0x38], cl
cmp qword [rdx + 0x10], rcx
je 0x1800125c0
test eax, eax
jle 0x1800125c0
xor edx, edx
lea r8d, [rcx + 0x68]
lea rcx, [rbp - 0x60]
call fcn.18001e3f0
mov dword [rbp - 0x60], 0x68
mov ecx, 0x20
call fcn.18001b828
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], reloc.WS2_32.dll_recv
mov ecx, 0x208
call fcn.18001b828
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], 0x104
mov ecx, 0x208
call fcn.18001b828
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], 0x104
mov ecx, 0x208
call fcn.18001b828
mov qword [rbp - 8], rax
mov dword [rbp], 0x104
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x180011d34
mov rbx, qword [rbx]
lea r9, [rbp - 0x60]
mov r8d, 0x80000000
mov edx, eax
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x180011d5b
xor ecx, ecx
movups xmm0, xmmword [rbp + 0x38]
mov byte [rbp + 0x38], cl
jmp 0x1800125c8
cmp qword [rsi + 0x18], 8
jb 0x180011d67
mov rcx, qword [rsi]
jmp 0x180011d6a
mov rcx, rsi
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x180011dce
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], send
mov byte [rbp + 0x18], sil
lea r8d, [rsi + 0x14]
lea rdx, str.Failed_open_session_
lea rcx, [rbp + 0x18]
call fcn.180001d00
lea rcx, [rbp + 0x18]
call fcn.1800153d0
movups xmm0, xmmword [rbp + 0x38]
movups xmm1, xmmword [rbp + 0x48]
mov qword [rbp + 0x48], rsi
mov byte [rbp + 0x38], sil
jmp 0x1800125d0
mov dword [rsp + 0x20], 0x2710
mov edx, 0x2710
mov r9d, edx
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x180011e26
lea r8d, [rax + 0x13]
lea rdx, str.Failed_set_timeout_
mov byte [rbp + 0x18], sil
mov qword [rbp + 0x30], send
mov qword [rbp + 0x28], rsi
lea rcx, [rbp + 0x18]
call fcn.180001d00
lea rcx, [rbp + 0x18]
call fcn.1800153d0
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x180011db9
cmp dword [rbp - 0x4c], 1
sete sil
mov dword [rsp + 0x40], esi
xor r9d, r9d
movzx r8d, word [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rcx, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x180011e63
xor esi, esi
lea r8d, [rax + 0xf]
lea rdx, str.Failed_connect_
jmp 0x180011df9
mov eax, 0x800000
test esi, esi
mov edx, 0
cmovne eax, edx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8, qword [rbp - 0x18]
lea rdx, [0x18004d2e0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x180011ede
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], send
mov byte [rbp + 0x18], sil
lea r8d, [rax + 0x14]
lea rdx, str.Failed_open_request_
lea rcx, [rbp + 0x18]
call fcn.180001d00
lea rcx, [rbp + 0x18]
call fcn.1800153d0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x180011e1b
xor ecx, ecx
mov qword [rbp + 0x68], rcx
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], cx
or rbx, 0xffffffffffffffff
mov rax, qword [rbp - 0x78]
cmp qword [rax + 0x10], rcx
je 0x180011f86
mov r8, rax
lea rdx, [0x18004d300]
lea rcx, [rbp + 0x78]
call fcn.18000d6a0
nop
lea r8, [0x18004d1fc]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.180014390
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.18000e300
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x180011f57
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.18000a9c0
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], ax
mov r8, qword [rbp + 0x90]
cmp r8, 8
jb 0x180011f86
inc r8
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x78]
call fcn.18000a9c0
mov rax, qword [rbp - 0x80]
cmp qword [rax + 0x10], 0
je 0x180012019
mov r8, rax
lea rdx, [0x18004d328]
lea rcx, [rbp + 0x78]
call fcn.18000d6a0
nop
lea r8, [0x18004d294]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.180014390
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.18000e300
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x180011fea
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.18000a9c0
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], ax
mov r8, qword [rbp + 0x90]
cmp r8, 8
jb 0x180012019
inc r8
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x78]
call fcn.18000a9c0
mov rax, qword [rsp + 0x78]
cmp qword [rax + 0x10], 0
je 0x1800120ad
mov r8, rax
lea rdx, [0x18004d358]
lea rcx, [rbp + 0x78]
call fcn.18000d6a0
nop
lea r8, [0x18004d34c]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.180014390
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.18000e300
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x18001207e
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.18000a9c0
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], ax
mov r8, qword [rbp + 0x90]
cmp r8, 8
jb 0x1800120ad
inc r8
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x78]
call fcn.18000a9c0
cmp qword [rbp + 0x68], 0
je 0x18001218e
lea r9, [rbp + 0x58]
cmp qword [rbp + 0x70], 8
cmovae r9, qword [rbp + 0x58]
lea rdx, [rbp + 0x58]
cmovae rdx, qword [rbp + 0x58]
mov r8, rbx
inc r8
cmp word [r9 + r8*2], 0
jne 0x1800120d2
mov r9d, 0x20000000
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x18001218e
lea r8d, [rax + 0x12]
lea rdx, str.Failed_add_header_
xor ebx, ebx
mov byte [rbp + 0x18], bl
mov qword [rbp + 0x30], send
mov qword [rbp + 0x28], rbx
lea rcx, [rbp + 0x18]
call fcn.180001d00
lea rcx, [rbp + 0x18]
call fcn.1800153d0
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movups xmm0, xmmword [rbp + 0x38]
mov byte [rbp + 0x38], bl
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x48]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x50], send
mov r8, qword [rbp + 0x70]
cmp r8, 8
jb 0x180012179
inc r8
mov rdx, qword [rbp + 0x58]
lea rcx, [rbp + 0x58]
call fcn.18000a9c0
mov qword [rbp + 0x68], rbx
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], bx
jmp 0x1800125df
mov dword [rsp + 0x64], 0x3300
cmp dword [rsp + 0x40], 0
jne 0x1800121c9
mov r9d, 4
lea r8, [rsp + 0x64]
lea edx, [r9 + 0x1b]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1800121c9
lea r8d, [rax + 0x13]
lea rdx, str.Failed_set_dwFlags_
jmp 0x1800120ff
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x18001228e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x18004d3a0]
lea rcx, [rbp + 0xa0]
call fcn.180014400
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], send
mov byte [rbp + 0x18], al
lea rax, [rbp + 0xa0]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180012225
mov r8, rbx
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x18]
call fcn.180001d00
nop
lea r8, [rbp + 0x18]
lea rdx, str.Failed_send_request:
lea rcx, [rbp + 0x78]
call fcn.18000d200
mov rcx, rax
call fcn.1800153d0
nop
lea rcx, [rbp + 0x18]
call fcn.180001c80
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor ebx, ebx
jmp 0x180012141
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x180012310
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error__d_has_occurred._n
lea rcx, [rbp + 0xa0]
call fcn.180014400
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], send
mov byte [rbp + 0x18], al
lea rax, [rbp + 0xa0]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800122d1
mov r8, rbx
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x18]
call fcn.180001d00
nop
lea r8, [rbp + 0x18]
lea rdx, str.Failed_receive_response:
lea rcx, [rbp + 0x78]
call fcn.18000d200
mov rcx, rax
call fcn.1800153d0
nop
jmp 0x18001225f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edx, dword [rsp + 0x60]
lea eax, [rdx - 0x12c]
cmp eax, 3
jbe 0x1800124a1
lea eax, [rdx - 0x133]
cmp eax, 1
jbe 0x1800124a1
cmp edx, 0xc8
je 0x1800123cf
cmp edx, 0x194
je 0x1800123cf
lea rcx, [rbp + 0x18]
call fcn.1800022c0
nop
mov r8, rax
lea rdx, str.Error:_Status_Code_:
lea rcx, [rbp + 0x78]
call fcn.18000d200
mov rcx, rax
call fcn.1800153d0
nop
lea rcx, [rbp + 0x18]
call fcn.180001c80
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movups xmm0, xmmword [rbp + 0x38]
mov byte [rbp + 0x38], bl
jmp 0x180012148
mov esi, 0xa
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x44], ebx
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x180012473
mov ecx, dword [rsp + 0x44]
inc ecx
call fcn.18001b828
mov rbx, rax
test rax, rax
je 0x18001246d
mov r8d, dword [rsp + 0x44]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.18001e3f0
xor eax, eax
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x180012443
dec esi
jmp 0x180012454
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.180009920
mov rcx, rbx
call fcn.18001b4f0
xor ebx, ebx
cmp dword [rsp + 0x44], ebx
jbe 0x180012473
test esi, esi
js 0x180012473
jmp 0x1800123e0
xor ebx, ebx
mov dword [rsp + 0x44], ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movups xmm0, xmmword [rbp + 0x38]
mov byte [rbp + 0x38], 0
jmp 0x180012148
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x4a0]
xor r8d, r8d
lea edx, [r8 + 0x21]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], bx
mov r8d, dword [rsp + 0x40]
lea rdx, [rbp + 0x4a0]
lea rcx, [rbp + 0x18]
call fcn.18000e1e0
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x28]
lea rbx, [rdx + rax*2]
lea rsi, [rbp + 0x18]
cmovae rsi, qword [rbp + 0x18]
xor eax, eax
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x90], socket
mov byte [rbp + 0x78], al
mov rdx, rbx
sub rdx, rsi
sar rdx, 1
cmp rdx, 0xf
jbe 0x180012542
lea rcx, [rbp + 0x78]
call fcn.180001e80
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x78]
call fcn.180014b10
nop
mov eax, dword [rsp + 0x6c]
dec eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x78]
mov r8, qword [rsp + 0x48]
lea rdx, [rbp + 0x18]
mov rcx, rdi
call fcn.180011c30
nop
lea rcx, [rbp + 0x78]
call fcn.180001c80
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x1800125a9
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.18000a9c0
xor ebx, ebx
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], bx
jmp 0x18001215f
movups xmm0, xmmword [rbp + 0x38]
mov byte [rbp + 0x38], 0
movups xmm1, xmmword [rbp + 0x48]
mov qword [rbp + 0x48], rcx
movups xmmword [rdi], xmm0
mov qword [rbp + 0x50], send
movups xmmword [rdi + 0x10], xmm1
lea rcx, [rbp + 0x38]
call fcn.180001c80
mov rax, rdi
mov rcx, qword [rbp + 0x14a0]
xor rcx, rsp
call fcn.18001add0
add rsp, 0x15b8
pop rdi
pop rsi
pop rbx
pop rbp
ret