Function at 0x1400121f0
Capabilities:
Set http header

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x328]
sub rsp, 0x400
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140078088]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r14, r9
mov r15, rdx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov qword [rbp + 0x2a8], 7
mov qword [rbp + 0x2a0], r12
mov word [rbp + 0x290], r12w
xor r8d, r8d
lea rdx, [0x14005f8c8]
lea rcx, [rbp + 0x290]
call fcn.140003570
nop
lea r8d, [r12 + 7]
lea rdx, str.api_key
lea rcx, [rbp + 0x290]
call fcn.140018fa0
xor r8d, r8d
lea rdx, [0x14005f8c8]
lea rcx, [rbp + 0x290]
call fcn.140018fa0
lea r8d, [r12 + 0xa]
lea rdx, str.auth_token
lea rcx, [rbp + 0x290]
call fcn.140018fa0
or rbx, 0xffffffffffffffff
mov r9, rbx
xor r8d, r8d
lea rdx, [0x14007bfc8]
lea rcx, [rbp + 0x290]
call fcn.140019110
lea r8, [rbp + 0x290]
lea rdx, [rbp + 0x2b0]
call fcn.1400136e0
nop
mov r9d, 0x20000000
or r8d, 0xffffffff
lea rdx, str.Content_Type:_multipart_form_data__boundaryEBA799EB_D9A2_472B_AE86_568D4645707E_r_n
mov rcx, qword [r15]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov edi, eax
test eax, eax
je 0x140012902
lea rcx, [rbp + 0x70]
call fcn.140013c40
nop
lea rdx, [0x140060e38]
lea rcx, [rbp + 0x70]
call fcn.1400199e0
mov rcx, rax
call fcn.1400196e0
mov rcx, rax
lea rdx, [0x140060e30]
call fcn.1400199e0
lea rdx, str.Content_Disposition:_form_data__name_api_key__r_n
lea rcx, [rbp + 0x70]
call fcn.1400199e0
lea rdx, [0x140060e30]
lea rcx, [rbp + 0x70]
call fcn.1400199e0
mov rcx, rax
lea rdx, [0x14005f8c8]
call fcn.1400199e0
mov rcx, rax
lea rdx, [0x140060e30]
call fcn.1400199e0
lea rdx, [0x140060e38]
lea rcx, [rbp + 0x70]
call fcn.1400199e0
mov rcx, rax
call fcn.1400196e0
mov rcx, rax
lea rdx, [0x140060e30]
call fcn.1400199e0
lea rdx, str.Content_Disposition:_form_data__name_auth_token__r_n
lea rcx, [rbp + 0x70]
call fcn.1400199e0
lea rdx, [0x140060e30]
lea rcx, [rbp + 0x70]
call fcn.1400199e0
mov rcx, rax
lea rdx, [0x14007bfc8]
call fcn.140019c40
mov rcx, rax
lea rdx, [0x140060e30]
call fcn.1400199e0
lea rdx, [0x140060e38]
lea rcx, [rbp + 0x70]
call fcn.1400199e0
mov rcx, rax
call fcn.1400196e0
mov rcx, rax
lea rdx, [0x140060e30]
call fcn.1400199e0
lea rdx, str.Content_Disposition:_form_data__name_api_sig__r_n
lea rcx, [rbp + 0x70]
call fcn.1400199e0
lea rdi, [rbp + 0x2b0]
cmp qword [rbp + 0x2c8], 8
cmovae rdi, qword [rbp + 0x2b0]
lea rdx, [0x140060e30]
lea rcx, [rbp + 0x70]
call fcn.1400199e0
mov rcx, rax
mov rdx, rdi
call fcn.1400199e0
mov rcx, rax
lea rdx, [0x140060e30]
call fcn.1400199e0
lea rdx, [0x140060e38]
lea rcx, [rbp + 0x70]
call fcn.1400199e0
mov rcx, rax
call fcn.1400196e0
mov rcx, rax
lea rdx, [0x140060e30]
call fcn.1400199e0
lea rdx, str.Content_Disposition:_form_data__name_photo___filename_
lea rcx, [rbp + 0x70]
call fcn.1400199e0
mov rcx, rax
mov rdx, r14
call fcn.140019c40
mov rcx, rax
lea rdx, str.__r_n_r_n
call fcn.1400199e0
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x70]
call fcn.140013b90
nop
lea r8, [rbp + 0x270]
cmp qword [rbp + 0x288], 8
cmovae r8, qword [rbp + 0x270]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14002bb5c
mov rsi, rax
lea r8, [rbp + 0x270]
cmp qword [rbp + 0x288], 8
cmovae r8, qword [rbp + 0x270]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rbp + 0x268], 0xf
mov qword [rbp + 0x260], r12
mov byte [rbp + 0x250], r12b
cmp byte [rsi], r12b
jne 0x140012553
mov ebx, r12d
jmp 0x14001255c
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140012553
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x250]
call fcn.14001d0f0
nop
mov rcx, rsi
call fcn.14002bac4
lea rax, [0x1400616d0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x40], 1
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x10], rax
mov dword [rbp + 0xc], ILFree
mov qword [rsp + 0x68], r12
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x10]
call fcn.140019590
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.1400194e0
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x70], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140017970
nop
cmp qword [r14 + 0x18], 8
jb 0x140012609
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140017b30
test rax, rax
jne 0x140012648
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea r9, [rsp + 0x60]
add rcx, r9
mov eax, dword [rcx + 0x10]
or eax, 2
mov edx, eax
or edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, eax
xor r8d, r8d
call fcn.14001c400
nop
lea rcx, [rbp + 0x160]
call fcn.1400154f0
nop
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x160]
call fcn.14001a0f0
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x160]
call fcn.140015c10
lea rdx, str._r_n__
lea rcx, [rbp + 0x160]
call fcn.140019ea0
mov rcx, rax
lea rdx, str.EBA799EB_D9A2_472B_AE86_568D4645707E
call fcn.140019ea0
mov rcx, rax
lea rdx, [0x140061014]
call fcn.140019ea0
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp + 0x160]
call fcn.140015440
mov rbx, rax
lea rax, [rbp + 0x250]
cmp rax, rbx
je 0x140012759
mov rcx, qword [rbp + 0x268]
cmp rcx, 0x10
jb 0x140012730
inc rcx
mov rdx, qword [rbp + 0x250]
cmp rcx, 0x1000
jb 0x140012728
test dl, 0x1f
je 0x1400126fb
call fcn.14002fea4
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x14001270a
call fcn.14002fea4
int3
sub rdx, rax
cmp rdx, 8
jae 0x140012719
call fcn.14002fea4
int3
cmp rdx, 0x27
jbe 0x140012725
call fcn.14002fea4
int3
mov rdx, rax
mov rcx, rdx
call fcn.14002bb18
mov qword [rbp + 0x268], 0xf
mov qword [rbp + 0x260], r12
mov byte [rbp + 0x250], 0
mov rdx, rbx
lea rcx, [rbp + 0x250]
call fcn.14001ca90
nop
mov rax, qword [rbp + 0x2e8]
cmp rax, 0x10
jb 0x1400127b5
inc rax
mov rcx, qword [rbp + 0x2d0]
cmp rax, 0x1000
jb 0x1400127b0
test cl, 0x1f
je 0x140012783
call fcn.14002fea4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140012792
call fcn.14002fea4
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400127a1
call fcn.14002fea4
int3
cmp rcx, 0x27
jbe 0x1400127ad
call fcn.14002fea4
int3
mov rcx, rax
call fcn.14002bb18
lea r9, [rbp + 0x250]
cmp qword [rbp + 0x268], 0x10
cmovae r9, qword [rbp + 0x250]
mov qword [rsp + 0x30], r12
mov eax, dword [rbp + 0x260]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
lea rcx, [rbp + 0x1e8]
call fcn.140015470
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x1e8], rbx
lea rcx, [rbp + 0x1e8]
call fcn.14002a08c
nop
lea rcx, [rbp + 0x10]
call fcn.1400148c0
nop
mov qword [rbp + 0x10], rbx
lea rcx, [rbp + 0x10]
call fcn.14002a08c
nop
mov rax, qword [rbp + 0x268]
cmp rax, 0x10
jb 0x14001288b
inc rax
mov rcx, qword [rbp + 0x250]
cmp rax, 0x1000
jb 0x140012886
test cl, 0x1f
je 0x140012859
call fcn.14002fea4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140012868
call fcn.14002fea4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140012877
call fcn.14002fea4
int3
cmp rcx, 0x27
jbe 0x140012883
call fcn.14002fea4
int3
mov rcx, rax
call fcn.14002bb18
mov qword [rbp + 0x268], 0xf
mov qword [rbp + 0x260], r12
mov byte [rbp + 0x250], 0
mov r8, qword [rbp + 0x288]
cmp r8, 8
jb 0x1400128c7
inc r8
mov rdx, qword [rbp + 0x270]
lea rcx, [rbp + 0x270]
call fcn.1400036f0
mov qword [rbp + 0x288], 7
mov qword [rbp + 0x280], r12
mov word [rbp + 0x270], r12w
lea rcx, [rbp + 0xf8]
call fcn.140013bc0
nop
mov qword [rbp + 0xf8], rbx
lea rcx, [rbp + 0xf8]
call fcn.14002a08c
nop
mov r8, qword [rbp + 0x2c8]
cmp r8, 8
jb 0x140012925
inc r8
mov rdx, qword [rbp + 0x2b0]
lea rcx, [rbp + 0x2b0]
call fcn.1400036f0
mov qword [rbp + 0x2c8], 7
mov qword [rbp + 0x2c0], r12
mov word [rbp + 0x2b0], r12w
mov r8, qword [rbp + 0x2a8]
cmp r8, 8
jb 0x140012962
inc r8
mov rdx, qword [rbp + 0x290]
lea rcx, [rbp + 0x290]
call fcn.1400036f0
mov eax, edi
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14002baa0
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret