Function at 0x1400a4640
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r13d, r13d
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x40], rdx
mov rsi, rcx
mov rcx, qword [rbp + 0x220]
mov rdi, r9
mov qword [rsp + 0x68], rcx
mov r12, r8
mov qword [rsp + 0x30], r13
mov r14d, r13d
mov qword [rsp + 0x38], r13
mov r15d, r13d
mov qword [rsp + 0x50], r13
mov qword [rdx], r13
test r8, r8
jne 0x1400a46b2
xor eax, eax
jmp 0x1400a4ed7
mov rcx, rsi
mov qword [rsp + 0x2b8], rbx
call fcn.140089330
mov rcx, rsi
mov ebx, eax
call fcn.140089330
mov edx, eax
lea rcx, str._________________________08x_08x
mov r8d, ebx
call fcn.14009c8d0
mov qword [rsp + 0x48], rax
mov rsi, rax
test rax, rax
jne 0x1400a46f2
lea eax, [rsi + 0x1b]
jmp 0x1400a4ecf
test rdi, rdi
mov qword [rsp + 0x20], rsi
lea r9, str.Content_Type:_multipart_form_data
cmovne r9, rdi
lea r8, str._s__boundary_s_r_n
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4ec4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
nop dword [rax]
test r14, r14
je 0x1400a4755
lea r8, [0x1401c0884]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4e8a
mov r9, rsi
lea r8, str.___s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4e8a
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4e8a
movsxd rbx, dword [r12 + 0x10]
mov rsi, qword [r12 + 8]
test rbx, rbx
js 0x1400a4e80
mov r14, qword [rsp + 0x38]
test r14, r14
js 0x1400a4e80
lea ecx, [rax + 0x20]
call qword [fcn.1401ac298]
mov rdi, rax
test rax, rax
je 0x1400a4e79
mov qword [rax], r13
test rbx, rbx
jne 0x1400a47e9
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400a47e0
lea rcx, [rbx + 1]
call qword [fcn.1401ac298]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400a4e70
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x10]
mov qword [rdi + 0x18], rbx
mov byte [rbx + rax], 0
mov rax, qword [rsp + 0x30]
mov dword [rdi + 8], r13d
mov qword [rsp + 0x30], rdi
test rax, rax
je 0x1400a4830
mov qword [rax], rdi
add r14, rbx
lea r8, [0x1401c6790]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4e85
cmp qword [r12 + 0x48], 0
je 0x1400a48c7
mov rcx, r15
call qword [case.0x14009ea5b.0]
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
call fcn.140089330
mov rcx, rsi
mov ebx, eax
call fcn.140089330
mov edx, eax
lea rcx, str._________________________08x_08x
mov r8d, ebx
call fcn.14009c8d0
mov qword [rsp + 0x50], rax
mov r15, rax
test rax, rax
je 0x1400a4e79
mov r9, rax
lea r8, str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4e85
jmp 0x1400a48cc
mov rsi, qword [rsp + 0x58]
mov r13, r12
nop
cmp qword [r12 + 0x48], 0
je 0x1400a4913
mov r9, r15
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4e85
lea r8, [rsp + 0x38]
mov rcx, r13
lea rdx, [rsp + 0x30]
call fcn.1400a4f00
mov ebx, eax
test eax, eax
jmp 0x1400a493e
mov eax, dword [r12 + 0x50]
test al, 0x51
je 0x1400a4944
cmp qword [r12 + 0x58], 0
jne 0x1400a4928
test al, 1
je 0x1400a493c
lea r8, [rsp + 0x38]
mov rcx, r12
lea rdx, [rsp + 0x30]
call fcn.1400a4f00
mov ebx, eax
test ebx, ebx
jne 0x1400a4e85
mov r9, qword [r13 + 0x38]
test r9, r9
je 0x1400a496d
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4e85
mov rdi, qword [r13 + 0x40]
test rdi, rdi
je 0x1400a49ae
nop word [rax + rax]
mov r9, qword [rdi]
lea r8, str._r_n_s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4e85
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x1400a4980
jmp 0x1400a49b6
test ebx, ebx
jne 0x1400a4e85
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4e85
mov eax, dword [r12 + 0x50]
test al, 3
jne 0x1400a4b9e
test al, 0x10
je 0x1400a4ac2
movsxd rbx, dword [r12 + 0x30]
mov rsi, qword [r12 + 0x28]
mov r14, qword [rsp + 0x38]
test rbx, rbx
js 0x1400a4c9e
test r14, r14
js 0x1400a4c9e
mov ecx, 0x20
call qword [fcn.1401ac298]
mov rdi, rax
test rax, rax
je 0x1400a4a55
mov qword [rax], 0
test rbx, rbx
jne 0x1400a4a39
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400a4a30
lea rcx, [rbx + 1]
call qword [fcn.1401ac298]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400a4a83
mov rcx, rdi
call qword [case.0x14009ea5b.0]
mov ebx, 0x1b
mov rdi, qword [rsp + 0x40]
mov r13, qword [r13 + 0x48]
test r13, r13
je 0x1400a4dca
test ebx, ebx
jne 0x1400a4e85
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
jmp 0x1400a48d0
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rdi + 0x18], rbx
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], 0
mov rax, qword [rsp + 0x30]
mov dword [rdi + 8], 1
mov qword [rsp + 0x30], rdi
test rax, rax
je 0x1400a4ab6
mov qword [rax], rdi
add r14, rbx
mov qword [rsp + 0x38], r14
xor ebx, ebx
jmp 0x1400a4a5a
test al, 0x40
je 0x1400a4b39
test al, al
jns 0x1400a4ad1
mov rbx, qword [r12 + 0x68]
jmp 0x1400a4ad6
movsxd rbx, dword [r12 + 0x20]
mov rdi, qword [r12 + 0x60]
mov r14, qword [rsp + 0x38]
test rbx, rbx
js 0x1400a4c9e
test r14, r14
js 0x1400a4c9e
mov ecx, 0x20
call qword [fcn.1401ac298]
test rax, rax
je 0x1400a4a55
mov rcx, qword [rsp + 0x30]
mov qword [rax], 0
mov qword [rax + 0x10], rdi
mov dword [rax + 8], 2
mov qword [rsp + 0x30], rax
test rcx, rcx
je 0x1400a4b2a
mov qword [rcx], rax
add r14, rbx
mov qword [rsp + 0x38], r14
xor ebx, ebx
jmp 0x1400a4a5a
test al, al
jns 0x1400a4b44
mov rbx, qword [r12 + 0x68]
jmp 0x1400a4b49
movsxd rbx, dword [r12 + 0x20]
mov rsi, qword [r12 + 0x18]
mov r14, qword [rsp + 0x38]
test rbx, rbx
js 0x1400a4c9e
test r14, r14
js 0x1400a4c9e
mov ecx, 0x20
call qword [fcn.1401ac298]
mov rdi, rax
test rax, rax
je 0x1400a4a55
mov qword [rax], 0
test rbx, rbx
jne 0x1400a4a39
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400a4b90
jmp 0x1400a4a39
mov rdx, qword [r13 + 0x18]
lea rcx, [0x1401c01a8]
call fcn.14009bdc0
test eax, eax
je 0x1400a4bbc
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x1400a4bcd
mov rcx, qword [r13 + 0x18]
lea rdx, [0x1401c04c4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r15, rax
test rax, rax
je 0x1400a4d97
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp r15, rax
je 0x1400a4ca8
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r14, qword [rsp + 0x38]
mov rdi, qword [r13 + 0x18]
test r14, r14
js 0x1400a4c9e
mov ecx, 0x20
call qword [fcn.1401ac298]
mov rbx, rax
test rax, rax
je 0x1400a4a55
mov qword [rax], 0
mov qword [rax + 0x10], rdi
mov dword [rax + 8], 3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rbx
test rax, rax
je 0x1400a4c40
mov qword [rax], rbx
mov rdx, qword [rbx + 0x10]
lea rcx, [0x1401c01a8]
call fcn.14009bdc0
test eax, eax
jne 0x1400a4abe
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x1400a4c95
movzx eax, word [rsp + 0x76]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x1400a4c95
movsxd rax, dword [rbp - 0x7c]
add r14, rax
mov qword [rsp + 0x38], r14
xor ebx, ebx
jmp 0x1400a4a5a
mov rcx, rbx
call qword [case.0x14009ea5b.0]
mov ebx, 0x2b
jmp 0x1400a4a5a
mov r9, r15
lea rcx, [rbp - 0x60]
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r14, qword [rsp + 0x38]
mov rdi, rax
test rax, rax
je 0x1400a4a5a
mov rsi, qword [rsp + 0x30]
test rdi, rdi
js 0x1400a4c9e
test r14, r14
js 0x1400a4c9e
mov ecx, 0x20
call qword [fcn.1401ac298]
mov rbx, rax
test rax, rax
je 0x1400a4a55
mov qword [rax], 0
test rdi, rdi
jne 0x1400a4d19
lea rax, [rbp - 0x60]
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400a4d10
lea rcx, [rdi + 1]
call qword [fcn.1401ac298]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400a4d8f
mov r8, rdi
lea rdx, [rbp - 0x60]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], rdi
mov qword [rsp + 0x30], rbx
mov byte [rdi + rax], 0
mov dword [rbx + 8], 1
test rsi, rsi
je 0x1400a4d5b
mov qword [rsi], rbx
mov rsi, rbx
lea rcx, [rbp - 0x60]
xor ebx, ebx
add r14, rdi
mov r9, r15
mov qword [rsp + 0x38], r14
mov r8d, 0x200
lea edx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdi, rax
test rax, rax
jne 0x1400a4cd6
jmp 0x1400a4a5a
mov rcx, rbx
jmp 0x1400a4a4f
test rsi, rsi
je 0x1400a4daf
mov r8, qword [r13 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, rsi
call fcn.1400917f0
mov rdi, qword [rsp + 0x40]
mov ebx, 0x1a
mov r14, qword [rsp + 0x38]
mov qword [rdi], 0
jmp 0x1400a4a5f
test ebx, ebx
jne 0x1400a4e85
cmp qword [r12 + 0x48], 0
mov r15, qword [rsp + 0x50]
je 0x1400a4e07
mov r9, r15
lea r8, str._r_n___s__
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4e85
mov r14, qword [rsp + 0x38]
mov r12, qword [r12]
test r12, r12
je 0x1400a4e1d
mov rsi, qword [rsp + 0x48]
xor r13d, r13d
jmp 0x1400a4730
test ebx, ebx
jne 0x1400a4e85
mov rsi, qword [rsp + 0x48]
lea r8, str._r_n___s___r_n
mov r9, rsi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a42e0
mov ebx, eax
test eax, eax
jne 0x1400a4e8a
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
mov rcx, r15
call qword [case.0x14009ea5b.0]
mov rcx, rsi
call qword [case.0x14009ea5b.0]
mov rax, qword [rsp + 0x60]
mov qword [rdi], rax
xor eax, eax
jmp 0x1400a4ecf
mov rcx, rdi
call qword [case.0x14009ea5b.0]
mov ebx, 0x1b
jmp 0x1400a4e85
mov ebx, 0x2b
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x1400a4eb9
cmp dword [r14 + 8], 1
mov rdi, qword [r14]
jg 0x1400a4ea8
mov rcx, qword [r14 + 0x10]
call qword [case.0x14009ea5b.0]
mov rcx, r14
call qword [case.0x14009ea5b.0]
mov r14, rdi
test rdi, rdi
jne 0x1400a4e94
mov rcx, qword [rsp + 0x50]
call qword [case.0x14009ea5b.0]
mov rcx, rsi
call qword [case.0x14009ea5b.0]
mov eax, ebx
mov rbx, qword [rsp + 0x2b8]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret