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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xd0
mov rax, qword [0x1400aa200]
xor rax, rsp
mov qword [rbp + 7], rax
mov r13, r8
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x79], rcx
mov qword [rbp - 0x61], rdx
mov rsi, qword [rbp + 0x77]
xor r12b, r12b
cmp qword [rcx], 0
jne 0x1400030e0
mov rdx, qword [rdx + 0x18]
cmp rdx, 8
jb 0x1400030d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400030d2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003515
mov rcx, r8
call fcn.140046128
xor ebx, ebx
xor al, al
jmp 0x1400034d9
xor ebx, ebx
mov word [rbp - 0x69], bx
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], bx
mov qword [rbp - 0x51], rbx
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], bx
lea r9, [rbp - 0x69]
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x31]
mov rcx, rdi
call fcn.140002d00
lea rdx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rdx, qword [rbp - 0x31]
xor r9d, r9d
movzx r15d, word [rbp - 0x69]
movzx r8d, r15w
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rcx, rax
mov qword [rbp - 0x71], rax
test rax, rax
jne 0x14000323b
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x140003195
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140003190
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000351b
call fcn.140046128
mov word [rbp - 0x51], bx
mov qword [rbp - 0x39], 7
mov qword [rbp - 0x41], rbx
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1400031e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400031e0
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000350f
call fcn.140046128
mov word [rbp - 0x31], bx
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rbx
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140003234
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x14000322f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003515
mov rcx, r8
call fcn.140046128
xor al, al
jmp 0x1400034d9
lea rax, [0x140096938]
mov qword [rbp - 9], rax
mov qword [rbp - 1], rbx
lea r8, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae r8, qword [rbp - 0x51]
mov r9d, 0x1bb
mov eax, ebx
mov edx, 0x800000
cmp r15w, r9w
cmove eax, edx
mov dword [rsp + 0x30], eax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
mov rax, qword [r14 + 8]
mov qword [rsp + 0x20], rax
lea r9, str.HTTP_1.1
lea rdx, str.POST
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x140003155
mov dword [rbp - 0x11], 2
mov r9d, 4
lea r8, [rbp - 0x11]
lea edx, [r9 + 0x3b]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add byte [rcx - 0x47], al
add byte [rax], al
add byte [rax], ah
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x1400033e6
mov qword [rsp + 0x30], rbx
mov eax, dword [rbp + 0x7f]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400033e6
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400033e6
mov r15d, ebx
mov rsi, 0xffffffffffffffff
nop word [rax + rax]
mov dword [rbp - 0x59], ebx
mov dword [rbp - 0x69], ebx
lea rdx, [rbp - 0x69]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400033ce
mov eax, dword [rbp - 0x69]
test eax, eax
je 0x1400033ce
add eax, 1
mov ecx, eax
cmovb rcx, rsi
call fcn.14005b35c
mov rsi, rax
mov r8d, dword [rbp - 0x69]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.140048820
lea r9, [rbp - 0x59]
mov r8d, dword [rbp - 0x69]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400033c1
mov r9d, dword [rbp - 0x69]
add r9, rsi
mov rdx, qword [r13 + 8]
mov r8, rsi
mov rcx, r13
call fcn.140004370
add r15d, dword [rbp - 0x59]
mov rcx, rsi
call fcn.14005af28
cmp dword [rbp - 0x69], 0
mov rsi, 0xffffffffffffffff
ja 0x140003330
jmp 0x1400033ce
test rsi, rsi
je 0x1400033ce
mov rcx, rsi
call fcn.14005af28
mov rax, qword [rbp - 0x79]
mov dword [rax + 0x18], r15d
movzx r12d, r12b
mov eax, 1
test r15d, r15d
cmovne r12d, eax
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x14000343a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003435
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000351b
call fcn.140046128
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], bx
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14000348a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003485
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000350f
call fcn.140046128
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], bx
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400034d5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400034d0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003515
mov rcx, r8
call fcn.140046128
movzx eax, r12b
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140045be0
mov rbx, qword [rsp + 0x128]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14005b2e4
nop
call fcn.14005b2e4
nop
call fcn.14005b2e4
int3