Function at 0x1400023b0
Capabilities:
Prepare http request
Receive http response
Set http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xe8
mov rax, qword [0x1400a5200]
xor rax, rsp
mov qword [rbp - 9], rax
mov rdi, r9
mov r13, r8
mov qword [rsp + 0x50], r8
mov r15, rdx
mov qword [rsp + 0x48], rdx
mov r12, rcx
mov qword [rsp + 0x60], rcx
mov qword [rbp - 0x61], rdx
mov rax, qword [rbp + 0x6f]
mov qword [rsp + 0x58], rax
mov rbx, qword [rbp + 0x7f]
mov byte [rsp + 0x40], 0
cmp qword [rcx], 0
jne 0x140002457
mov rdx, qword [rdx + 0x18]
cmp rdx, 8
jb 0x14000244d
lea rdx, [rdx*2 + 2]
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140002448
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002afa
mov rcx, r8
call fcn.140046d3c
xor r14d, r14d
xor al, al
jmp 0x140002abe
xor r14d, r14d
mov word [rbp - 0x71], r14w
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x140092950]
movdqu xmmword [rbp - 0x29], xmm1
mov word [rbp - 0x39], r14w
movups xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbp - 0x49], xmm1
mov word [rbp - 0x59], r14w
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x39]
call fcn.140001d40
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
xor r9d, r9d
movzx esi, word [rbp - 0x71]
movzx r8d, si
mov rcx, qword [r12]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r10, rax
mov qword [rbp - 0x79], rax
test rax, rax
jne 0x1400025b9
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14000250f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000250a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002b0c
call fcn.140046d3c
movdqa xmm0, xmmword [0x140092950]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r14w
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140002561
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000255c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002aee
call fcn.140046d3c
movdqa xmm0, xmmword [0x140092950]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov rdx, qword [r15 + 0x18]
cmp rdx, 8
jb 0x1400025b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x1400025ad
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002afa
mov rcx, r8
call fcn.140046d3c
xor al, al
jmp 0x140002abe
lea rax, [0x14008fa70]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], r14
mov edx, 0x1bb
mov ecx, r14d
mov eax, 0x800000
cmp si, dx
cmove ecx, eax
mov rax, qword [r12 + 8]
lea r8, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae r8, qword [rbp - 0x59]
mov dword [rsp + 0x30], ecx
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.HTTP_1.1
mov rdx, rdi
mov rcx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x140002774
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea r9d, [rsi + 0x30]
lea r8, str.Error
lea rdx, str.Failed_To_Open_Request
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea r9d, [rsi + 0x10]
lea r8, str.Error
mov rdx, qword [rbp - 0x69]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x1400026cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400026c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002b00
call fcn.140046d3c
movdqa xmm0, xmmword [0x140092950]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r14w
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14000271e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002719
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002b06
call fcn.140046d3c
movdqa xmm0, xmmword [0x140092950]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov rdx, qword [r15 + 0x18]
cmp rdx, 8
jb 0x1400025b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x1400025ad
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002af4
jmp 0x1400025aa
xor r12b, r12b
mov rax, qword [rbx + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x14000288d
lea r9, str.Content_Type:
mov r15, rax
mov r13d, 1
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
mov r10, rbx
mov rdi, qword [rbx + 0x18]
cmp rdi, 8
jb 0x1400027b4
mov r10, qword [rbx]
cmp rax, 0xd
jb 0x140002849
add rax, 0xfffffffffffffff4
lea r11, [r10 + rax*2]
mov rax, r10
nop dword [rax]
mov rcx, r11
sub rcx, rax
sar rcx, 1
mov rdx, r14
je 0x1400027f9
cmp word [rax], 0x43
je 0x1400027f6
cmp rcx, r13
je 0x1400027f9
dec rcx
add rax, 2
cmp word [rax], 0x43
jne 0x1400027e4
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x140002849
mov r8d, reloc.WS2_32.dll_listen
mov rdx, r9
mov r9, rax
lea rcx, str.Content_Type:
sub r9, rcx
nop word [rax + rax]
movzx ecx, word [rdx + r9]
cmp cx, word [rdx]
jne 0x14000298c
add rdx, 2
sub r8, r13
jne 0x140002820
sub rax, r10
sar rax, 1
movzx r12d, r12b
cmp rax, 0xffffffffffffffff
cmovne r12d, r13d
mov rdx, rbx
cmp rdi, 8
jb 0x140002855
mov rdx, qword [rbx]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
add rbx, 0x20
cmp rbx, r15
lea r9, str.Content_Type:
jne 0x1400027a0
test r12b, r12b
mov r15, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
jne 0x1400028b1
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x1400029c4
mov qword [rsp + 0x30], r14
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400029c4
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400029c4
mov edi, r14d
mov r12, 0xffffffffffffffff
nop dword [rax]
mov dword [rbp - 0x69], r14d
mov dword [rbp - 0x71], r14d
lea rdx, [rbp - 0x71]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400029a9
mov eax, dword [rbp - 0x71]
test eax, eax
je 0x1400029a9
add eax, 1
mov ecx, eax
cmovb rcx, r12
call fcn.14005c96c
mov rbx, rax
mov r8d, dword [rbp - 0x71]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.140049120
lea r9, [rbp - 0x69]
mov r8d, dword [rbp - 0x71]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000299c
mov r9d, dword [rbp - 0x71]
mov rdx, qword [r13 + 8]
mov r8, rbx
mov rcx, r13
call fcn.14000aac0
add edi, dword [rbp - 0x69]
mov rcx, rbx
call fcn.14005c53c
cmp dword [rbp - 0x71], 0
ja 0x140002900
jmp 0x1400029a9
add rax, 2
lea r9, str.Content_Type:
jmp 0x1400027d0
test rbx, rbx
je 0x1400029a9
mov rcx, rbx
call fcn.14005c53c
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x18], edi
mov ebx, dword [rsp + 0x40]
movzx ebx, bl
test edi, edi
mov eax, 1
cmovne ebx, eax
jmp 0x1400029c8
mov ebx, dword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x140002a1c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002b0c
call fcn.140046d3c
movdqa xmm0, xmmword [0x140092950]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r14w
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140002a6e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002aee
call fcn.140046d3c
movdqa xmm0, xmmword [0x140092950]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov rdx, qword [r15 + 0x18]
cmp rdx, 8
jb 0x140002abb
lea rdx, [rdx*2 + 2]
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140002ab6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002afa
mov rcx, r8
call fcn.140046d3c
movzx eax, bl
mov word [r15], r14w
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], r14
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400468a0
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14005c8f4
nop
call fcn.14005c8f4
int3
call fcn.14005c8f4
nop
call fcn.14005c8f4
nop
call fcn.14005c8f4
nop
call fcn.14005c8f4
int3