Function at 0x140057f00
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 [0x140189090]
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 0x140058652
cmp r12d, 3
jae 0x140058652
xor r15b, r15b
mov qword [rsp + 0x38], r13
lea rdx, str._file
lea rcx, [rsp + 0x38]
call fcn.140097430
nop
xor r9d, r9d
mov r8d, r12d
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.140056c30
mov qword [rsp + 0x50], r13
mov rdx, qword [rax]
test rdx, rdx
jne 0x140057f9e
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x40]
call fcn.140097430
lea rax, [rsp + 0x40]
lea ebx, [r13 + 1]
jmp 0x140057fe4
add rdx, 0x10
lea rcx, [rbp - 9]
call fcn.140007d50
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.140097430
nop
lea rcx, [rbp - 9]
call fcn.1400091f0
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 0x14005800f
and ebx, 0xfffffffd
mov dword [rsp + 0x48], ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140097430
nop
test bl, 1
je 0x140058028
and ebx, 0xfffffffe
mov dword [rsp + 0x48], ebx
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140097430
nop
test rdi, rdi
je 0x14005804d
mov rcx, qword [rdi + 0x18]
mov rax, rdi
cmp rcx, 0x10
jb 0x14005803d
mov rax, qword [rdi]
test rax, rax
je 0x14005804d
cmp rcx, 0x10
jb 0x140058054
mov rdi, qword [rdi]
jmp 0x140058054
lea rdi, [0x1401578ef]
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 0x140058072
mov rdx, rdi
lea rcx, [rbp - 0x79]
call fcn.140009250
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.14001b5c0
nop
lea rcx, [rbp - 0x79]
call fcn.1400091f0
nop
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140097430
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140097430
nop
cmp qword [rbp - 0x49], 0
je 0x140058643
mov qword [rsp + 0x48], r13
lea rdx, str._modified
lea rcx, [rsp + 0x48]
call fcn.140097430
nop
test r12d, r12d
js 0x14005811b
cmp r12d, 3
jae 0x14005811b
lea rax, [r12 + 6]
lea rcx, [r14 + rax*8]
lea rdx, [rsp + 0x48]
call fcn.1400988a0
mov rbx, rax
jmp 0x14005813c
mov qword [rsp + 0x50], r13
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1400988a0
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.140099270
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140058148
xor bl, bl
jmp 0x14005817b
cmp dword [rcx], 4
je 0x140058165
cmp qword [rcx + 0x50], 0
jne 0x140058179
mov rax, qword [rcx + 0x38]
cmp qword [rcx + 0x30], rax
jne 0x140058179
cmp qword [rcx + 0x20], 0
jne 0x140058179
xorps xmm0, xmm0
movsd xmm1, qword [rcx + 8]
ucomisd xmm1, xmm0
jp 0x140058179
jne 0x140058179
xor bl, bl
jmp 0x14005817b
mov bl, 1
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140097430
nop
test bl, bl
jne 0x1400581a9
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 0x140058643
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.140097430
nop
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140098cb0
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140097430
nop
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
cmp qword [rdi], r15
je 0x140058235
lea ecx, [r15 + 0x58]
call fcn.1400f89d8
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.140097960
nop
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.140099270
mov edx, r12d
mov rcx, r14
call fcn.140057030
test al, al
je 0x1400582b5
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140098d90
nop
mov rax, qword [rdi]
mov qword [rsp + 0x50], rax
mov qword [rdi], r15
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400582ab
mov ecx, 0x58
call fcn.1400f89d8
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.140097960
nop
mov qword [rdi], rax
lea rcx, [rsp + 0x50]
call fcn.140099270
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.140040fe0
nop
mov rbx, qword [rsp + 0x50]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x140058366
nop
lea rdx, [rbx + 0x20]
mov rax, qword [rdx]
test rax, rax
je 0x140058312
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140058312
test ecx, ecx
jle 0x140058312
cmp qword [rax + 0x18], 0x10
jb 0x140058303
mov rax, qword [rax]
cmp byte [rax], 0x5f
jne 0x140058312
lea rcx, [rsp + 0x48]
call fcn.140098cb0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14005833e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140058339
cmp rbx, qword [rax + 0x10]
jne 0x140058339
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140058326
mov rbx, rax
jmp 0x14005835c
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14005835c
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140058350
cmp byte [rbx + 0x19], 0
je 0x1400582e0
lea rcx, [rsp + 0x50]
call fcn.140040f60
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400583b2
lea rcx, [rbp - 9]
call fcn.14009f410
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.140097430
nop
lea rcx, [rbp - 9]
call fcn.1400091f0
mov rax, qword [rsp + 0x30]
jmp 0x1400583ba
mov rax, r15
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400583e2
mov rcx, rax
mov rdx, rax
mov r8, qword [rax + 0x18]
cmp r8, 0x10
jb 0x1400583d2
mov rcx, qword [rax]
test rcx, rcx
je 0x1400583e2
cmp r8, 0x10
jb 0x1400583e9
mov rdx, qword [rax]
jmp 0x1400583e9
lea rdx, [0x1401578ef]
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 0x140058400
lea rcx, [rbp - 0x79]
call fcn.140009250
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140097430
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 0x1400584b5
cmp word [rdx], bx
je 0x1400584b5
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 0x140058480
mov r8, rsi
lea rcx, [rbp - 9]
call fcn.140009050
nop
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x39]
call fcn.14002d2c0
nop
lea rcx, [rbp - 9]
call fcn.140008fe0
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.1400234e0
movzx r15d, al
test rbx, rbx
je 0x1400584fc
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.140008fe0
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.140024e70
mov rbx, qword [rbp + 7]
lea ecx, [rsi + 0x58]
call fcn.1400f89d8
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 0x140058580
cvtsi2sd xmm1, rbx
jmp 0x140058595
mov rax, rbx
shr rax, 1
and ebx, 1
or rax, rbx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
call fcn.1400978e0
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea rdx, str._fileModTime
lea rcx, [rsp + 0x30]
call fcn.140097430
nop
test r12d, r12d
js 0x140058616
cmp r12, 3
jae 0x140058616
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400988a0
lea rcx, [rsp + 0x38]
cmp rax, rcx
je 0x140058616
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400585ea
test rbx, rbx
jne 0x1400585fb
jmp 0x140058616
test rbx, rbx
je 0x1400585fb
mov rdx, rbx
call fcn.140098210
test eax, eax
je 0x140058616
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400987a0
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.1400991d0
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140097430
nop
lea rcx, [rsp + 0x38]
call fcn.140099270
nop
lea rcx, [rbp - 0x79]
call fcn.1400091f0
nop
lea rcx, [rsp + 0x48]
call fcn.140099270
nop
lea rcx, [rbp - 0x59]
call fcn.140008fe0
movzx eax, r15b
jmp 0x140058654
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400f89b0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret