Function at 0x14004fb30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140072100]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x1e0]
mov rdi, r9
mov rsi, r8
mov qword [rsp + 0x48], rax
xor eax, eax
mov r13, rdx
mov qword [rsp + 0x38], rax
mov ebx, eax
mov qword [rsp + 0x30], rax
mov r12d, eax
mov qword [rdx], rax
mov r15, rcx
test r8, r8
je 0x14004ffa3
call fcn.140050070
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14004fba9
lea eax, [r12 + 0x1b]
jmp 0x14004ffa3
lea r9, str.Content_Type:_multipart_form_data
test rdi, rdi
lea r8, str._s__boundary_s_r_n
cmovne r9, rdi
lea rcx, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14004f890
mov edi, eax
test eax, eax
je 0x14004fbe7
mov rcx, qword [rsp + 0x40]
call qword [0x140072048]
mov eax, edi
jmp 0x14004ffa3
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x278], r14
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
nop
test rbx, rbx
je 0x14004fc25
lea r8, [0x14005aaec]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14004f890
mov ebx, eax
test eax, eax
jne 0x14004ff7b
mov r9, qword [rsp + 0x40]
lea r8, str.___s_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14004f890
mov ebx, eax
test eax, eax
jne 0x14004ff7b
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14004f890
mov ebx, eax
test eax, eax
jne 0x14004ff7b
movsxd r9, dword [rsi + 0x10]
mov r8, qword [rsi + 8]
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14004f700
mov ebx, eax
test eax, eax
jne 0x14004ff7b
lea r8, [0x140064050]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14004f890
mov ebx, eax
test eax, eax
jne 0x14004ff7b
cmp qword [rsi + 0x48], 0
je 0x14004fcf9
mov rcx, r12
call qword [0x140072048]
mov rcx, r15
call fcn.140050070
mov r12, rax
test rax, rax
je 0x140050000
lea r8, str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, rax
call fcn.14004f890
mov ebx, eax
test eax, eax
jne 0x14004ff7b
mov r14, rsi
nop dword [rax]
cmp qword [rsi + 0x48], 0
je 0x14004fd42
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, r12
call fcn.14004f890
mov ebx, eax
test eax, eax
jne 0x14004ff7b
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.1400500b0
mov ebx, eax
test eax, eax
jmp 0x14004fd6a
mov eax, dword [rsi + 0x50]
test al, 0x51
je 0x14004fd70
cmp qword [rsi + 0x58], 0
jne 0x14004fd54
test al, 1
je 0x14004fd68
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.1400500b0
mov ebx, eax
test ebx, ebx
jne 0x14004ff7b
mov r9, qword [r14 + 0x38]
test r9, r9
je 0x14004fd99
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14004f890
mov ebx, eax
test eax, eax
jne 0x14004ff7b
mov rdi, qword [r14 + 0x40]
test rdi, rdi
je 0x14004fdde
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rdi]
lea r8, str._r_n_s
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14004f890
mov ebx, eax
test eax, eax
jne 0x14004ff7b
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x14004fdb0
jmp 0x14004fde6
test ebx, ebx
jne 0x14004ff7b
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14004f890
mov ebx, eax
test eax, eax
jne 0x14004ff7b
mov eax, dword [rsi + 0x50]
test al, 1
jne 0x14004fe87
test al, 2
jne 0x14004fe87
test al, 0x10
je 0x14004fe1f
movsxd r9, dword [rsi + 0x30]
mov r8, qword [rsi + 0x28]
jmp 0x14004fe67
test al, 0x40
je 0x14004fe55
test al, al
jns 0x14004fe2d
mov r9, qword [rsi + 0x68]
jmp 0x14004fe31
movsxd r9, dword [rsi + 0x20]
mov r8, qword [rsi + 0x60]
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov edx, 2
mov qword [rsp + 0x20], rax
call fcn.14004f700
mov ebx, eax
jmp 0x14004ff6a
test al, al
jns 0x14004fe5f
mov r9, qword [rsi + 0x68]
jmp 0x14004fe63
movsxd r9, dword [rsi + 0x20]
mov r8, qword [rsi + 0x18]
mov edx, 1
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.14004f700
mov ebx, eax
jmp 0x14004ff6a
mov rdx, qword [r14 + 0x18]
lea rcx, [0x14005a300]
call fcn.140036f70
test eax, eax
je 0x14004fea3
call qword [sym.imp.MSVCR120.dll___iob_func]
jmp 0x14004feb4
mov rcx, qword [r14 + 0x18]
lea rdx, [0x14005a690]
call qword [sym.imp.MSVCR120.dll_fopen]
mov rdi, rax
test rax, rax
je 0x14004ff45
call qword [sym.imp.MSVCR120.dll___iob_func]
cmp rdi, rax
je 0x14004fee1
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_fclose]
mov r8, qword [r14 + 0x18]
xor r9d, r9d
lea edx, [r9 + 3]
jmp 0x14004fe6c
lea rcx, [rsp + 0x60]
mov r9, rdi
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.MSVCR120.dll_fread]
test rax, rax
je 0x14004ff6a
nop
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x60]
mov r9, rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x38]
mov edx, 1
call fcn.14004f700
mov ebx, eax
test eax, eax
jne 0x14004ff6a
lea edx, [rax + 1]
lea rcx, [rsp + 0x60]
mov r9, rdi
mov r8d, 0x200
call qword [sym.imp.MSVCR120.dll_fread]
test rax, rax
jne 0x14004ff00
jmp 0x14004ff6a
test r15, r15
je 0x14004ff5d
mov r8, qword [r14 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, r15
call fcn.14002b5e0
mov qword [r13], 0
mov ebx, reloc.WLDAP32.dll_Ordinal_26
mov r14, qword [r14 + 0x48]
test r14, r14
je 0x14004ffc4
test ebx, ebx
je 0x14004fd00
lea rcx, [rsp + 0x50]
call fcn.14004faa0
mov rcx, r12
call qword [0x140072048]
mov rcx, qword [rsp + 0x40]
call qword [0x140072048]
mov eax, ebx
mov r14, qword [rsp + 0x278]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140058040
add rsp, 0x280
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test ebx, ebx
jne 0x14004ff7b
cmp qword [rsi + 0x48], 0
je 0x14004ffee
lea r8, str._r_n___s__
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, r12
call fcn.14004f890
mov ebx, eax
test eax, eax
jne 0x14004ff7b
mov rsi, qword [rsi]
test rsi, rsi
je 0x14005000a
mov rbx, qword [rsp + 0x30]
jmp 0x14004fc00
mov ebx, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14004ff7b
test ebx, ebx
jne 0x14004ff7b
mov rdi, qword [rsp + 0x40]
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, rdi
call fcn.14004f890
mov ebx, eax
test eax, eax
jne 0x14004ff7b
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rax
mov rcx, r12
call qword [0x140072048]
mov rcx, rdi
call qword [0x140072048]
mov rax, qword [rsp + 0x58]
mov qword [r13], rax
xor eax, eax
jmp 0x14004ff9b