Function at 0x140057690
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 [0x14018a090]
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 0x140057de2
cmp r12d, 3
jae 0x140057de2
xor r15b, r15b
mov qword [rsp + 0x38], r13
lea rdx, str._file
lea rcx, [rsp + 0x38]
call fcn.140098070
nop
xor r9d, r9d
mov r8d, r12d
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.1400563c0
mov qword [rsp + 0x50], r13
mov rdx, qword [rax]
test rdx, rdx
jne 0x14005772e
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x40]
call fcn.140098070
lea rax, [rsp + 0x40]
lea ebx, [r13 + 1]
jmp 0x140057774
add rdx, 0x10
lea rcx, [rbp - 9]
call fcn.140007be0
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.140098070
nop
lea rcx, [rbp - 9]
call fcn.140009080
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 0x14005779f
and ebx, 0xfffffffd
mov dword [rsp + 0x48], ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140098070
nop
test bl, 1
je 0x1400577b8
and ebx, 0xfffffffe
mov dword [rsp + 0x48], ebx
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140098070
nop
test rdi, rdi
je 0x1400577dd
mov rcx, qword [rdi + 0x18]
mov rax, rdi
cmp rcx, 0x10
jb 0x1400577cd
mov rax, qword [rdi]
test rax, rax
je 0x1400577dd
cmp rcx, 0x10
jb 0x1400577e4
mov rdi, qword [rdi]
jmp 0x1400577e4
lea rdi, [0x14015892f]
mov qword [rbp - 0x79], r13
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
inc r8
cmp byte [rdi + r8], 0
jne 0x140057802
mov rdx, rdi
lea rcx, [rbp - 0x79]
call fcn.1400090e0
or ebx, 0x40
mov dword [rsp + 0x48], ebx
mov qword [rbp - 0x59], r13
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.14001b490
nop
lea rcx, [rbp - 0x79]
call fcn.140009080
nop
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140098070
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140098070
nop
cmp qword [rbp - 0x49], 0
je 0x140057dd3
mov qword [rsp + 0x48], r13
lea rdx, str._modified
lea rcx, [rsp + 0x48]
call fcn.140098070
nop
test r12d, r12d
js 0x1400578ab
cmp r12d, 3
jae 0x1400578ab
lea rax, [r12 + 6]
lea rcx, [r14 + rax*8]
lea rdx, [rsp + 0x48]
call fcn.1400994e0
mov rbx, rax
jmp 0x1400578cc
mov qword [rsp + 0x50], r13
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1400994e0
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.140099eb0
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400578d8
xor bl, bl
jmp 0x14005790b
cmp dword [rcx], 4
je 0x1400578f5
cmp qword [rcx + 0x50], 0
jne 0x140057909
mov rax, qword [rcx + 0x38]
cmp qword [rcx + 0x30], rax
jne 0x140057909
cmp qword [rcx + 0x20], 0
jne 0x140057909
xorps xmm0, xmm0
movsd xmm1, qword [rcx + 8]
ucomisd xmm1, xmm0
jp 0x140057909
jne 0x140057909
xor bl, bl
jmp 0x14005790b
mov bl, 1
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140098070
nop
test bl, bl
jne 0x140057939
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 0x140057dd3
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.140098070
nop
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400998f0
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140098070
nop
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
cmp qword [rdi], r15
je 0x1400579c5
lea ecx, [r15 + 0x58]
call fcn.1400f9588
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.1400985a0
nop
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.140099eb0
mov edx, r12d
mov rcx, r14
call fcn.1400567c0
test al, al
je 0x140057a45
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1400999d0
nop
mov rax, qword [rdi]
mov qword [rsp + 0x50], rax
mov qword [rdi], r15
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140057a3b
mov ecx, 0x58
call fcn.1400f9588
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.1400985a0
nop
mov qword [rdi], rax
lea rcx, [rsp + 0x50]
call fcn.140099eb0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.1400408f0
nop
mov rbx, qword [rsp + 0x50]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x140057af6
nop
lea rdx, [rbx + 0x20]
mov rax, qword [rdx]
test rax, rax
je 0x140057aa2
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140057aa2
test ecx, ecx
jle 0x140057aa2
cmp qword [rax + 0x18], 0x10
jb 0x140057a93
mov rax, qword [rax]
cmp byte [rax], 0x5f
jne 0x140057aa2
lea rcx, [rsp + 0x48]
call fcn.1400998f0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140057ace
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140057ac9
cmp rbx, qword [rax + 0x10]
jne 0x140057ac9
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140057ab6
mov rbx, rax
jmp 0x140057aec
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140057aec
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140057ae0
cmp byte [rbx + 0x19], 0
je 0x140057a70
lea rcx, [rsp + 0x50]
call fcn.140040870
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140057b42
lea rcx, [rbp - 9]
call fcn.14009ffc0
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.140098070
nop
lea rcx, [rbp - 9]
call fcn.140009080
mov rax, qword [rsp + 0x30]
jmp 0x140057b4a
mov rax, r15
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140057b72
mov rcx, rax
mov rdx, rax
mov r8, qword [rax + 0x18]
cmp r8, 0x10
jb 0x140057b62
mov rcx, qword [rax]
test rcx, rcx
je 0x140057b72
cmp r8, 0x10
jb 0x140057b79
mov rdx, qword [rax]
jmp 0x140057b79
lea rdx, [0x14015892f]
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x79], 0
mov r8, rsi
inc r8
cmp byte [rdx + r8], 0
jne 0x140057b90
lea rcx, [rbp - 0x79]
call fcn.1400090e0
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140098070
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 - 0x39], r15
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 0x140057c45
cmp word [rdx], bx
je 0x140057c45
mov qword [rbp - 9], r15
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r14
mov word [rbp - 9], r15w
nop dword [rax + rax]
inc rsi
cmp word [rdx + rsi*2], bx
jne 0x140057c10
mov r8, rsi
lea rcx, [rbp - 9]
call fcn.140008ee0
nop
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x39]
call fcn.14002ce60
nop
lea rcx, [rbp - 9]
call fcn.140008e70
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.140022da0
movzx r15d, al
test rbx, rbx
je 0x140057c8c
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.140008e70
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.140024740
mov rbx, qword [rbp + 7]
lea ecx, [rsi + 0x58]
call fcn.1400f9588
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 0x140057d10
cvtsi2sd xmm1, rbx
jmp 0x140057d25
mov rax, rbx
shr rax, 1
and ebx, 1
or rax, rbx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
call fcn.140098520
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea rdx, str._fileModTime
lea rcx, [rsp + 0x30]
call fcn.140098070
nop
test r12d, r12d
js 0x140057da6
cmp r12, 3
jae 0x140057da6
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400994e0
lea rcx, [rsp + 0x38]
cmp rax, rcx
je 0x140057da6
mov rcx, qword [rax]
test rcx, rcx
jne 0x140057d7a
test rbx, rbx
jne 0x140057d8b
jmp 0x140057da6
test rbx, rbx
je 0x140057d8b
mov rdx, rbx
call fcn.140098e50
test eax, eax
je 0x140057da6
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400993e0
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140099e10
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140098070
nop
lea rcx, [rsp + 0x38]
call fcn.140099eb0
nop
lea rcx, [rbp - 0x79]
call fcn.140009080
nop
lea rcx, [rsp + 0x48]
call fcn.140099eb0
nop
lea rcx, [rbp - 0x59]
call fcn.140008e70
movzx eax, r15b
jmp 0x140057de4
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400f9560
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret