Function at 0x140042b04
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c8]
sub rsp, 0x2c8
mov rax, qword [0x1400d4130]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
and qword [rsp + 0x30], 0
xor ebx, ebx
and qword [rdx], rbx
mov rsi, r9
mov rax, qword [rbp + 0x230]
mov rdi, r8
mov qword [rsp + 0x40], rax
mov r15, rdx
mov qword [rsp + 0x38], rbx
mov r13, rcx
test r8, r8
jne 0x140042b65
xor eax, eax
jmp 0x140042f12
mov edx, reloc.WLDAP32.dll_Ordinal_45
lea rcx, [rbp - 0x80]
lea r8d, [rdx - 0x15]
call fcn.14004e050
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, [rbp - 0x68]
mov rcx, r13
call fcn.14004922c
lea rax, [rbp - 0x80]
test rsi, rsi
lea r9, str.Content_Type:_multipart_form_data
mov qword [rsp + 0x20], rax
cmovne r9, rsi
lea r8, str._s__boundary_s_r_n
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140042944
test eax, eax
jne 0x140042f12
mov r12, qword [rsp + 0x30]
mov qword [rsp + 0x48], r12
test rbx, rbx
je 0x140042bea
lea r8, [0x14009c664]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042944
mov ebx, eax
test eax, eax
jne 0x140042f06
lea r9, [rbp - 0x80]
lea r8, str.___s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042944
mov ebx, eax
test eax, eax
jne 0x140042f06
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042944
mov ebx, eax
test eax, eax
jne 0x140042f06
movsxd r9, dword [rdi + 0x10]
lea rax, [rsp + 0x38]
mov r8, qword [rdi + 8]
lea edx, [rbx + 1]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400427cc
mov ebx, eax
test eax, eax
jne 0x140042f06
lea r8, [0x1400bd074]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042944
mov ebx, eax
test eax, eax
jne 0x140042f06
cmp qword [rdi + 0x48], 0
je 0x140042cc5
lea edx, [rax + 0x2d]
lea r8d, [rax + 0x18]
lea rcx, [rsp + 0x50]
call fcn.14004e050
lea r8d, [rbx + 0x11]
mov rcx, r13
lea rdx, [rsp + 0x68]
call fcn.14004922c
lea r9, [rsp + 0x50]
lea r8, str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042944
mov ebx, eax
test eax, eax
jne 0x140042f06
mov r14, rdi
cmp qword [rdi + 0x48], 0
je 0x140042d0c
lea r9, [rsp + 0x50]
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042944
mov ebx, eax
test eax, eax
jne 0x140042f06
lea r8, [rsp + 0x38]
mov rcx, r14
lea rdx, [rsp + 0x30]
call fcn.140042fb0
mov ebx, eax
test eax, eax
jmp 0x140042d35
test byte [rdi + 0x50], 0x51
je 0x140042d3b
cmp qword [rdi + 0x58], 0
jne 0x140042d1f
test byte [rdi + 0x50], 1
je 0x140042d33
lea r8, [rsp + 0x38]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.140042fb0
mov ebx, eax
test ebx, ebx
jne 0x140042f06
mov r9, qword [r14 + 0x38]
test r9, r9
je 0x140042d64
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042944
mov ebx, eax
test eax, eax
jne 0x140042f06
mov rsi, qword [r14 + 0x40]
jmp 0x140042d91
mov r9, qword [rsi]
lea r8, str._r_n_s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042944
mov ebx, eax
test eax, eax
jne 0x140042f06
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x140042d6a
test ebx, ebx
jne 0x140042f06
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042944
mov ebx, eax
test eax, eax
jne 0x140042f06
mov eax, dword [rdi + 0x50]
test al, 3
jne 0x140042e22
test al, 0x10
je 0x140042dd3
movsxd r9, dword [rdi + 0x30]
mov r8, qword [rdi + 0x28]
jmp 0x140042e02
test al, 0x40
je 0x140042df0
test al, al
jns 0x140042de1
mov r9, qword [rdi + 0x68]
jmp 0x140042de5
movsxd r9, dword [rdi + 0x20]
mov r8, qword [rdi + 0x60]
mov edx, 3
jmp 0x140042e07
test al, al
jns 0x140042dfa
mov r9, qword [rdi + 0x68]
jmp 0x140042dfe
movsxd r9, dword [rdi + 0x20]
mov r8, qword [rdi + 0x18]
mov edx, 2
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400427cc
mov ebx, eax
jmp 0x140042ef5
mov rdx, qword [r14 + 0x18]
lea rcx, [0x14009be60]
call fcn.140059840
test eax, eax
jne 0x140042e3f
xor ecx, ecx
call fcn.1400581e0
jmp 0x140042e4f
mov rcx, qword [r14 + 0x18]
lea rdx, [0x14009c1e4]
call fcn.1400617e4
mov rsi, rax
test rax, rax
je 0x140042ed4
xor ecx, ecx
call fcn.1400581e0
cmp rsi, rax
je 0x140042eb6
mov rcx, rsi
call fcn.1400582ec
mov r8, qword [r14 + 0x18]
xor r9d, r9d
lea edx, [r9 + 4]
jmp 0x140042e07
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x50]
lea rcx, [rsp + 0x30]
mov edx, 2
call fcn.1400427cc
mov ebx, eax
test eax, eax
jne 0x140042ef5
mov rcx, rsi
call fcn.14006726c
test eax, eax
jne 0x140042ef5
mov rcx, rsi
call fcn.140067298
test eax, eax
jne 0x140042ef5
mov r9, rsi
lea rcx, [rbp - 0x50]
mov r8d, 0x200
mov edx, 1
call fcn.140065b10
test rax, rax
jne 0x140042e78
jmp 0x140042ef5
test r13, r13
je 0x140042eec
mov r8, qword [r14 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, r13
call fcn.140020898
and qword [r15], 0
mov ebx, reloc.WLDAP32.dll_Ordinal_26
mov r14, qword [r14 + 0x48]
test r14, r14
je 0x140042f35
test ebx, ebx
je 0x140042cc8
lea rcx, [rsp + 0x48]
call fcn.140042a8c
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14004d240
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test ebx, ebx
jne 0x140042f06
cmp qword [rdi + 0x48], 0
je 0x140042f61
lea r9, [rsp + 0x50]
lea r8, str._r_n___s__
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042944
mov ebx, eax
test eax, eax
jne 0x140042f06
mov rdi, qword [rdi]
test rdi, rdi
je 0x140042f73
mov rbx, qword [rsp + 0x38]
jmp 0x140042bc5
test ebx, ebx
jne 0x140042f06
lea r9, [rbp - 0x80]
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042944
mov ebx, eax
test eax, eax
jne 0x140042f06
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
mov qword [r15], r12
jmp 0x140042b5e