Function at 0x180139380
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 [0x180272190]
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 r12, rcx
mov qword [rsp + 0x38], rax
mov ebx, eax
mov qword [rdx], rax
mov r15d, eax
test r8, r8
je 0x180139898
mov qword [rsp + 0x278], r14
call fcn.18013a240
mov qword [rsp + 0x40], rax
mov r14, rax
test rax, rax
jne 0x180139403
lea eax, [r15 + 0x1b]
jmp 0x180139890
test rdi, rdi
mov qword [rsp + 0x20], r14
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.180138e60
mov edi, eax
test eax, eax
je 0x18013943f
mov rcx, r14
call qword [fcn.18015d8ec]
mov eax, edi
jmp 0x180139890
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
nop
test rbx, rbx
je 0x180139475
lea r8, [0x1801cca18]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180138e60
mov ebx, eax
test eax, eax
jne 0x18013986d
mov r9, r14
lea r8, str.___s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180138e60
mov ebx, eax
test eax, eax
jne 0x18013986d
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180138e60
mov ebx, eax
test eax, eax
jne 0x18013986d
movsxd r9, dword [rsi + 0x10]
lea rax, [rsp + 0x38]
mov r8, qword [rsi + 8]
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.180138d20
mov ebx, eax
test eax, eax
jne 0x18013986d
lea r8, [0x1801cb954]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180138e60
mov ebx, eax
test eax, eax
jne 0x18013986d
cmp qword [rsi + 0x48], 0
je 0x180139549
test r15, r15
je 0x180139515
mov rcx, r15
call qword [fcn.18015d8ec]
call fcn.18013a240
mov r15, rax
test rax, rax
je 0x18013980d
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.180138e60
mov ebx, eax
test eax, eax
jne 0x18013986d
mov r14, rsi
nop dword [rax]
cmp qword [rsi + 0x48], 0
je 0x180139592
mov r9, r15
lea r8, str._r_n___s_r_nContent_Disposition:_attachment
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180138e60
mov ebx, eax
test eax, eax
jne 0x180139868
lea r8, [rsp + 0x38]
mov rcx, r14
lea rdx, [rsp + 0x30]
call fcn.18013a2e0
mov ebx, eax
test eax, eax
jmp 0x1801395ba
mov eax, dword [rsi + 0x50]
test al, 0x51
je 0x1801395c0
cmp qword [rsi + 0x58], 0
jne 0x1801395a4
test al, 1
je 0x1801395b8
lea r8, [rsp + 0x38]
mov rcx, rsi
lea rdx, [rsp + 0x30]
call fcn.18013a2e0
mov ebx, eax
test ebx, ebx
jne 0x180139868
mov r9, qword [r14 + 0x38]
test r9, r9
je 0x1801395e9
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180138e60
mov ebx, eax
test eax, eax
jne 0x180139868
mov rdi, qword [r14 + 0x40]
test rdi, rdi
je 0x18013962e
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.180138e60
mov ebx, eax
test eax, eax
jne 0x180139868
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x180139600
jmp 0x180139636
test ebx, ebx
jne 0x180139868
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180138e60
mov ebx, eax
test eax, eax
jne 0x180139868
mov eax, dword [rsi + 0x50]
test al, 3
jne 0x1801396c3
lea rcx, [rsp + 0x30]
test al, 0x10
je 0x180139687
movsxd r9, dword [rsi + 0x30]
lea rax, [rsp + 0x38]
mov r8, qword [rsi + 0x28]
lea edx, [rbx + 1]
mov qword [rsp + 0x20], rax
call fcn.180138d20
mov ebx, eax
jmp 0x1801397bc
movsxd r9, dword [rsi + 0x20]
test al, 0x40
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
je 0x1801396ae
mov r8, qword [rsi + 0x60]
mov edx, 2
call fcn.180138d20
mov ebx, eax
jmp 0x1801397bc
mov r8, qword [rsi + 0x18]
mov edx, 1
call fcn.180138d20
mov ebx, eax
jmp 0x1801397bc
mov rdx, qword [r14 + 0x18]
lea rcx, [0x1801e2cfc]
call sym.WebKeyAPICPPDLLx64.dll_curl_strequal
test eax, eax
je 0x1801396e0
xor ecx, ecx
call fcn.180169a60
jmp 0x1801396f0
mov rcx, qword [r14 + 0x18]
lea rdx, [0x1801de048]
call fcn.180169dd0
mov rdi, rax
test rax, rax
je 0x180139797
xor ecx, ecx
call fcn.180169a60
cmp rdi, rax
je 0x180139736
mov rcx, rdi
call fcn.180169e60
mov r8, qword [r14 + 0x18]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
lea edx, [r9 + 3]
call fcn.180138d20
mov ebx, eax
jmp 0x1801397bc
mov r9, rdi
lea rcx, [rsp + 0x60]
mov edx, 1
mov r8d, 0x200
call fcn.18016a428
test rax, rax
je 0x1801397bc
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x30]
mov edx, 1
call fcn.180138d20
mov ebx, eax
test eax, eax
jne 0x1801397bc
mov r9, rdi
lea edx, [rax + 1]
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call fcn.18016a428
test rax, rax
jne 0x180139753
jmp 0x1801397bc
test r12, r12
je 0x1801397af
mov r8, qword [r14 + 0x18]
lea rdx, str.couldnt_open_file___s_
mov rcx, r12
call fcn.180118930
mov qword [r13], 0
mov ebx, reloc.WLDAP32.dll_Ordinal_26
mov r14, qword [r14 + 0x48]
test ebx, ebx
jne 0x180139868
test r14, r14
jne 0x180139550
cmp qword [rsi + 0x48], r14
je 0x1801397f6
mov r9, r15
lea r8, str._r_n___s__
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180138e60
mov ebx, eax
test eax, eax
jne 0x180139868
mov rsi, qword [rsi]
mov r14, qword [rsp + 0x40]
test rsi, rsi
je 0x180139814
mov rbx, qword [rsp + 0x38]
jmp 0x180139450
mov ebx, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18013986d
test ebx, ebx
jne 0x18013986d
mov r9, r14
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180138e60
mov ebx, eax
test eax, eax
jne 0x18013986d
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
test r15, r15
je 0x180139852
mov rcx, r15
call qword [fcn.18015d8ec]
mov rcx, r14
call qword [fcn.18015d8ec]
mov rax, qword [rsp + 0x50]
mov qword [r13], rax
xor eax, eax
jmp 0x180139890
mov r14, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1801392f0
test r15, r15
je 0x180139885
mov rcx, r15
call qword [fcn.18015d8ec]
mov rcx, r14
call qword [fcn.18015d8ec]
mov eax, ebx
mov r14, qword [rsp + 0x278]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1801525d0
add rsp, 0x280
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret