Function at 0x1400d1ca0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1402581e0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rax, qword [rbp + 0x230]
xor r13d, r13d
mov rbx, r9
mov r12, r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov r14d, r13d
mov qword [rsp + 0x50], r13
mov qword [rdx], r13
test r8, r8
jne 0x1400d1d09
xor eax, eax
jmp 0x1400d244f
mov qword [rsp + 0x2c8], r15
call fcn.1400d2630
mov r15, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1400d1d2c
lea eax, [r15 + 0x1b]
jmp 0x1400d2447
lea r9, str.Content_Type:_multipart_form_data
test rbx, rbx
lea r8, str._s__boundary_s_r_n
cmovne r9, rbx
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.1400d1920
mov ebx, eax
test eax, eax
je 0x1400d1d68
mov rcx, r15
call qword [sub.MSVCR120.dll_free]
mov eax, ebx
jmp 0x1400d2447
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x2d8], rsi
mov qword [rsp + 0x2d0], rdi
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x38], 0
je 0x1400d1daa
lea r8, [0x14025b744]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400d1920
mov edi, eax
test eax, eax
jne 0x1400d23ea
lea r8, str.___s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, r15
call fcn.1400d1920
mov edi, eax
test eax, eax
jne 0x1400d23ea
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400d1920
mov edi, eax
test eax, eax
jne 0x1400d23ea
movsxd rbx, dword [r12 + 0x10]
mov rsi, qword [r12 + 8]
lea ecx, [rax + 0x20]
call qword [sub.MSVCR120.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400d23de
mov qword [rax], r13
test rbx, rbx
jne 0x1400d1e29
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400d1e20
lea rcx, [rbx + 1]
call qword [sub.MSVCR120.dll_malloc]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400d23d5
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.MSVCR120.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 0x1400d1e70
mov qword [rax], rdi
add qword [rsp + 0x38], rbx
lea r8, [0x14025b75c]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400d1920
mov edi, eax
test eax, eax
jne 0x1400d23ea
cmp qword [r12 + 0x48], 0
je 0x1400d1eee
test r14, r14
je 0x1400d1eab
mov rcx, r14
call qword [sub.MSVCR120.dll_free]
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
call fcn.1400d2630
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400d23de
lea r8, str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, rax
call fcn.1400d1920
mov edi, eax
test eax, eax
jne 0x1400d23ea
jmp 0x1400d1ef3
mov rsi, qword [rsp + 0x58]
mov r13, r12
cmp qword [r12 + 0x48], 0
je 0x1400d1f39
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, r14
call fcn.1400d1920
mov edi, eax
test eax, eax
jne 0x1400d23e5
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.1400d1b50
mov edi, eax
test eax, eax
jmp 0x1400d1f64
mov eax, dword [r12 + 0x50]
test al, 0x51
je 0x1400d1f6a
cmp qword [r12 + 0x58], 0
jne 0x1400d1f4e
test al, 1
je 0x1400d1f62
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.1400d1b50
mov edi, eax
test edi, edi
jne 0x1400d23e5
mov r9, qword [r13 + 0x38]
test r9, r9
je 0x1400d1f93
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400d1920
mov edi, eax
test eax, eax
jne 0x1400d23e5
mov rbx, qword [r13 + 0x40]
test rbx, rbx
je 0x1400d1fce
nop dword [rax]
mov r9, qword [rbx]
lea r8, str._r_n_s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400d1920
mov edi, eax
test eax, eax
jne 0x1400d23e5
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400d1fa0
jmp 0x1400d1fd6
test edi, edi
jne 0x1400d23e5
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400d1920
mov edi, eax
test eax, eax
jne 0x1400d23e5
mov eax, dword [r12 + 0x50]
test al, 1
jne 0x1400d215e
test al, 2
jne 0x1400d215e
lea ecx, [rdi + 0x20]
test al, 0x10
je 0x1400d20cf
movsxd rbx, dword [r12 + 0x30]
mov rsi, qword [r12 + 0x28]
call qword [sub.MSVCR120.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400d2065
mov qword [rax], 0
test rbx, rbx
jne 0x1400d2049
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400d2040
lea rcx, [rbx + 1]
call qword [sub.MSVCR120.dll_malloc]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400d2093
mov rcx, rdi
call qword [sub.MSVCR120.dll_free]
mov edi, 0x1b
mov rsi, qword [rsp + 0x40]
mov r13, qword [r13 + 0x48]
test r13, r13
je 0x1400d2338
test edi, edi
jne 0x1400d23e5
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
jmp 0x1400d1ef6
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.MSVCR120.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 0x1400d20c6
mov qword [rax], rdi
add qword [rsp + 0x38], rbx
xor edi, edi
jmp 0x1400d206a
test al, 0x40
je 0x1400d211c
movsxd rdi, dword [r12 + 0x20]
mov rbx, qword [r12 + 0x60]
call qword [sub.MSVCR120.dll_malloc]
test rax, rax
je 0x1400d2065
mov rcx, qword [rsp + 0x30]
mov qword [rax], 0
mov qword [rax + 0x10], rbx
mov dword [rax + 8], 2
mov qword [rsp + 0x30], rax
test rcx, rcx
je 0x1400d2110
mov qword [rcx], rax
add qword [rsp + 0x38], rdi
xor edi, edi
jmp 0x1400d206a
movsxd rbx, dword [r12 + 0x20]
mov rsi, qword [r12 + 0x18]
call qword [sub.MSVCR120.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400d2065
mov qword [rax], 0
test rbx, rbx
jne 0x1400d2049
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400d2150
jmp 0x1400d2049
mov rdx, qword [r13 + 0x18]
lea rcx, [0x14025b7b4]
call sub.MSVCR120.dll__stricmp
test eax, eax
jne 0x1400d217a
call qword [sym.imp.MSVCR120.dll___iob_func]
jmp 0x1400d218b
mov rcx, qword [r13 + 0x18]
lea rdx, [0x14025b7d4]
call qword [sym.imp.MSVCR120.dll_fopen]
mov r15, rax
test rax, rax
je 0x1400d230a
call qword [sym.imp.MSVCR120.dll___iob_func]
cmp r15, rax
je 0x1400d224a
mov rcx, r15
call qword [sym.imp.MSVCR120.dll_fclose]
mov rdi, qword [r13 + 0x18]
mov ecx, 0x20
call qword [sub.MSVCR120.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400d2065
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 0x1400d21ee
mov qword [rax], rbx
mov rdx, qword [rbx + 0x10]
lea rcx, [0x14025b72c]
call sub.MSVCR120.dll__stricmp
test eax, eax
je 0x1400d20cb
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x70]
call qword [sym.imp.MSVCR120.dll__stat64]
test eax, eax
jne 0x1400d2240
movzx eax, word [rsp + 0x76]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x1400d2240
mov rax, qword [rbp - 0x78]
add qword [rsp + 0x38], rax
xor edi, edi
jmp 0x1400d206a
mov edi, 0x2b
jmp 0x1400d206a
lea rcx, [rbp - 0x50]
mov r9, r15
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.MSVCR120.dll_fread]
mov r14, rax
test rax, rax
je 0x1400d206a
mov rsi, qword [rsp + 0x30]
xor edi, edi
mov ecx, 0x20
call qword [sub.MSVCR120.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400d2065
lea rcx, [r14 + 1]
mov qword [rax], rdi
call qword [sub.MSVCR120.dll_malloc]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400d2302
lea rdx, [rbp - 0x50]
mov r8, r14
mov rcx, rax
call sub.MSVCR120.dll_memcpy
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], r14
mov byte [r14 + rax], dil
mov qword [rsp + 0x30], rbx
mov dword [rbx + 8], 1
test rsi, rsi
je 0x1400d22d1
mov qword [rsi], rbx
add qword [rsp + 0x38], r14
lea rcx, [rbp - 0x50]
mov r9, r15
mov edx, 1
mov r8d, 0x200
mov rsi, rbx
call qword [sym.imp.MSVCR120.dll_fread]
mov r14, rax
test rax, rax
jne 0x1400d2275
jmp 0x1400d206a
mov rcx, rbx
jmp 0x1400d205f
test rsi, rsi
je 0x1400d2322
mov r8, qword [r13 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, rsi
call fcn.1400b8ac0
mov rsi, qword [rsp + 0x40]
mov edi, 0x1a
mov qword [rsi], 0
jmp 0x1400d206f
test edi, edi
jne 0x1400d23e5
cmp qword [r12 + 0x48], 0
mov r14, qword [rsp + 0x50]
je 0x1400d236c
lea r8, str._r_n___s__
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, r14
call fcn.1400d1920
mov edi, eax
test eax, eax
jne 0x1400d23e5
mov r12, qword [r12]
mov r15, qword [rsp + 0x48]
test r12, r12
je 0x1400d2382
xor r13d, r13d
jmp 0x1400d1d82
test edi, edi
jne 0x1400d23ea
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, r15
call fcn.1400d1920
mov edi, eax
test eax, eax
jne 0x1400d23ea
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
test r14, r14
je 0x1400d23c0
mov rcx, r14
call qword [sub.MSVCR120.dll_free]
mov rcx, r15
call qword [sub.MSVCR120.dll_free]
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
xor eax, eax
jmp 0x1400d2437
mov rcx, rdi
call qword [sub.MSVCR120.dll_free]
mov edi, 0x1b
jmp 0x1400d23ea
mov r15, qword [rsp + 0x48]
mov r12, qword [rsp + 0x60]
test r12, r12
je 0x1400d241c
cmp dword [r12 + 8], 1
mov rbx, qword [r12]
jg 0x1400d240b
mov rcx, qword [r12 + 0x10]
call qword [sub.MSVCR120.dll_free]
mov rcx, r12
call qword [sub.MSVCR120.dll_free]
mov r12, rbx
test rbx, rbx
jne 0x1400d23f4
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400d242c
call qword [sub.MSVCR120.dll_free]
mov rcx, r15
call qword [sub.MSVCR120.dll_free]
mov eax, edi
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2d8]
mov r15, qword [rsp + 0x2c8]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1401bddc0
add rsp, 0x2e0
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret