Function at 0x140195800
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 [0x1404975c0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x1e0]
mov rdi, r9
mov qword [rsp + 0x48], rax
mov rsi, r8
xor eax, eax
mov r13, rdx
mov qword [rsp + 0x30], rax
mov r15, rcx
mov qword [rsp + 0x38], rax
mov ebx, eax
mov qword [rdx], rax
mov r12d, eax
test r8, r8
je 0x140195c72
call fcn.140195d40
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140195879
lea eax, [r12 + 0x1b]
jmp 0x140195c72
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.140195570
mov edi, eax
test eax, eax
je 0x1401958b7
mov rcx, qword [rsp + 0x40]
call qword [fcn.14030eee8]
mov eax, edi
jmp 0x140195c72
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x278], r14
nop
test rbx, rbx
je 0x1401958f5
lea r8, [0x140357514]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140195570
mov ebx, eax
test eax, eax
jne 0x140195c4a
mov r9, qword [rsp + 0x40]
lea r8, str.___s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140195570
mov ebx, eax
test eax, eax
jne 0x140195c4a
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140195570
mov ebx, eax
test eax, eax
jne 0x140195c4a
movsxd r9, dword [rsi + 0x10]
lea rax, [rsp + 0x38]
mov r8, qword [rsi + 8]
lea edx, [rbx + 1]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1401953d0
mov ebx, eax
test eax, eax
jne 0x140195c4a
lea r8, [0x14035f3c0]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140195570
mov ebx, eax
test eax, eax
jne 0x140195c4a
cmp qword [rsi + 0x48], 0
je 0x1401959ca
mov rcx, r12
call qword [fcn.14030eee8]
mov rcx, r15
call fcn.140195d40
mov r12, rax
test rax, rax
je 0x140195ccf
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.140195570
mov ebx, eax
test eax, eax
jne 0x140195c4a
mov r14, rsi
nop dword [rax]
cmp qword [rsi + 0x48], 0
je 0x140195a12
mov r9, r12
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140195570
mov ebx, eax
test eax, eax
jne 0x140195c4a
lea r8, [rsp + 0x38]
mov rcx, r14
lea rdx, [rsp + 0x30]
call fcn.140195d80
mov ebx, eax
test eax, eax
jmp 0x140195a3a
mov eax, dword [rsi + 0x50]
test al, 0x51
je 0x140195a40
cmp qword [rsi + 0x58], 0
jne 0x140195a24
test al, 1
je 0x140195a38
lea r8, [rsp + 0x38]
mov rcx, rsi
lea rdx, [rsp + 0x30]
call fcn.140195d80
mov ebx, eax
test ebx, ebx
jne 0x140195c4a
mov r9, qword [r14 + 0x38]
test r9, r9
je 0x140195a69
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140195570
mov ebx, eax
test eax, eax
jne 0x140195c4a
mov rdi, qword [r14 + 0x40]
test rdi, rdi
je 0x140195aae
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rdi]
lea r8, str._r_n_s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140195570
mov ebx, eax
test eax, eax
jne 0x140195c4a
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140195a80
jmp 0x140195ab6
test ebx, ebx
jne 0x140195c4a
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140195570
mov ebx, eax
test eax, eax
jne 0x140195c4a
mov eax, dword [rsi + 0x50]
test al, 3
jne 0x140195b53
test al, 0x10
je 0x140195aeb
movsxd r9, dword [rsi + 0x30]
mov r8, qword [rsi + 0x28]
jmp 0x140195b33
test al, 0x40
je 0x140195b21
test al, al
jns 0x140195af9
mov r9, qword [rsi + 0x68]
jmp 0x140195afd
movsxd r9, dword [rsi + 0x20]
mov r8, qword [rsi + 0x60]
lea rax, [rsp + 0x38]
mov edx, 3
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.1401953d0
mov ebx, eax
jmp 0x140195c39
test al, al
jns 0x140195b2b
mov r9, qword [rsi + 0x68]
jmp 0x140195b2f
movsxd r9, dword [rsi + 0x20]
mov r8, qword [rsi + 0x18]
mov edx, 2
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1401953d0
mov ebx, eax
jmp 0x140195c39
mov rcx, qword [r14 + 0x18]
movzx eax, byte [0x140356ce0]
cmp al, byte [rcx]
jne 0x140195b77
movzx eax, byte [0x140356ce1]
cmp al, byte [rcx + 1]
jne 0x140195b77
xor ecx, ecx
call fcn.14030e744
jmp 0x140195b83
lea rdx, [0x14035708c]
call fcn.14031b210
mov rdi, rax
test rax, rax
je 0x140195c14
xor ecx, ecx
call fcn.14030e744
cmp rdi, rax
je 0x140195bb0
mov rcx, rdi
call fcn.14030e42c
mov r8, qword [r14 + 0x18]
xor r9d, r9d
lea edx, [r9 + 4]
jmp 0x140195b38
mov r9, rdi
lea rcx, [rsp + 0x60]
mov edx, 1
mov r8d, 0x200
call fcn.14030f30c
test rax, rax
je 0x140195c39
nop dword [rax]
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x30]
mov edx, 2
call fcn.1401953d0
mov ebx, eax
test eax, eax
jne 0x140195c39
mov r9, rdi
lea edx, [rax + 1]
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call fcn.14030f30c
test rax, rax
jne 0x140195bd0
jmp 0x140195c39
test r15, r15
je 0x140195c2c
mov r8, qword [r14 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, r15
call fcn.140170820
mov qword [r13], 0
mov ebx, reloc.WLDAP32.dll_Ordinal_26
mov r14, qword [r14 + 0x48]
test r14, r14
je 0x140195c93
test ebx, ebx
je 0x1401959d0
lea rcx, [rsp + 0x58]
call fcn.140195770
mov rcx, r12
call qword [fcn.14030eee8]
mov rcx, qword [rsp + 0x40]
call qword [fcn.14030eee8]
mov eax, ebx
mov r14, qword [rsp + 0x278]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1402fe270
add rsp, 0x280
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test ebx, ebx
jne 0x140195c4a
cmp qword [rsi + 0x48], 0
je 0x140195cbd
mov r9, r12
lea r8, str._r_n___s__
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140195570
mov ebx, eax
test eax, eax
jne 0x140195c4a
mov rsi, qword [rsi]
test rsi, rsi
je 0x140195cd9
mov rbx, qword [rsp + 0x38]
jmp 0x1401958d0
mov ebx, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140195c4a
test ebx, ebx
jne 0x140195c4a
mov rdi, qword [rsp + 0x40]
lea r8, str._r_n___s___r_n
mov r9, rdi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140195570
mov ebx, eax
test eax, eax
jne 0x140195c4a
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
mov rcx, r12
call qword [fcn.14030eee8]
mov rcx, rdi
call qword [fcn.14030eee8]
mov rax, qword [rsp + 0x50]
mov qword [r13], rax
xor eax, eax
jmp 0x140195c6a