Function at 0x14005a930
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, 0xf8
mov rax, qword [0x140136210]
xor rax, rsp
mov qword [rbp - 9], rax
mov rbx, r9
mov qword [rsp + 0x58], r8
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x60], rcx
mov qword [rbp - 0x61], rdx
mov rax, qword [rbp + 0x6f]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x44], 0
cmp qword [rcx], 0
jne 0x14005a9d4
mov rdx, qword [rdx + 0x18]
cmp rdx, 8
jb 0x14005a9ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14005a9c5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005aec0
mov rcx, r8
call fcn.1400a7470
xor r14d, r14d
xor al, al
jmp 0x14005ae8a
xor r14d, r14d
mov word [rsp + 0x40], r14w
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x14011da40]
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 r9, [rsp + 0x40]
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.14005a5b0
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
xor r9d, r9d
movzx edi, word [rsp + 0x40]
movzx r8d, di
mov rcx, qword [r15]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r10, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14005ab37
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14005aa8d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14005aa88
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005aecc
call fcn.1400a7470
movdqa xmm0, xmmword [0x14011da40]
mov word [rbp - 0x59], r14w
movdqu xmmword [rbp - 0x49], xmm0
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14005aadf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14005aada
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005aeba
call fcn.1400a7470
movdqa xmm0, xmmword [0x14011da40]
mov word [rbp - 0x39], r14w
movdqu xmmword [rbp - 0x29], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14005ab30
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x14005ab2b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005aec0
mov rcx, r8
call fcn.1400a7470
xor al, al
jmp 0x14005ae8a
lea rax, [0x14011bb18]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], r14
mov edx, 0x1bb
mov ecx, r14d
mov eax, 0x800000
cmp di, dx
cmove ecx, eax
mov rax, qword [r15 + 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, rbx
mov rcx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
test rax, rax
je 0x14005aa4d
mov r12d, r14d
mov r13d, r14d
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x14005ac91
mov rdi, r14
lea r11, [rdx + rdi]
mov rcx, qword [r11 + 0x10]
mov r10, r11
mov rbx, qword [r11 + 0x18]
cmp rbx, 8
jb 0x14005abd9
mov r10, qword [r11]
cmp rcx, 0xd
jb 0x14005ac3d
add rcx, 0xfffffffffffffff3
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r9, [r10 + rax*2]
mov r8, r9
lea rax, str.Content_Type:
sub r8, rax
cmp word [r9], 0x43
jne 0x14005ad79
mov edx, 0xd
movzx ecx, word [rax + r8]
cmp cx, word [rax]
jne 0x14005ad72
add rax, 2
sub rdx, 1
jne 0x14005ac12
sub r9, r10
sar r9, 1
cmp r9, 0xffffffffffffffff
mov eax, 1
cmovne r12d, eax
cmp rbx, 8
jb 0x14005ac46
mov r11, qword [r11]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rdx, r11
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x14005ad8f
inc r13d
add rdi, 0x20
mov r8, qword [rsp + 0x48]
mov rdx, qword [r8]
mov rcx, qword [r8 + 8]
sub rcx, rdx
sar rcx, 5
movsxd rax, r13d
cmp rax, rcx
jb 0x14005abc1
test r12d, r12d
jne 0x14005acb5
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x14005ad8f
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.14005a1a0
mov rbx, rax
mov rdx, qword [rax + 0x18]
cmp rdx, 8
jb 0x14005ad04
mov rcx, qword [rax]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14005acff
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005aec6
mov rcx, r8
call fcn.1400a7470
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov qword [rsp + 0x30], r14
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14005ad8f
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14005ad8f
mov rdx, qword [rsp + 0x58]
mov rcx, r15
call fcn.14005aee0
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x18], eax
mov ebx, dword [rsp + 0x44]
movzx ebx, bl
test eax, eax
mov eax, 1
cmovne ebx, eax
jmp 0x14005ad93
lea rax, str.Content_Type:
cmp r9, r10
je 0x14005ac3d
sub r9, 2
sub r8, 2
jmp 0x14005ac02
mov ebx, dword [rsp + 0x44]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14005ade8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ade3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005aecc
call fcn.1400a7470
movdqa xmm0, xmmword [0x14011da40]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r14w
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14005ae3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ae35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005aeba
call fcn.1400a7470
movdqa xmm0, xmmword [0x14011da40]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14005ae87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14005ae82
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005aec0
mov rcx, r8
call fcn.1400a7470
movzx eax, bl
mov word [rsi], r14w
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r14
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400a70e0
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400bc558
nop
call fcn.1400bc558
nop
call fcn.1400bc558
nop
call fcn.1400bc558
int3