Function at 0x140022490
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push r12
push r14
push r15
lea rbp, [rsp - 0x228]
sub rsp, 0x328
mov rax, qword [0x1400c5518]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rax, qword [rbp + 0x280]
mov rbx, r9
mov qword [rsp + 0x58], rax
mov r12, r8
xor eax, eax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rcx
mov r14, rdx
mov qword [rsp + 0x38], rax
mov r15, rcx
mov qword [rsp + 0x30], rax
mov esi, eax
mov qword [rdx], rax
test r8, r8
je 0x140022b86
movdqa xmm0, xmmword [str.________________easy_handle_already_used_in_multi_handle]
lea r8d, [rax + 0x11]
lea rdx, [rbp - 0x20]
movq qword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x38], xmm0
call fcn.1400260f0
lea rax, [rbp - 0x38]
test rbx, rbx
lea r9, str.Content_Type:_multipart_form_data
mov qword [rsp + 0x20], rax
cmovne r9, rbx
lea r8, str._s__boundary_s_r_n
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140022260
test eax, eax
jne 0x140022b86
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x320], rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x318], r13
test rsi, rsi
je 0x140022585
lea r8, [0x14009cdcc]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022260
mov edi, eax
test eax, eax
jne 0x140022b41
lea r9, [rbp - 0x38]
lea r8, str.___s_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022260
mov edi, eax
test eax, eax
jne 0x140022b41
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022260
mov edi, eax
test eax, eax
jne 0x140022b41
movsxd r9, dword [r12 + 0x10]
lea rax, [rsp + 0x30]
mov r8, qword [r12 + 8]
lea edx, [rdi + 1]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.1400220b0
mov edi, eax
test eax, eax
jne 0x140022b41
lea r8, [0x14009ce00]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022260
mov edi, eax
test eax, eax
jne 0x140022b41
cmp qword [r12 + 0x48], 0
je 0x140022661
movdqa xmm0, xmmword [str.________________easy_handle_already_used_in_multi_handle]
lea r8d, [rax + 0x11]
lea rdx, [rbp - 0x50]
movq qword [rbp - 0x58], xmm0
mov rcx, r15
movups xmmword [rbp - 0x68], xmm0
call fcn.1400260f0
lea r9, [rbp - 0x68]
lea r8, str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022260
mov edi, eax
test eax, eax
jne 0x140022b41
mov r13, r12
cmp qword [r12 + 0x48], 0
je 0x1400226a8
lea r9, [rbp - 0x68]
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022260
mov edi, eax
test eax, eax
jne 0x140022b41
lea r8, [rsp + 0x30]
mov rcx, r13
lea rdx, [rsp + 0x38]
call fcn.140023560
mov edi, eax
test eax, eax
jmp 0x1400226d3
mov eax, dword [r12 + 0x50]
test al, 0x51
je 0x1400226d9
cmp qword [r12 + 0x58], 0
jne 0x1400226bd
test al, 1
je 0x1400226d1
lea r8, [rsp + 0x30]
mov rcx, r12
lea rdx, [rsp + 0x38]
call fcn.140023560
mov edi, eax
test edi, edi
jne 0x140022b41
mov r9, qword [r13 + 0x38]
test r9, r9
je 0x140022702
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022260
mov edi, eax
test eax, eax
jne 0x140022b41
mov rbx, qword [r13 + 0x40]
test rbx, rbx
je 0x14002273e
nop dword [rax + rax]
mov r9, qword [rbx]
lea r8, str._r_n_s
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022260
mov edi, eax
test eax, eax
jne 0x140022b41
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140022710
jmp 0x140022746
test edi, edi
jne 0x140022b41
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022260
mov edi, eax
test eax, eax
jne 0x140022b41
mov eax, dword [r12 + 0x50]
test al, 3
jne 0x140022859
test al, 0x10
je 0x1400227a4
movsxd r9, dword [r12 + 0x30]
lea rax, [rsp + 0x30]
mov r8, qword [r12 + 0x28]
lea edx, [rdi + 2]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.1400220b0
mov rsi, qword [rsp + 0x30]
mov edi, eax
jmp 0x140022a5f
test al, 0x40
je 0x14002281f
test al, al
jns 0x1400227b3
mov rbx, qword [r12 + 0x68]
jmp 0x1400227b8
movsxd rbx, dword [r12 + 0x20]
mov rdi, qword [r12 + 0x60]
mov rsi, qword [rsp + 0x30]
test rbx, rbx
js 0x140022815
test rsi, rsi
js 0x140022815
mov ecx, 0x20
call qword [fcn.14006f290]
test rax, rax
jne 0x1400227e4
lea edi, [rax + 0x1b]
jmp 0x140022a5f
mov rcx, qword [rsp + 0x38]
xor edx, edx
add rsi, rbx
mov qword [rax], rdx
mov qword [rax + 0x10], rdi
mov dword [rax + 8], 3
mov qword [rsp + 0x30], rsi
test rcx, rcx
je 0x140022809
mov qword [rcx], rax
mov qword [rsp + 0x38], rax
mov edi, edx
jmp 0x140022a5f
mov edi, 0x2b
jmp 0x140022a5f
test al, al
jns 0x14002282a
mov r9, qword [r12 + 0x68]
jmp 0x14002282f
movsxd r9, dword [r12 + 0x20]
mov r8, qword [r12 + 0x18]
lea rax, [rsp + 0x30]
mov edx, 2
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x38]
call fcn.1400220b0
mov rsi, qword [rsp + 0x30]
mov edi, eax
jmp 0x140022a5f
mov rcx, qword [r13 + 0x18]
mov eax, 0x2d
xor ebx, ebx
cmp al, byte [rcx]
jne 0x140022876
cmp bl, byte [rcx + 1]
jne 0x140022876
xor ecx, ecx
call fcn.14007381c
jmp 0x140022882
lea rdx, [0x140098dec]
call fcn.1400754f0
mov r14, rax
test rax, rax
je 0x140022b12
xor ecx, ecx
call fcn.14007381c
cmp r14, rax
je 0x140022951
mov rcx, r14
call fcn.14006e4d8
mov rsi, qword [rsp + 0x30]
mov rdi, qword [r13 + 0x18]
test rsi, rsi
js 0x140022947
mov ecx, 0x20
call qword [fcn.14006f290]
mov rbx, rax
test rax, rax
jne 0x1400228d3
lea edi, [rax + 0x1b]
jmp 0x140022a5a
xor edx, edx
mov qword [rax + 0x10], rdi
mov qword [rax], rdx
mov dword [rax + 8], 4
mov eax, 0x2d
cmp al, byte [rdi]
jne 0x1400228f1
cmp dl, byte [rdi + 1]
je 0x140022925
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140076054
test eax, eax
jne 0x14002293e
movzx eax, word [rsp + 0x66]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x14002293e
add rsi, qword [rsp + 0x78]
mov qword [rsp + 0x30], rsi
xor edx, edx
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140022932
mov qword [rax], rbx
mov qword [rsp + 0x38], rbx
mov edi, edx
jmp 0x140022a5a
mov rcx, rbx
call qword [fcn.14006f27c]
mov edi, 0x2b
jmp 0x140022a5a
mov r9, r14
lea rcx, [rbp]
mov edx, 1
mov r8d, 0x200
call fcn.14006e980
mov rsi, qword [rsp + 0x30]
mov rbx, rax
test rax, rax
je 0x140022a5a
mov r15, qword [rsp + 0x38]
nop
test rbx, rbx
js 0x140022b08
test rsi, rsi
js 0x140022b08
mov ecx, 0x20
call qword [fcn.14006f290]
mov rdi, rax
test rax, rax
je 0x140022afe
mov qword [rax], 0
test rbx, rbx
jne 0x1400229c9
lea rax, [rbp]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400229c0
lea rcx, [rbx + 1]
call qword [fcn.14006f290]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140022af5
mov r8, rbx
lea rdx, [rbp]
mov rcx, rax
call fcn.140069ca0
mov rax, qword [rdi + 0x10]
add rsi, rbx
mov qword [rsp + 0x30], rsi
mov byte [rbx + rax], 0
mov qword [rdi + 0x18], rbx
mov dword [rdi + 8], 2
test r15, r15
je 0x140022a12
mov qword [r15], rdi
mov r15, rdi
mov qword [rsp + 0x38], rdi
mov rcx, r14
xor edi, edi
call fcn.140074b38
test eax, eax
jne 0x140022a55
mov rcx, r14
call fcn.140074b64
test eax, eax
jne 0x140022a55
mov r9, r14
lea edx, [rdi + 1]
mov r8d, 0x200
lea rcx, [rbp]
call fcn.14006e980
mov rbx, rax
test rax, rax
jne 0x140022980
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov r13, qword [r13 + 0x48]
test edi, edi
jne 0x140022b41
test r13, r13
jne 0x140022664
cmp qword [r12 + 0x48], r13
je 0x140022aa4
lea r9, [rbp - 0x68]
lea r8, str._r_n___s__
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022260
mov edi, eax
test eax, eax
jne 0x140022b41
mov rsi, qword [rsp + 0x30]
mov r12, qword [r12]
test r12, r12
jne 0x140022560
test edi, edi
jne 0x140022b41
lea r9, [rbp - 0x38]
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022260
mov edi, eax
test eax, eax
jne 0x140022b41
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
mov qword [r14], rax
xor eax, eax
jmp 0x140022b76
mov rcx, rdi
call qword [fcn.14006f27c]
mov edi, 0x1b
jmp 0x140022a55
mov edi, 0x2b
jmp 0x140022a55
test r15, r15
je 0x140022b2a
mov r8, qword [r13 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, r15
call fcn.140025650
mov r14, qword [rsp + 0x40]
mov edi, 0x1a
mov rsi, qword [rsp + 0x30]
mov qword [r14], rbx
jmp 0x140022a5f
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x140022b74
nop dword [rax + rax]
cmp dword [rsi + 8], 2
mov rbx, qword [rsi]
jg 0x140022b63
mov rcx, qword [rsi + 0x10]
call qword [fcn.14006f27c]
mov rcx, rsi
call qword [fcn.14006f27c]
mov rsi, rbx
test rbx, rbx
jne 0x140022b50
mov eax, edi
mov rdi, qword [rsp + 0x320]
mov r13, qword [rsp + 0x318]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140067810
add rsp, 0x328
pop r15
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret