Function at 0x180225df0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1803c1370]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rax, rcx
mov qword [rsp + 0x58], rcx
xor ecx, ecx
mov qword [rsp + 0x60], r9
mov rdi, r8
mov r15, rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x50], rcx
mov qword [rax], rcx
test rdx, rdx
jne 0x180225e48
xor eax, eax
jmp 0x180226719
mov qword [rsp + 0x2c8], r12
mov qword [rsp + 0x2c0], r13
call fcn.180225d10
mov r13, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180225e73
lea eax, [r13 + 0x1b]
jmp 0x180226709
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.180225830
mov edi, eax
test eax, eax
je 0x180225eaf
mov rcx, r13
call qword [0x1803d58f8]
mov eax, edi
jmp 0x180226709
mov qword [rsp + 0x2d8], rbx
mov qword [rsp + 0x2d0], rsi
mov qword [rsp + 0x2b8], r14
mov r14, qword [rsp + 0x30]
nop dword [rax]
cmp qword [rsp + 0x38], 0
je 0x180225ef9
lea r8, [0x18034fd28]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180225830
mov r12d, eax
test eax, eax
jne 0x1802266b2
lea r8, str.___s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, r13
call fcn.180225830
mov r12d, eax
test eax, eax
jne 0x1802266b2
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180225830
mov r12d, eax
test eax, eax
jne 0x1802266b2
movsxd rdi, dword [r15 + 0x10]
mov rsi, qword [r15 + 8]
lea ecx, [rax + 0x20]
call qword [0x1803d58f0]
mov rbx, rax
test rax, rax
je 0x1802266a5
xor r12d, r12d
mov qword [rax], r12
test rdi, rdi
jne 0x180225f78
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rcx, [rdi + 1]
call qword [0x1803d58f0]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x18022669c
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call sub.MSVCR100.dll_memcpy
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], rdi
mov byte [rdi + rax], r12b
mov rax, qword [rsp + 0x30]
mov dword [rbx + 8], r12d
mov qword [rsp + 0x30], rbx
test rax, rax
je 0x180225fbf
mov qword [rax], rbx
add qword [rsp + 0x38], rdi
lea r8, [0x180262eac]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180225830
mov r12d, eax
test eax, eax
jne 0x1802266b2
cmp qword [r15 + 0x48], 0
je 0x18022601a
call fcn.180225d10
lea r8, str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, rax
mov qword [rsp + 0x50], rax
call fcn.180225830
mov r12d, eax
test eax, eax
jne 0x1802266b2
mov rsi, r15
mov qword [rsp + 0x48], r15
cmp qword [r15 + 0x48], 0
je 0x18022609d
xor edi, edi
cmp qword [rsi + 0x58], rdi
jne 0x18022606d
mov rcx, qword [rsi + 0x18]
call qword [case.0x18020c598.1]
mov rbx, rax
test rax, rax
je 0x1802264ba
mov rcx, rax
call fcn.180225a40
mov rcx, rax
call qword [case.0x18020c598.1]
mov rcx, rbx
mov rdi, rax
call qword [0x1803d58f8]
test rdi, rdi
je 0x1802264ba
mov rax, qword [rsi + 0x58]
mov r9, qword [rsp + 0x50]
mov rdx, rdi
test rax, rax
lea r8, str._r_n___s_r_nContent_Disposition:_attachment__filename__s_
lea rcx, [rsp + 0x30]
cmovne rdx, rax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x38]
call fcn.180225830
jmp 0x180226102
test byte [r15 + 0x50], 0x51
je 0x18022611c
cmp qword [r15 + 0x58], 0
jne 0x1802260dc
mov rcx, qword [r15 + 0x18]
call qword [case.0x18020c598.1]
mov rbx, rax
test rax, rax
je 0x1802260dc
mov rcx, rax
call fcn.180225a40
mov rcx, rax
call qword [case.0x18020c598.1]
mov rcx, rbx
mov rdi, rax
call qword [0x1803d58f8]
jmp 0x1802260de
xor edi, edi
mov rax, qword [r15 + 0x58]
mov r9, rdi
lea r8, str.__filename__s_
test rax, rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
cmovne r9, rax
call fcn.180225830
mov r12d, eax
test rdi, rdi
je 0x180226113
mov rcx, rdi
call qword [0x1803d58f8]
test r12d, r12d
jne 0x180226509
mov r9, qword [rsi + 0x38]
test r9, r9
je 0x180226146
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180225830
mov r12d, eax
test eax, eax
jne 0x180226509
mov rdi, qword [rsi + 0x40]
test rdi, rdi
je 0x18022617f
nop
mov r9, qword [rdi]
lea r8, str._r_n_s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180225830
mov r12d, eax
test eax, eax
jne 0x180226666
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x180226150
jmp 0x180226188
test r12d, r12d
jne 0x180226666
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180225830
mov r12d, eax
test eax, eax
jne 0x180226509
mov eax, dword [r15 + 0x50]
test al, 1
jne 0x1802262b2
test al, 2
jne 0x1802262b2
lea ecx, [r12 + 0x20]
test al, 0x10
je 0x180226259
movsxd rdi, dword [r15 + 0x30]
mov rsi, qword [r15 + 0x28]
call qword [0x1803d58f0]
mov rbx, rax
test rax, rax
je 0x180226503
mov qword [rax], 0
test rdi, rdi
jne 0x180226202
or rcx, 0xffffffffffffffff
mov rdi, rsi
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rcx, [rdi + 1]
call qword [0x1803d58f0]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1802264fa
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call sub.MSVCR100.dll_memcpy
mov qword [rbx + 0x18], rdi
mov rax, qword [rbx + 0x10]
mov byte [rdi + rax], 0
mov rax, qword [rsp + 0x30]
mov dword [rbx + 8], 1
mov qword [rsp + 0x30], rbx
test rax, rax
je 0x18022624c
mov qword [rax], rbx
add qword [rsp + 0x38], rdi
xor r12d, r12d
jmp 0x180226454
test al, 0x40
je 0x1802262a5
movsxd rbx, dword [r15 + 0x20]
mov rdi, qword [r15 + 0x60]
call qword [0x1803d58f0]
test rax, rax
je 0x180226503
mov rcx, qword [rsp + 0x30]
mov qword [rax], 0
mov qword [rax + 0x10], rdi
mov dword [rax + 8], 2
mov qword [rsp + 0x30], rax
test rcx, rcx
je 0x180226298
mov qword [rcx], rax
add qword [rsp + 0x38], rbx
xor r12d, r12d
jmp 0x180226459
movsxd rdi, dword [r15 + 0x20]
mov rsi, qword [r15 + 0x18]
jmp 0x1802261d2
mov rdx, qword [rsi + 0x18]
lea rcx, [0x180270ee4]
call fcn.180222140
test eax, eax
je 0x1802262ce
call qword [sym.imp.MSVCR100.dll___iob_func]
jmp 0x1802262df
mov rcx, qword [rsi + 0x18]
lea rdx, [0x18030a8d4]
call qword [sym.imp.MSVCR100.dll_fopen]
mov r13, rax
test rax, rax
je 0x18022661a
call qword [sym.imp.MSVCR100.dll___iob_func]
cmp r13, rax
je 0x18022637a
mov rcx, r13
call qword [sym.imp.MSVCR100.dll_fclose]
mov rbx, qword [rsi + 0x18]
mov ecx, 0x20
call qword [0x1803d58f0]
mov rdi, rax
test rax, rax
je 0x180226548
mov qword [rax], 0
mov qword [rax + 0x10], rbx
mov dword [rax + 8], 3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rdi
test rax, rax
je 0x180226342
mov qword [rax], rdi
mov rdx, qword [rdi + 0x10]
lea rcx, [0x180270ee4]
call fcn.180222140
test eax, eax
jne 0x180226372
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x68]
call qword [sym.imp.MSVCR100.dll__stat64]
test eax, eax
jne 0x180226372
mov rax, qword [rbp - 0x80]
add qword [rsp + 0x38], rax
xor r12d, r12d
jmp 0x180226459
lea rcx, [rbp - 0x60]
mov r9, r13
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.MSVCR100.dll_fread]
mov rdi, rax
test rax, rax
je 0x180226459
mov rsi, qword [rsp + 0x30]
xor r12d, r12d
nop word [rax + rax]
mov ecx, 0x20
call qword [0x1803d58f0]
mov rbx, rax
test rax, rax
je 0x180226548
mov qword [rax], r12
test rdi, rdi
jne 0x1802263e2
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x60]
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rcx, [rdi + 1]
call qword [0x1803d58f0]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x18022653f
lea rdx, [rbp - 0x60]
mov r8, rdi
mov rcx, rax
call sub.MSVCR100.dll_memcpy
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], rdi
mov byte [rdi + rax], r12b
mov qword [rsp + 0x30], rbx
mov dword [rbx + 8], 1
test rsi, rsi
je 0x180226428
mov qword [rsi], rbx
add qword [rsp + 0x38], rdi
lea rcx, [rbp - 0x60]
mov r9, r13
mov edx, 1
mov r8d, 0x200
mov rsi, rbx
call qword [sym.imp.MSVCR100.dll_fread]
mov rdi, rax
test rax, rax
jne 0x1802263b0
mov rsi, qword [rsp + 0x48]
mov rsi, qword [rsi + 0x48]
mov qword [rsp + 0x48], rsi
test rsi, rsi
jne 0x180226022
cmp qword [r15 + 0x48], rsi
je 0x1802264a4
mov rbx, qword [rsp + 0x50]
lea r8, str._r_n___s__
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, rbx
call fcn.180225830
mov rcx, rbx
mov r12d, eax
call qword [0x1803d58f8]
test r12d, r12d
jne 0x1802266ad
mov r15, qword [r15]
test r15, r15
je 0x18022658a
mov r13, qword [rsp + 0x40]
jmp 0x180225ed0
test r14, r14
je 0x1802264e5
nop
cmp dword [r14 + 8], 1
mov rdi, qword [r14]
jg 0x1802264d4
mov rcx, qword [r14 + 0x10]
call qword [0x1803d58f8]
mov rcx, r14
call qword [0x1803d58f8]
mov r14, rdi
test rdi, rdi
jne 0x1802264c0
mov rcx, qword [rsp + 0x40]
call qword [0x1803d58f8]
mov eax, 0x1b
jmp 0x1802266f1
mov rcx, rbx
call qword [0x1803d58f8]
mov r12d, 0x1b
test r14, r14
je 0x180226535
nop
cmp dword [r14 + 8], 1
mov rdi, qword [r14]
jg 0x180226524
mov rcx, qword [r14 + 0x10]
call qword [0x1803d58f8]
mov rcx, r14
call qword [0x1803d58f8]
mov r14, rdi
test rdi, rdi
jne 0x180226510
mov rcx, qword [rsp + 0x40]
jmp 0x1802266e8
mov rcx, rbx
call qword [0x1803d58f8]
test r14, r14
je 0x180226575
nop dword [rax]
cmp dword [r14 + 8], 1
mov rdi, qword [r14]
jg 0x180226564
mov rcx, qword [r14 + 0x10]
call qword [0x1803d58f8]
mov rcx, r14
call qword [0x1803d58f8]
mov r14, rdi
test rdi, rdi
jne 0x180226550
mov rcx, qword [rsp + 0x40]
call qword [0x1803d58f8]
mov eax, 0x1b
jmp 0x1802266f1
test r12d, r12d
jne 0x1802266ad
mov rsi, qword [rsp + 0x40]
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, rsi
call fcn.180225830
mov ebx, eax
test eax, eax
je 0x1802265f5
test r14, r14
je 0x1802265e5
nop dword [rax]
cmp dword [r14 + 8], 1
mov rdi, qword [r14]
jg 0x1802265d4
mov rcx, qword [r14 + 0x10]
call qword [0x1803d58f8]
mov rcx, r14
call qword [0x1803d58f8]
mov r14, rdi
test rdi, rdi
jne 0x1802265c0
mov rcx, rsi
call qword [0x1803d58f8]
mov eax, ebx
jmp 0x1802266f1
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
mov rcx, rsi
call qword [0x1803d58f8]
mov rdx, qword [rsp + 0x58]
xor eax, eax
mov qword [rdx], r14
jmp 0x1802266f1
test r14, r14
je 0x180226645
nop
cmp dword [r14 + 8], 1
mov rdi, qword [r14]
jg 0x180226634
mov rcx, qword [r14 + 0x10]
call qword [0x1803d58f8]
mov rcx, r14
call qword [0x1803d58f8]
mov r14, rdi
test rdi, rdi
jne 0x180226620
mov rcx, qword [rsp + 0x40]
call qword [0x1803d58f8]
mov rdx, qword [rsp + 0x58]
mov eax, 0x1a
mov qword [rdx], 0
jmp 0x1802266f1
test r14, r14
je 0x180226695
nop dword [rax + rax]
cmp dword [r14 + 8], 1
mov rdi, qword [r14]
jg 0x180226684
mov rcx, qword [r14 + 0x10]
call qword [0x1803d58f8]
mov rcx, r14
call qword [0x1803d58f8]
mov r14, rdi
test rdi, rdi
jne 0x180226670
mov rcx, qword [rsp + 0x40]
jmp 0x1802266e8
mov rcx, rbx
call qword [0x1803d58f8]
mov r12d, 0x1b
jmp 0x1802266b2
mov r13, qword [rsp + 0x40]
test r14, r14
je 0x1802266e5
nop word [rax + rax]
cmp dword [r14 + 8], 1
mov rdi, qword [r14]
jg 0x1802266d4
mov rcx, qword [r14 + 0x10]
call qword [0x1803d58f8]
mov rcx, r14
call qword [0x1803d58f8]
mov r14, rdi
test rdi, rdi
jne 0x1802266c0
mov rcx, r13
call qword [0x1803d58f8]
mov eax, r12d
mov rbx, qword [rsp + 0x2d8]
mov rsi, qword [rsp + 0x2d0]
mov r14, qword [rsp + 0x2b8]
mov r12, qword [rsp + 0x2c8]
mov r13, qword [rsp + 0x2c0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180227610
add rsp, 0x2e0
pop r15
pop rdi
pop rbp
ret