Function at 0x14004a200
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, rdx
mov qword [rsp + 0x58], rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
xor edi, edi
mov esi, edi
mov dword [rbp - 0x79], edi
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.1400220b0
nop
mov dword [rsp + 0x48], 3
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x29], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x41], dil
mov qword [rsp + 0x40], rdi
lea r12, [r14 + 0xa0]
mov qword [rbp - 0x79], r12
mov rcx, r12
call fcn.1400b28a0
lea rcx, [rsp + 0x40]
call fcn.1400b28a0
lea rdx, [rbp - 0x61]
mov rcx, rbx
call fcn.140023180
nop
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004a2cb
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x14004a2ce
mov rax, rdi
mov eax, dword [rax + 0x40]
test eax, eax
je 0x14004a341
cmp eax, 6
jl 0x14004a341
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004a30c
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
mov rcx, rax
jmp 0x14004a30f
mov rcx, rdi
lea rax, [rbp - 0x61]
cmp qword [rbp - 0x49], 0xf
cmova rax, qword [rbp - 0x61]
lea r9, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova r9, qword [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea r8, str.ProcessUserEvent:_File:__s_nData:__s
mov edx, 6
call fcn.14001ef20
mov r13, 0xffffffffffffffff
cmp qword [rbp - 0x51], 0
jne 0x14004a40e
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14004a360
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14004a562
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004a39e
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x14004a3a1
mov rax, rdi
mov eax, dword [rax + 0x40]
test eax, eax
je 0x14004a562
cmp eax, 2
jl 0x14004a562
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004a3e4
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x14004a3e7
mov rax, rdi
lea r9, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova r9, qword [rbp - 0x21]
lea r8, str.ProcessUserEvent:_Empty_file__s
mov edx, 2
mov rcx, rax
call fcn.14001ef20
jmp 0x14004a562
lea rbx, [rbp - 0x61]
cmp qword [rbp - 0x49], 0xf
cmova rbx, qword [rbp - 0x61]
test rbx, rbx
jne 0x14004a42b
mov qword [rsp + 0x40], rdi
jmp 0x14004a4a6
mov ecx, 0x40
call fcn.1401219f8
mov r15, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r14, [rax + 0x20]
movups xmmword [r14], xmm0
lea r12, [r14 + 0x10]
mov qword [r12], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
mov r8, r13
inc r8
cmp byte [rbx + r8], 0
jne 0x14004a471
mov rdx, rbx
mov rcx, r15
call fcn.14000a7d0
cmp qword [r14 + 0x18], 7
jbe 0x14004a490
mov r14, qword [r14]
mov qword [r12], rdi
mov word [r14], di
mov qword [rsp + 0x40], r15
mov r12, qword [rbp - 0x79]
mov r14, qword [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.1400b2670
movzx ebx, al
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400b0970
nop
test bl, bl
jne 0x14004a55d
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004a4fa
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x14004a4fd
mov rax, rdi
mov eax, dword [rax + 0x40]
test eax, eax
je 0x14004a55d
cmp eax, 2
jl 0x14004a55d
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004a538
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x14004a53b
mov rax, rdi
lea r9, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova r9, qword [rbp - 0x21]
lea r8, str.ProcessUserEvent:_Cannot_parse_file__s
mov edx, 2
mov rcx, rax
call fcn.14001ef20
mov rbx, qword [rsp + 0x58]
lea rcx, [rbp - 0x61]
call fcn.140009880
mov rcx, qword [r12]
test rcx, rcx
je 0x14004abcc
cmp dword [rcx], 4
jne 0x14004a599
movsd xmm1, qword [rcx + 8]
xorps xmm0, xmm0
ucomisd xmm1, xmm0
jp 0x14004a593
jne 0x14004a593
xor al, al
test al, al
jmp 0x14004a5bf
mov al, 1
test al, al
jmp 0x14004a5bf
cmp qword [rcx + 0x50], 0
jne 0x14004a5c5
mov rax, qword [rcx + 0x38]
cmp qword [rcx + 0x30], rax
jne 0x14004a5c5
cmp qword [rcx + 0x20], 0
jne 0x14004a5c5
movsd xmm1, qword [rcx + 8]
xorps xmm0, xmm0
ucomisd xmm1, xmm0
jp 0x14004a5c5
je 0x14004abcc
lea rcx, [r14 + 0xa8]
cmp rcx, rbx
je 0x14004a5e7
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14004a5de
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
call fcn.14000a690
lea r14, str._pfc
mov eax, edi
mov r15, r14
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xc8], eax
mov ecx, 0x40
call fcn.1401219f8
mov rbx, rax
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r12, [rax + 0x20]
movups xmmword [r12], xmm0
lea rax, [r12 + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rax], rdi
mov qword [r12 + 0x18], 7
mov word [r12], di
mov r8, r13
nop dword [rax]
inc r8
cmp byte [r15 + r8], 0
jne 0x14004a650
mov rdx, r15
mov rcx, rbx
call fcn.14000a7d0
cmp qword [r12 + 0x18], 7
jbe 0x14004a671
mov r12, qword [r12]
mov rax, qword [rsp + 0x40]
mov qword [rax], rdi
mov word [r12], di
mov qword [rsp + 0x40], rbx
mov r12, qword [rbp - 0x79]
mov r15, qword [r12]
test r15, r15
jne 0x14004a694
xor bl, bl
jmp 0x14004a6fc
test rbx, rbx
je 0x14004a6b9
mov rcx, qword [rbx + 0x18]
mov rax, rbx
cmp rcx, 0xf
jbe 0x14004a6a9
mov rax, qword [rbx]
test rax, rax
je 0x14004a6b9
cmp rcx, 0xf
jbe 0x14004a6c0
mov rbx, qword [rbx]
jmp 0x14004a6c0
lea rbx, [0x14018f4cd]
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x49], rdi
mov r8, r13
inc r8
cmp byte [rbx + r8], 0
jne 0x14004a6d2
mov rdx, rbx
lea rcx, [rbp - 0x61]
call fcn.14000c1a0
mov esi, DosDateTimeToVariantTime
lea rdx, [rbp - 0x61]
mov rcx, r15
call fcn.1400b1320
movzx ebx, al
test sil, 4
je 0x14004a70f
and esi, 0xfffffffb
lea rcx, [rbp - 0x61]
call fcn.140009880
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400b0970
nop
test bl, bl
je 0x14004a92e
mov ecx, 0x40
call fcn.1401219f8
mov r15, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rbx, [rax + 0x20]
movups xmmword [rbx], xmm0
lea r12, [rbx + 0x10]
mov qword [r12], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov r8, r13
nop dword [rax + rax]
inc r8
cmp byte [r14 + r8], 0
jne 0x14004a770
mov rdx, r14
mov rcx, r15
call fcn.14000a7d0
cmp qword [rbx + 0x18], 7
jbe 0x14004a78f
mov rbx, qword [rbx]
mov qword [r12], rdi
mov word [rbx], di
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp - 0x79]
call fcn.1400b1d90
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400b0970
nop
mov rax, qword [rbx]
test rax, rax
je 0x14004a7ce
cvttsd2si rax, qword [rax + 8]
mov qword [rsp + 0x40], rax
jmp 0x14004a7d3
mov qword [rsp + 0x40], rdi
mov ecx, 0x40
call fcn.1401219f8
mov rbx, rax
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r15, [rax + 0x20]
movups xmmword [r15], xmm0
lea r12, [r15 + 0x10]
mov qword [r12], rdi
mov qword [r15 + 0x18], 7
mov word [r15], di
mov r8, r13
nop dword [rax]
inc r8
cmp byte [r14 + r8], 0
jne 0x14004a820
mov rdx, r14
mov rcx, rbx
call fcn.14000a7d0
cmp qword [r15 + 0x18], 7
jbe 0x14004a83f
mov r15, qword [r15]
mov qword [r12], rdi
mov word [r15], di
mov qword [rsp + 0x48], rbx
mov r12, qword [rbp - 0x79]
mov rax, qword [r12]
test rax, rax
je 0x14004a908
lea r14, [rax + 0x48]
test rbx, rbx
je 0x14004a886
mov rcx, qword [rbx + 0x18]
mov rax, rbx
cmp rcx, 0xf
jbe 0x14004a876
mov rax, qword [rbx]
test rax, rax
je 0x14004a886
cmp rcx, 0xf
jbe 0x14004a88d
mov rbx, qword [rbx]
jmp 0x14004a88d
lea rbx, [0x14018f4cd]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x17], rdi
mov r8, r13
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x14004a8a0
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.14000c1a0
bts esi, 0xa
lea r8, [rbp - 1]
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.14001f870
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x79]
mov rcx, r14
call fcn.1400b2aa0
lea rcx, [rbp - 1]
call fcn.140009880
mov rcx, qword [r12]
test rcx, rcx
je 0x14004a908
mov rax, qword [rcx + 0x50]
test rax, rax
jne 0x14004a904
mov rax, qword [rcx + 0x38]
sub rax, qword [rcx + 0x30]
sar rax, 3
test eax, eax
jne 0x14004a911
mov rcx, r12
call fcn.1400b28a0
nop
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400b0970
nop
mov r9, qword [rsp + 0x40]
xor r8d, r8d
mov rdx, r12
call fcn.1400577e0
mov ecx, 0x40
call fcn.1401219f8
mov r14, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rbx, [rax + 0x20]
movups xmmword [rbx], xmm0
lea r15, [rbx + 0x10]
mov qword [r15], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov r8, r13
lea rax, str._command
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004a980
mov rdx, rax
mov rcx, r14
call fcn.14000a7d0
cmp qword [rbx + 0x18], 7
jbe 0x14004a99f
mov rbx, qword [rbx]
mov qword [r15], rdi
mov word [rbx], di
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.1400b1d90
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400b0970
nop
mov rdx, qword [rbx]
test rdx, rdx
je 0x14004aa00
add rdx, 0x10
lea rcx, [rbp - 1]
call fcn.140008470
or esi, 0x40
lea rdx, [rbp - 1]
lea rcx, [rsp + 0x40]
call fcn.14001b2a0
or esi, 0x20
lea rcx, [rbp - 1]
call fcn.140009880
mov rax, qword [rsp + 0x40]
jmp 0x14004aa0b
mov rax, rdi
mov qword [rsp + 0x40], rax
or esi, 0x20
or esi, 0x10
test rax, rax
je 0x14004aa36
mov rcx, rax
mov rdx, rax
mov r8, qword [rax + 0x18]
cmp r8, 0xf
jbe 0x14004aa26
mov rcx, qword [rax]
test rcx, rcx
je 0x14004aa36
cmp r8, 0xf
jbe 0x14004aa3d
mov rdx, qword [rax]
jmp 0x14004aa3d
lea rdx, [0x14018f4cd]
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x49], rdi
nop dword [rax]
inc r13
cmp byte [rdx + r13], 0
jne 0x14004aa50
mov r8, r13
lea rcx, [rbp - 0x61]
call fcn.14000c1a0
bts esi, 7
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x14004aaa5
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004aaa0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ae0b
call fcn.1401219f0
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x41], xmm0
movups xmm1, xmmword [rbp - 0x51]
movups xmmword [rbp - 0x31], xmm1
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x49], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x61], 0
lea rcx, [rbp - 0x61]
call fcn.140009880
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400b0970
nop
mov byte [rbp - 0x69], 0
mov rbx, qword [rsp + 0x50]
lea rcx, [rbx + 0x90]
lea r9, [rbp - 0x69]
mov r8, r12
lea rdx, [rbp - 0x41]
call fcn.140057d30
mov dword [rsp + 0x48], eax
cmp byte [rbp - 0x69], 0
jne 0x14004aba4
mov dword [rsp + 0x48], 2
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004ab41
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x14004ab44
mov rax, rdi
mov eax, dword [rax + 0x40]
test eax, eax
je 0x14004aba4
cmp eax, 2
jl 0x14004aba4
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004ab7f
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x14004ab82
mov rax, rdi
lea r9, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova r9, qword [rbp - 0x41]
lea r8, str.ProcessUserEvent:_Unknown_command__s
mov edx, 2
mov rcx, rax
call fcn.14001ef20
lea rcx, [rbx + 0xa8]
cmp qword [rbx + 0xc0], 7
jbe 0x14004abbc
mov rcx, qword [rbx + 0xa8]
mov qword [rbx + 0xb8], rdi
mov word [rcx], di
mov dword [rbx + 0xc8], edi
mov ebx, dword [rsp + 0x48]
mov r14, qword [rsp + 0x58]
test ebx, ebx
jne 0x14004abe9
mov rcx, r14
call fcn.14005e480
test al, al
jne 0x14004adcf
mov edx, 0xffffffff
lea rcx, [rbp - 1]
call fcn.14002c970
nop
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004ac27
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x14004ac2a
mov rax, rdi
mov eax, dword [rax + 0x40]
test eax, eax
je 0x14004ace9
cmp eax, 5
jl 0x14004ace9
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004ac70
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
mov rbx, rax
jmp 0x14004ac73
mov rbx, rdi
mov rdx, qword [r12]
test rdx, rdx
je 0x14004acab
lea rcx, [rbp - 0x61]
call fcn.1400b9c20
bts esi, 9
lea rdx, [rbp - 0x61]
lea rcx, [rsp + 0x50]
call fcn.14001b2a0
bts esi, 8
lea rcx, [rbp - 0x61]
call fcn.140009880
mov r9, qword [rsp + 0x50]
jmp 0x14004acb7
mov r9, rdi
mov qword [rsp + 0x50], rdi
bts esi, 8
or esi, 1
mov dword [rbp - 0x79], esi
test r9, r9
je 0x14004acce
cmp qword [r9 + 0x18], 0xf
jbe 0x14004acd1
mov r9, qword [r9]
jmp 0x14004acd1
mov r9, rdi
lea r8, str.command_data:__s
mov edx, 5
mov rcx, rbx
call fcn.14001ef20
mov ebx, dword [rsp + 0x48]
test sil, 1
je 0x14004acfc
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400b0970
nop
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004ad2b
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x14004ad2e
mov rax, rdi
mov eax, dword [rax + 0x40]
test eax, eax
je 0x14004adba
cmp eax, 2
jl 0x14004adba
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14004ad6e
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
mov rdi, rax
lea r8, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova r8, qword [rbp - 1]
lea rax, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rax, qword [rbp - 0x21]
lea r9, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova r9, qword [rbp - 0x41]
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r8, str.ProcessUserEvent:_command__s_returned__d_errocode_for_file__s._Marking_it_as_invalid._system_error:__s
mov edx, 2
mov rcx, rdi
call fcn.14001ef20
xor edx, edx
mov rcx, r14
call fcn.14005e210
nop
lea rcx, [rbp - 1]
call fcn.140009880
nop
lea rcx, [rbp - 0x41]
call fcn.140009880
nop
lea rcx, [rbp - 0x21]
call fcn.140009880
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1401219d0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14012dcf0
nop
int3