Function at 0x140012a50
Capabilities:
Read http header
Receive http response

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140078088]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x48], rdx
xor r15d, r15d
mov dword [rsp + 0x34], r15d
mov qword [rdx + 0x18], 7
mov qword [rdx + 0x10], r15
cmp qword [rdx + 0x18], 8
jb 0x140012ab2
mov rax, qword [rdx]
jmp 0x140012ab5
mov rax, rdi
mov word [rax], r15w
mov dword [rsp + 0x34], 1
xor edx, edx
mov rcx, qword [r8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140012cc5
mov dword [rsp + 0x30], 0x800
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
xor r8d, r8d
lea edx, [r8 + 0x15]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x140012cc5
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x50]
call fcn.14002ef80
mov dword [rsp + 0x30], 0x400
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rbp - 0x50]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140012cc5
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
or r12, 0xffffffffffffffff
mov r9d, r12d
lea r8, [rbp - 0x50]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.14002bb5c
mov rsi, rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, [rbp - 0x50]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140012cbd
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r15
mov word [rsp + 0x70], r15w
lea r8d, [r12 + 8]
lea rdx, str.photoid
lea rcx, [rsp + 0x70]
call fcn.140003570
nop
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp word [rsi], 0
jne 0x140012be9
mov r8, r15
jmp 0x140012bfb
mov r8, r12
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x140012bf0
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140003570
nop
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
call fcn.140013380
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x140012c3f
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400036f0
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x140012c6f
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400036f0
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r15
mov word [rsp + 0x70], r15w
cmp byte [r14], 0
jne 0x140012ca3
lea rax, [rbp - 0x70]
cmp rdi, rax
je 0x140012ca3
mov r9, r12
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.140003250
nop
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x140012cbd
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.1400036f0
mov rcx, rsi
call fcn.14002bac4
mov rax, rdi
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.14002baa0
add rsp, 0x8c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret