Function at 0x18006e800
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x180093030]
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 r15, rdx
mov qword [rsp + 0x38], rax
mov ebx, eax
mov qword [rsp + 0x30], rax
mov r14d, eax
mov qword [rdx], rax
mov r13, rcx
test r8, r8
je 0x18006ec93
call fcn.18006e7c0
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18006e878
lea eax, [r14 + 0x1b]
jmp 0x18006ec93
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.18006e2f0
mov edi, eax
test eax, eax
je 0x18006e8b6
mov rcx, qword [rsp + 0x40]
call qword [fcn.18002d284]
mov eax, edi
jmp 0x18006ec93
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x278], r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
nop dword [rax]
test rbx, rbx
je 0x18006e8f5
lea r8, [0x18007d3c8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18006e2f0
mov edi, eax
test eax, eax
jne 0x18006ec6b
mov r9, qword [rsp + 0x40]
lea r8, str.___s_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18006e2f0
mov edi, eax
test eax, eax
jne 0x18006ec6b
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18006e2f0
mov edi, eax
test eax, eax
jne 0x18006ec6b
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.18006e190
mov edi, eax
test eax, eax
jne 0x18006ec6b
lea r8, [0x1800850c0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18006e2f0
mov edi, eax
test eax, eax
jne 0x18006ec6b
cmp qword [rsi + 0x48], 0
je 0x18006e9c9
mov rcx, r14
call qword [fcn.18002d284]
mov rcx, r13
call fcn.18006e7c0
mov r14, rax
test rax, rax
je 0x18006ecf0
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.18006e2f0
mov edi, eax
test eax, eax
jne 0x18006ec6b
mov r12, rsi
nop dword [rax]
cmp qword [rsi + 0x48], 0
je 0x18006ea12
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, r14
call fcn.18006e2f0
mov edi, eax
test eax, eax
jne 0x18006ec6b
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.18006e4a0
mov edi, eax
test eax, eax
jmp 0x18006ea3a
mov eax, dword [rsi + 0x50]
test al, 0x51
je 0x18006ea40
cmp qword [rsi + 0x58], 0
jne 0x18006ea24
test al, 1
je 0x18006ea38
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.18006e4a0
mov edi, eax
test edi, edi
jne 0x18006ec6b
mov r9, qword [r12 + 0x38]
test r9, r9
je 0x18006ea6a
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18006e2f0
mov edi, eax
test eax, eax
jne 0x18006ec6b
mov rbx, qword [r12 + 0x40]
test rbx, rbx
je 0x18006eaae
nop word [rax + rax]
mov r9, qword [rbx]
lea r8, str._r_n_s
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18006e2f0
mov edi, eax
test eax, eax
jne 0x18006ec6b
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x18006ea80
jmp 0x18006eab6
test edi, edi
jne 0x18006ec6b
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18006e2f0
mov edi, eax
test eax, eax
jne 0x18006ec6b
mov eax, dword [rsi + 0x50]
test al, 1
jne 0x18006eb57
test al, 2
jne 0x18006eb57
test al, 0x10
je 0x18006eaef
movsxd r9, dword [rsi + 0x30]
mov r8, qword [rsi + 0x28]
jmp 0x18006eb37
test al, 0x40
je 0x18006eb25
test al, al
jns 0x18006eafd
mov r9, qword [rsi + 0x68]
jmp 0x18006eb01
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.18006e190
mov edi, eax
jmp 0x18006ec59
test al, al
jns 0x18006eb2f
mov r9, qword [rsi + 0x68]
jmp 0x18006eb33
movsxd r9, dword [rsi + 0x20]
mov r8, qword [rsi + 0x18]
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov edx, 1
mov qword [rsp + 0x20], rax
call fcn.18006e190
mov edi, eax
jmp 0x18006ec59
mov rdx, qword [r12 + 0x18]
lea rcx, [0x18007c5f4]
call fcn.180068aa0
test eax, eax
je 0x18006eb73
call fcn.180034230
jmp 0x18006eb84
mov rcx, qword [r12 + 0x18]
lea rdx, [0x18008aeb8]
call fcn.18002e360
mov rbx, rax
test rax, rax
je 0x18006ec34
call fcn.180034230
cmp rbx, rax
je 0x18006ebc9
mov rcx, rbx
call fcn.18002ebec
mov r8, qword [r12 + 0x18]
xor r9d, r9d
lea r11, [rsp + 0x30]
lea edx, [r9 + 3]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], r11
call fcn.18006e190
mov edi, eax
jmp 0x18006ec59
lea rcx, [rsp + 0x60]
mov r9, rbx
mov edx, 1
mov r8d, 0x200
call fcn.18002e64c
test rax, rax
je 0x18006ec59
nop word [rax + rax]
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.18006e190
mov edi, eax
test eax, eax
jne 0x18006ec59
lea edx, [rax + 1]
lea rcx, [rsp + 0x60]
mov r9, rbx
mov r8d, 0x200
call fcn.18002e64c
test rax, rax
jne 0x18006ebf0
jmp 0x18006ec59
test r13, r13
je 0x18006ec4d
mov r8, qword [r12 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, r13
call fcn.180046e10
mov qword [r15], 0
mov edi, reloc.WLDAP32.dll_Ordinal_26
mov r12, qword [r12 + 0x48]
test r12, r12
je 0x18006ecb4
test edi, edi
je 0x18006e9d0
lea rcx, [rsp + 0x50]
call fcn.18006e370
mov rcx, r14
call qword [fcn.18002d284]
mov rcx, qword [rsp + 0x40]
call qword [fcn.18002d284]
mov eax, edi
mov r12, qword [rsp + 0x278]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.18002cf50
add rsp, 0x280
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
test edi, edi
jne 0x18006ec6b
cmp qword [rsi + 0x48], 0
je 0x18006ecde
lea r8, str._r_n___s__
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, r14
call fcn.18006e2f0
mov edi, eax
test eax, eax
jne 0x18006ec6b
mov rsi, qword [rsi]
test rsi, rsi
je 0x18006ecfa
mov rbx, qword [rsp + 0x30]
jmp 0x18006e8d0
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18006ec6b
test edi, edi
jne 0x18006ec6b
mov rbx, qword [rsp + 0x40]
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, rbx
call fcn.18006e2f0
mov edi, eax
test eax, eax
jne 0x18006ec6b
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rax
mov rcx, r14
call qword [fcn.18002d284]
mov rcx, rbx
call qword [fcn.18002d284]
mov r11, qword [rsp + 0x58]
xor eax, eax
mov qword [r15], r11
jmp 0x18006ec8b