Function at 0x140053cb0
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 [0x140177090]
xor rax, rsp
mov qword [rbp + 0x17], rax
movsxd r12, edx
mov r14, rcx
xor r13d, r13d
mov dword [rsp + 0x48], r13d
test edx, edx
js 0x1400543f5
cmp r12d, 3
jae 0x1400543f5
xor r15b, r15b
mov qword [rsp + 0x38], r13
lea rdx, str._file
lea rcx, [rsp + 0x38]
call fcn.140087010
nop
xor r9d, r9d
mov r8d, r12d
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.1400524e0
mov qword [rsp + 0x50], r13
mov rdx, qword [rax]
test rdx, rdx
jne 0x140053d4e
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x40]
call fcn.140087010
lea rax, [rsp + 0x40]
lea ebx, [r13 + 1]
jmp 0x140053d94
add rdx, 0x10
lea rcx, [rbp - 9]
call fcn.1400075e0
mov dword [rsp + 0x48], 0x20
mov qword [rsp + 0x30], r13
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rdx, qword [rbp - 9]
lea rcx, [rsp + 0x30]
call fcn.140087010
nop
lea rcx, [rbp - 9]
call fcn.140008a50
lea rax, [rsp + 0x30]
mov ebx, 0x3a
mov rdi, qword [rax]
mov qword [rsp + 0x50], rdi
mov qword [rax], r13
or ebx, 4
mov dword [rsp + 0x48], ebx
test bl, 2
je 0x140053dbf
and ebx, 0xfffffffd
mov dword [rsp + 0x48], ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140087010
nop
test bl, 1
je 0x140053dd8
and ebx, 0xfffffffe
mov dword [rsp + 0x48], ebx
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140087010
nop
test rdi, rdi
je 0x140053dfd
mov rcx, qword [rdi + 0x18]
mov rax, rdi
cmp rcx, 0x10
jb 0x140053ded
mov rax, qword [rdi]
test rax, rax
je 0x140053dfd
cmp rcx, 0x10
jb 0x140053e04
mov rdi, qword [rdi]
jmp 0x140053e04
lea rdi, [0x1401490f7]
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x79], 0
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop
inc r8
cmp byte [rdi + r8], 0
jne 0x140053e20
mov rdx, rdi
lea rcx, [rbp - 0x79]
call fcn.140008ab0
or ebx, 0x40
mov dword [rsp + 0x48], ebx
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x41], 7
mov word [rbp - 0x59], r13w
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x79]
call fcn.14001a690
nop
lea rcx, [rbp - 0x79]
call fcn.140008a50
nop
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140087010
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140087010
nop
cmp qword [rbp - 0x49], 0
je 0x1400543e6
mov qword [rsp + 0x48], r13
lea rdx, str._modified
lea rcx, [rsp + 0x48]
call fcn.140087010
nop
test r12d, r12d
js 0x140053ec5
cmp r12d, 3
jae 0x140053ec5
lea rax, [r12 + 6]
lea rcx, [r14 + rax*8]
lea rdx, [rsp + 0x48]
call fcn.140088500
mov rbx, rax
jmp 0x140053ee6
mov qword [rsp + 0x50], r13
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140088500
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.140088ed0
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140053ef2
xor bl, bl
jmp 0x140053f25
cmp dword [rcx], 4
je 0x140053f0f
cmp qword [rcx + 0x50], 0
jne 0x140053f23
mov rax, qword [rcx + 0x38]
cmp qword [rcx + 0x30], rax
jne 0x140053f23
cmp qword [rcx + 0x20], 0
jne 0x140053f23
xorps xmm0, xmm0
movsd xmm1, qword [rcx + 8]
ucomisd xmm1, xmm0
jp 0x140053f23
jne 0x140053f23
xor bl, bl
jmp 0x140053f25
mov bl, 1
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140087010
nop
test bl, bl
jne 0x140053f53
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rcx, qword [rbp - 0x59]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x1400543e6
xor r15d, r15d
mov qword [rsp + 0x48], r15
lea rdi, [r14 + 0x30]
lea rdi, [rdi + r12*8]
mov qword [rsp + 0x38], r15
lea rdx, str._modified
lea rcx, [rsp + 0x38]
call fcn.140087010
nop
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140088920
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140087010
nop
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
cmp qword [rdi], r15
je 0x140053fdf
lea ecx, [r15 + 0x58]
call fcn.1400e9d8c
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rcx
mov rdx, qword [rdi]
mov rcx, rax
call fcn.140087540
nop
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.140088ed0
mov edx, r12d
mov rcx, r14
call fcn.1400529a0
test al, al
je 0x14005405f
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140088a00
nop
mov rax, qword [rdi]
mov qword [rsp + 0x50], rax
mov qword [rdi], r15
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140054055
mov ecx, 0x58
call fcn.1400e9d8c
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rcx
mov rdx, rbx
mov rcx, rax
call fcn.140087540
nop
mov qword [rdi], rax
lea rcx, [rsp + 0x50]
call fcn.140088ed0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.14003e860
nop
mov rbx, qword [rsp + 0x50]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x140054116
nop dword [rax]
lea rdx, [rbx + 0x20]
mov rax, qword [rdx]
test rax, rax
je 0x1400540c2
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1400540c2
test ecx, ecx
jle 0x1400540c2
cmp qword [rax + 0x18], 0x10
jb 0x1400540b3
mov rax, qword [rax]
cmp byte [rax], 0x5f
jne 0x1400540c2
lea rcx, [rsp + 0x48]
call fcn.140088920
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400540ee
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400540e9
cmp rbx, qword [rax + 0x10]
jne 0x1400540e9
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400540d6
mov rbx, rax
jmp 0x14005410c
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14005410c
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140054100
cmp byte [rbx + 0x19], 0
je 0x140054090
lea rcx, [rsp + 0x50]
call fcn.14003e7e0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140054162
lea rcx, [rbp - 9]
call fcn.140090230
nop
mov qword [rsp + 0x30], r15
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rdx, qword [rbp - 9]
lea rcx, [rsp + 0x30]
call fcn.140087010
nop
lea rcx, [rbp - 9]
call fcn.140008a50
mov rax, qword [rsp + 0x30]
jmp 0x14005416a
mov rax, r15
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140054192
mov rcx, rax
mov rdx, rax
mov r8, qword [rax + 0x18]
cmp r8, 0x10
jb 0x140054182
mov rcx, qword [rax]
test rcx, rcx
je 0x140054192
cmp r8, 0x10
jb 0x140054199
mov rdx, qword [rax]
jmp 0x140054199
lea rdx, [0x1401490f7]
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x79], 0
mov r8, rsi
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400541b0
lea rcx, [rbp - 0x79]
call fcn.140008ab0
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140087010
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
lea rdx, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rdx, qword [rbp - 0x59]
mov qword [rbp - 0x29], r15
mov r14d, 7
mov qword [rbp - 0x21], r14
mov word [rbp - 0x39], r15w
mov byte [rbp - 0x19], 0
mov rbx, r15
mov qword [rbp - 0x11], rbx
test rdx, rdx
je 0x140054258
cmp word [rdx], bx
je 0x140054258
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r14
mov word [rbp - 9], r15w
inc rsi
cmp word [rdx + rsi*2], bx
jne 0x140054223
mov r8, rsi
lea rcx, [rbp - 9]
call fcn.1400088b0
nop
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x39]
call fcn.14002bd00
nop
lea rcx, [rbp - 9]
call fcn.140008840
mov rbx, qword [rbp - 0x11]
mov r14, qword [rbp - 0x21]
lea rdx, [rbp - 0x79]
cmp qword [rbp - 0x61], 0x10
cmovae rdx, qword [rbp - 0x79]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, qword [rbp - 0x69]
lea rcx, [rbp - 0x59]
call fcn.140023910
movzx r15d, al
test rbx, rbx
je 0x14005429f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x19], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov qword [rbp - 0x11], rsi
lea rdx, [rbp - 0x39]
cmp r14, 8
cmovae rdx, qword [rbp - 0x39]
mov qword [rbp - 0x29], rsi
mov word [rdx], si
lea rcx, [rbp - 0x39]
call fcn.140008840
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
lea r9, [rbp + 7]
lea r8, [rbp - 1]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x59]
call fcn.140025380
mov rbx, qword [rbp + 7]
lea ecx, [rsi + 0x58]
call fcn.1400e9d8c
mov rcx, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
mov qword [rcx + 0x50], rax
xorps xmm1, xmm1
test rbx, rbx
js 0x140054323
cvtsi2sd xmm1, rbx
jmp 0x140054338
mov rax, rbx
shr rax, 1
and ebx, 1
or rax, rbx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
call fcn.1400874c0
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea rdx, str._fileModTime
lea rcx, [rsp + 0x30]
call fcn.140087010
nop
test r12d, r12d
js 0x1400543b9
cmp r12, 3
jae 0x1400543b9
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140088500
lea rcx, [rsp + 0x38]
cmp rax, rcx
je 0x1400543b9
mov rcx, qword [rax]
test rcx, rcx
jne 0x14005438d
test rbx, rbx
jne 0x14005439e
jmp 0x1400543b9
test rbx, rbx
je 0x14005439e
mov rdx, rbx
call fcn.140087e60
test eax, eax
je 0x1400543b9
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140088410
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140088e30
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140087010
nop
lea rcx, [rsp + 0x38]
call fcn.140088ed0
nop
lea rcx, [rbp - 0x79]
call fcn.140008a50
nop
lea rcx, [rsp + 0x48]
call fcn.140088ed0
nop
lea rcx, [rbp - 0x59]
call fcn.140008840
movzx eax, r15b
jmp 0x1400543f7
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400e9d60
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret