Function at 0x18008be30
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x288
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rax, qword [rsp + 0x2e0]
mov rdi, r9
mov rsi, r8
mov qword [rsp + 0x40], rax
xor eax, eax
mov r14, rdx
mov qword [rsp + 0x30], rax
mov rbx, rax
mov qword [rsp + 0x38], rax
mov r13, rax
mov qword [rdx], rax
mov r12, rcx
test r8, r8
je 0x18008c070
mov qword [rsp + 0x278], r15
call fcn.18008bdf0
mov r15, rax
test rax, rax
jne 0x18008bea8
lea eax, [r13 + 0x1b]
jmp 0x18008c068
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 + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.18008b8b0
mov edi, eax
test eax, eax
je 0x18008bee4
mov rcx, r15
call qword [fcn.180057358]
mov eax, edi
jmp 0x18008c068
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x280], rbp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
nop dword [rax + rax]
test rbx, rbx
je 0x18008bf25
lea r8, [0x1800d83d0]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.18008b8b0
mov edi, eax
test eax, eax
jne 0x18008c042
lea r8, str.___s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, r15
call fcn.18008b8b0
mov edi, eax
test eax, eax
jne 0x18008c042
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.18008b8b0
mov edi, eax
test eax, eax
jne 0x18008c042
movsxd r9, dword [rsi + 0x10]
mov r8, qword [rsi + 8]
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.18008b760
mov edi, eax
test eax, eax
jne 0x18008c042
lea r8, [0x1800dbc48]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.18008b8b0
mov edi, eax
test eax, eax
jne 0x18008c042
cmp qword [rsi + 0x48], 0
je 0x18008bff3
mov rcx, r13
call qword [fcn.180057358]
mov rcx, r12
call fcn.18008bdf0
mov r13, rax
test rax, rax
je 0x18008c324
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.18008b8b0
mov edi, eax
test eax, eax
jne 0x18008c042
mov rbp, rsi
nop word [rax + rax]
cmp qword [rsi + 0x48], 0
je 0x18008c091
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, r13
call fcn.18008b8b0
mov edi, eax
test eax, eax
jne 0x18008c042
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.18008bad0
mov edi, eax
test eax, eax
je 0x18008c0bb
lea rcx, [rsp + 0x48]
call fcn.18008b930
mov rcx, r13
call qword [fcn.180057358]
mov rcx, r15
call qword [fcn.180057358]
mov eax, edi
mov rbp, qword [rsp + 0x280]
mov r15, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800564b0
add rsp, 0x288
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov eax, dword [rsi + 0x50]
test al, 0x51
je 0x18008c0bb
cmp qword [rsi + 0x58], 0
jne 0x18008c0a3
test al, 1
je 0x18008c0b7
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.18008bad0
mov edi, eax
test edi, edi
jne 0x18008c042
mov r9, qword [rbp + 0x38]
test r9, r9
je 0x18008c0e4
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.18008b8b0
mov edi, eax
test eax, eax
jne 0x18008c042
mov rbx, qword [rbp + 0x40]
test rbx, rbx
je 0x18008c11e
nop dword [rax]
mov r9, qword [rbx]
lea r8, str._r_n_s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.18008b8b0
mov edi, eax
test eax, eax
jne 0x18008c042
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x18008c0f0
jmp 0x18008c126
test edi, edi
jne 0x18008c042
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.18008b8b0
mov edi, eax
test eax, eax
jne 0x18008c042
mov eax, dword [rsi + 0x50]
test al, 1
jne 0x18008c1d3
test al, 2
jne 0x18008c1d3
test al, 0x10
je 0x18008c17f
movsxd r9, dword [rsi + 0x30]
mov r8, qword [rsi + 0x28]
lea rax, [rsp + 0x38]
lea edx, [rdi + 1]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.18008b760
mov edi, eax
jmp 0x18008c2ca
test al, 0x40
je 0x18008c1ab
movsxd r9, dword [rsi + 0x20]
mov r8, qword [rsi + 0x60]
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 2
mov qword [rsp + 0x20], rax
call fcn.18008b760
mov edi, eax
jmp 0x18008c2ca
movsxd r9, dword [rsi + 0x20]
mov r8, qword [rsi + 0x18]
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 1
mov qword [rsp + 0x20], rax
call fcn.18008b760
mov edi, eax
jmp 0x18008c2ca
mov rdx, qword [rbp + 0x18]
lea rcx, [0x1800d5988]
call fcn.18009c460
test eax, eax
je 0x18008c1f1
call fcn.1800661d0
mov rbx, rax
jmp 0x18008c204
mov rcx, qword [rbp + 0x18]
lea rdx, [0x1800dbb60]
call fcn.1800c2220
mov rbx, rax
test rbx, rbx
je 0x18008c2a6
call fcn.1800661d0
cmp rbx, rax
je 0x18008c245
mov rcx, rbx
call fcn.1800583b0
mov r8, qword [rbp + 0x18]
xor r9d, r9d
lea r11, [rsp + 0x38]
lea edx, [r9 + 3]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], r11
call fcn.18008b760
mov edi, eax
jmp 0x18008c2ca
lea rcx, [rsp + 0x60]
mov r9, rbx
mov edx, 1
mov r8d, 0x200
call fcn.1800c20c8
test rax, rax
je 0x18008c2ca
lea rcx, [rsp + 0x38]
lea r8, [rsp + 0x60]
mov r9, rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
mov edx, 1
call fcn.18008b760
mov edi, eax
test eax, eax
jne 0x18008c2ca
lea edx, [rax + 1]
lea rcx, [rsp + 0x60]
mov r9, rbx
mov r8d, 0x200
call fcn.1800c20c8
test rax, rax
jne 0x18008c262
jmp 0x18008c2ca
test r12, r12
je 0x18008c2be
mov r8, qword [rbp + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, r12
call fcn.180097330
mov qword [r14], 0
mov edi, reloc.WLDAP32.dll_Ordinal_26
mov rbp, qword [rbp + 0x48]
test rbp, rbp
je 0x18008c2e0
test edi, edi
je 0x18008c000
jmp 0x18008c042
test edi, edi
jne 0x18008c042
cmp qword [rsi + 0x48], 0
je 0x18008c312
lea r8, str._r_n___s__
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, r13
call fcn.18008b8b0
mov edi, eax
test eax, eax
jne 0x18008c042
mov rsi, qword [rsi]
test rsi, rsi
je 0x18008c32e
mov rbx, qword [rsp + 0x38]
jmp 0x18008bf00
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18008c042
test edi, edi
jne 0x18008c042
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, r15
call fcn.18008b8b0
mov edi, eax
test eax, eax
jne 0x18008c042
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
mov rcx, r13
call qword [fcn.180057358]
mov rcx, r15
call qword [fcn.180057358]
mov r11, qword [rsp + 0x50]
xor eax, eax
mov qword [r14], r11
jmp 0x18008c060