Function at 0x1400383b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x1400530c8]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rax, qword [rbp + 0x230]
mov rdi, r9
mov qword [rsp + 0x70], rax
mov r13, r8
xor eax, eax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x60], rcx
mov rsi, rcx
mov qword [rsp + 0x30], rax
mov r15d, eax
mov qword [rsp + 0x38], rax
mov r12d, eax
mov qword [rsp + 0x50], rax
mov qword [rdx], rax
test r8, r8
je 0x140038c3b
mov qword [rsp + 0x2d0], rbx
call fcn.14000ad80
mov rcx, rsi
mov ebx, eax
call fcn.14000ad80
mov edx, eax
lea rcx, str._________________________08x_08x
mov r8d, ebx
call fcn.14001e5d0
mov qword [rsp + 0x48], rax
mov rsi, rax
test rax, rax
jne 0x140038459
lea eax, [rsi + 0x1b]
jmp 0x140038c33
test rdi, rdi
mov qword [rsp + 0x20], rax
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.140038050
mov ebx, eax
test eax, eax
je 0x140038495
mov rcx, rsi
call qword [case.0x14002175b.0]
mov eax, ebx
jmp 0x140038c33
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x2c8], r14
test r15, r15
je 0x1400384cc
lea r8, [0x14004242c]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140038050
mov edi, eax
test eax, eax
jne 0x140038be1
mov r9, rsi
lea r8, str.___s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140038050
mov edi, eax
test eax, eax
jne 0x140038be1
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140038050
mov edi, eax
test eax, eax
jne 0x140038be1
movsxd rbx, dword [r13 + 0x10]
mov rsi, qword [r13 + 8]
test rbx, rbx
js 0x140038bd7
mov r14, qword [rsp + 0x38]
test r14, r14
js 0x140038bd7
lea ecx, [rax + 0x20]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x140038bd0
xor r15d, r15d
mov qword [rax], r15
test rbx, rbx
jne 0x14003855b
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], r15b
jne 0x140038552
lea rcx, [rbx + 1]
call qword [section..data]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140038bc7
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], r15b
mov rax, qword [rsp + 0x30]
mov dword [rdi + 8], r15d
mov qword [rsp + 0x30], rdi
test rax, rax
je 0x1400385a2
mov qword [rax], rdi
add r14, rbx
lea r8, [0x14004bb00]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x30]
call fcn.140038050
mov edi, eax
test eax, eax
jne 0x140038bdc
cmp qword [r13 + 0x48], r15
je 0x140038637
mov rcx, r12
call qword [case.0x14002175b.0]
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
call fcn.14000ad80
mov rcx, rsi
mov ebx, eax
call fcn.14000ad80
mov edx, eax
lea rcx, str._________________________08x_08x
mov r8d, ebx
call fcn.14001e5d0
mov qword [rsp + 0x50], rax
mov r12, rax
test rax, rax
je 0x140038bd0
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.140038050
mov edi, eax
test eax, eax
jne 0x140038bdc
jmp 0x14003863c
mov rsi, qword [rsp + 0x60]
mov r15, r13
mov qword [rsp + 0x58], r13
cmp qword [r13 + 0x48], 0
je 0x140038686
mov r9, r12
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140038050
mov edi, eax
test eax, eax
jne 0x140038bdc
lea r8, [rsp + 0x38]
mov rcx, r15
lea rdx, [rsp + 0x30]
call fcn.140038c60
mov edi, eax
test eax, eax
jmp 0x1400386af
mov eax, dword [r13 + 0x50]
test al, 0x51
je 0x1400386b5
cmp qword [r13 + 0x58], 0
jne 0x140038699
test al, 1
je 0x1400386ad
lea r8, [rsp + 0x38]
mov rcx, r13
lea rdx, [rsp + 0x30]
call fcn.140038c60
mov edi, eax
test edi, edi
jne 0x140038bdc
mov r9, qword [r15 + 0x38]
test r9, r9
je 0x1400386de
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140038050
mov edi, eax
test eax, eax
jne 0x140038bdc
mov rbx, qword [r15 + 0x40]
test rbx, rbx
je 0x14003871e
nop word [rax + rax]
mov r9, qword [rbx]
lea r8, str._r_n_s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140038050
mov edi, eax
test eax, eax
jne 0x140038bdc
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400386f0
jmp 0x140038726
test edi, edi
jne 0x140038bdc
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140038050
mov edi, eax
test eax, eax
jne 0x140038bdc
mov eax, dword [r13 + 0x50]
test al, 3
jne 0x140038915
test al, 0x10
je 0x14003883f
movsxd rbx, dword [r13 + 0x30]
mov rsi, qword [r13 + 0x28]
mov r15, qword [rsp + 0x38]
test rbx, rbx
js 0x140038a12
test r15, r15
js 0x140038a12
lea ecx, [rdi + 0x20]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400387c5
mov qword [rax], 0
test rbx, rbx
jne 0x1400387a9
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400387a0
lea rcx, [rbx + 1]
call qword [section..data]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x140038800
mov rcx, rdi
call qword [case.0x14002175b.0]
mov edi, reloc.WLDAP32.dll_Ordinal_27
mov r14, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140038b25
test edi, edi
jne 0x140038bdc
mov rsi, qword [rsp + 0x60]
mov r15, rax
mov r12, qword [rsp + 0x50]
jmp 0x140038644
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 0x140038833
mov qword [rax], rdi
add r15, rbx
mov qword [rsp + 0x38], r15
xor edi, edi
jmp 0x1400387ca
test al, 0x40
je 0x1400388b3
test al, al
jns 0x14003884d
mov rbx, qword [r13 + 0x68]
jmp 0x140038851
movsxd rbx, dword [r13 + 0x20]
mov rdi, qword [r13 + 0x60]
mov r15, qword [rsp + 0x38]
test rbx, rbx
js 0x140038a12
test r15, r15
js 0x140038a12
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [section..data]
test rax, rax
je 0x1400387c5
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 0x1400388a4
mov qword [rcx], rax
add r15, rbx
mov qword [rsp + 0x38], r15
xor edi, edi
jmp 0x1400387ca
test al, al
jns 0x1400388bd
mov rbx, qword [r13 + 0x68]
jmp 0x1400388c1
movsxd rbx, dword [r13 + 0x20]
mov rsi, qword [r13 + 0x18]
mov r15, qword [rsp + 0x38]
test rbx, rbx
js 0x140038a12
test r15, r15
js 0x140038a12
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400387c5
mov qword [rax], 0
test rbx, rbx
jne 0x1400387a9
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140038907
jmp 0x1400387a9
mov rdx, qword [r15 + 0x18]
lea rcx, [0x140041c50]
call fcn.14001d7e0
test eax, eax
je 0x140038933
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x140038944
mov rcx, qword [r15 + 0x18]
lea rdx, [0x140041fdc]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r12, rax
test rax, rax
je 0x140038af2
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp r12, rax
je 0x140038a1c
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [r15 + 0x18]
mov r15, qword [rsp + 0x38]
test r15, r15
js 0x140038a12
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [section..data]
mov rbx, rax
test rax, rax
je 0x1400387c5
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 0x1400389b7
mov qword [rax], rbx
mov rdx, qword [rbx + 0x10]
lea rcx, [0x140041c50]
call fcn.14001d7e0
test eax, eax
jne 0x14003883b
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64]
test eax, eax
jne 0x140038a09
movzx eax, word [rsp + 0x7e]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x140038a09
add r15, qword [rbp - 0x70]
mov qword [rsp + 0x38], r15
xor edi, edi
jmp 0x1400387ca
mov rcx, rbx
call qword [case.0x14002175b.0]
mov edi, Ordinal_46
jmp 0x1400387ca
mov r9, r12
lea rcx, [rbp - 0x50]
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r15, qword [rsp + 0x38]
mov r14, rax
test rax, rax
je 0x1400387ca
mov rsi, qword [rsp + 0x30]
xor edi, edi
nop dword [rax]
test r14, r14
js 0x140038a12
test r15, r15
js 0x140038a12
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [section..data]
mov rbx, rax
test rax, rax
je 0x1400387c5
lea rcx, [r14 + 1]
mov qword [rax], rdi
call qword [section..data]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140038aea
mov r8, r14
lea rdx, [rbp - 0x50]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], r14
mov qword [rsp + 0x30], rbx
mov byte [r14 + rax], dil
mov dword [rbx + 8], 1
test rsi, rsi
je 0x140038ab6
mov qword [rsi], rbx
add r15, r14
lea rcx, [rbp - 0x50]
mov r9, r12
mov qword [rsp + 0x38], r15
mov edx, 1
mov r8d, 0x200
mov rsi, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r14, rax
test rax, rax
jne 0x140038a50
jmp 0x1400387ca
mov rcx, rbx
jmp 0x1400387bf
test rsi, rsi
je 0x140038b0a
mov r8, qword [r15 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, rsi
call fcn.140012e00
mov r14, qword [rsp + 0x40]
mov edi, reloc.WLDAP32.dll_Ordinal_26
mov r15, qword [rsp + 0x38]
mov qword [r14], 0
jmp 0x1400387cf
test edi, edi
jne 0x140038bdc
cmp qword [r13 + 0x48], 0
mov r12, qword [rsp + 0x50]
je 0x140038b61
mov r9, r12
lea r8, str._r_n___s__
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140038050
mov edi, eax
test eax, eax
jne 0x140038bdc
mov r15, qword [rsp + 0x38]
mov r13, qword [r13]
test r13, r13
je 0x140038b74
mov rsi, qword [rsp + 0x48]
jmp 0x1400384a7
test edi, edi
jne 0x140038bdc
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.140038050
mov edi, eax
test eax, eax
jne 0x140038be1
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
mov rcx, r12
call qword [case.0x14002175b.0]
mov rcx, rsi
call qword [case.0x14002175b.0]
mov rax, qword [rsp + 0x68]
mov qword [r14], rax
xor eax, eax
jmp 0x140038c2b
mov rcx, rdi
call qword [case.0x14002175b.0]
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140038bdc
mov edi, Ordinal_46
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x68]
test r14, r14
je 0x140038c15
nop dword [rax + rax]
cmp dword [r14 + 8], 1
mov rbx, qword [r14]
jg 0x140038c04
mov rcx, qword [r14 + 0x10]
call qword [case.0x14002175b.0]
mov rcx, r14
call qword [case.0x14002175b.0]
mov r14, rbx
test rbx, rbx
jne 0x140038bf0
mov rcx, qword [rsp + 0x50]
call qword [case.0x14002175b.0]
mov rcx, rsi
call qword [case.0x14002175b.0]
mov eax, edi
mov r14, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2d0]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14003f740
add rsp, 0x2d8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret