Function at 0x140050f40
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rbp + 0x17], rax
movsxd r14, edx
mov rdi, rcx
test edx, edx
js 0x140050f8a
cmp r14d, 3
jae 0x140050f8a
mov al, 1
jmp 0x140050f8c
xor al, al
test al, al
je 0x14005169e
xor sil, sil
xor r15d, r15d
mov qword [rsp + 0x38], r15
lea rdx, str._file
lea rcx, [rsp + 0x38]
call fcn.14007d290
nop
mov r9d, r14d
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x39]
mov rcx, rdi
call fcn.14004f520
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x140050fee
mov rax, rdx
mov rcx, qword [rdx + 0x18]
cmp rcx, 0x10
jb 0x140050fde
mov rax, qword [rdx]
test rax, rax
je 0x140050fee
cmp rcx, 0x10
jb 0x140050ff5
mov rdx, qword [rdx]
jmp 0x140050ff5
lea rdx, [0x140123b98]
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x69], 0
mov r12, 0xffffffffffffffff
mov r8, r12
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140051010
lea rcx, [rbp - 0x69]
call fcn.140003a60
nop
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r15w
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.140008860
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x14005107e
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051079
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400516cb
call fcn.1400cd424
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x69], 0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007d290
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14007d290
nop
cmp qword [rbp - 0x19], 0
je 0x14005165e
mov qword [rsp + 0x30], r15
lea rdx, str._modified
lea rcx, [rsp + 0x30]
call fcn.14007d290
nop
test r14d, r14d
js 0x1400510d8
cmp r14d, 3
jae 0x1400510d8
mov al, 1
jmp 0x1400510da
xor al, al
test al, al
je 0x1400510f5
lea rax, [r14 + 0xa]
lea rcx, [rdi + rax*8]
lea rdx, [rsp + 0x30]
call fcn.14007e740
mov rbx, rax
jmp 0x140051113
mov qword [rbp - 0x71], r15
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x71]
call fcn.14007e740
mov rbx, rax
lea rcx, [rbp - 0x71]
call fcn.14007f3f0
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14005111f
xor bl, bl
jmp 0x140051152
cmp dword [rcx], 4
je 0x14005113c
cmp qword [rcx + 0x50], 0
jne 0x140051150
mov rax, qword [rcx + 0x38]
cmp qword [rcx + 0x30], rax
jne 0x140051150
cmp qword [rcx + 0x20], 0
jne 0x140051150
xorps xmm0, xmm0
movsd xmm1, qword [rcx + 8]
ucomisd xmm1, xmm0
jp 0x140051150
jne 0x140051150
xor bl, bl
jmp 0x140051152
mov bl, 1
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14007d290
nop
test bl, bl
jne 0x140051180
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x14005165e
mov qword [rsp + 0x30], r15
lea rdx, str._modified
lea rcx, [rsp + 0x30]
call fcn.14007d290
nop
lea r15, [rdi + 0x50]
lea r15, [r15 + r14*8]
mov rcx, qword [r15]
test rcx, rcx
je 0x1400511d2
lea rdx, [rsp + 0x30]
call fcn.14007dc80
mov rcx, qword [r15]
test rcx, rcx
je 0x1400511d2
mov rax, qword [rcx + 0x50]
test rax, rax
jne 0x1400511ce
mov rax, qword [rcx + 0x38]
sub rax, qword [rcx + 0x30]
sar rax, 3
test eax, eax
jne 0x1400511db
mov rcx, r15
call fcn.14007f3f0
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14007d290
nop
mov qword [rbp - 0x71], 0
cmp qword [r15], 0
je 0x140051225
mov ecx, 0x58
call fcn.1400cd42c
mov rbx, rax
mov qword [rbp - 0x39], rax
xor edx, edx
lea r8d, [rdx + 0x58]
mov rcx, rax
call fcn.1400cf640
mov rdx, qword [r15]
mov rcx, rbx
call fcn.14007d8b0
nop
mov qword [rbp - 0x71], rax
xor eax, eax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x71]
call fcn.14004b860
nop
mov rsi, qword [rbp - 0x39]
mov rbx, qword [rsi]
mov rdi, qword [rbp - 0x71]
cmp rbx, rsi
je 0x140051307
lea rdx, [rbx + 0x20]
mov rax, qword [rdx]
test rax, rax
je 0x1400512ac
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1400512ac
test ecx, ecx
jle 0x1400512ac
cmp qword [rax + 0x18], 0x10
jb 0x140051274
mov rax, qword [rax]
cmp byte [rax], 0x5f
jne 0x1400512ac
test rdi, rdi
je 0x14005129f
mov rcx, rdi
call fcn.14007dc80
mov rax, qword [rdi + 0x50]
test rax, rax
jne 0x14005129b
mov rax, qword [rdi + 0x38]
sub rax, qword [rdi + 0x30]
sar rax, 3
test eax, eax
jne 0x1400512ac
lea rcx, [rbp - 0x71]
call fcn.14007f3f0
mov rdi, qword [rbp - 0x71]
cmp byte [rbx + 0x19], 0
jne 0x1400512fe
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400512de
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400512fe
nop dword [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400512d0
jmp 0x1400512fe
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400512fb
cmp rbx, qword [rax + 0x10]
jne 0x1400512fb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400512e8
mov rbx, rax
cmp rbx, rsi
jne 0x140051251
lea rcx, [rbp - 0x39]
call fcn.14004b790
mov edx, Ordinal_41
mov rcx, qword [rbp - 0x39]
call fcn.1400cd424
test rdi, rdi
je 0x140051392
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.140087f90
nop
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rdx, [rbp - 0x69]
cmp qword [rbp - 0x51], 0x10
cmovae rdx, qword [rbp - 0x69]
lea rcx, [rsp + 0x30]
call fcn.14007d290
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x14005138b
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051386
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400516d7
call fcn.1400cd424
mov rax, qword [rsp + 0x30]
jmp 0x14005139b
xor ebx, ebx
mov eax, ebx
mov qword [rsp + 0x30], rbx
test rax, rax
je 0x1400513c3
mov rcx, rax
mov rdx, rax
mov r8, qword [rax + 0x18]
cmp r8, 0x10
jb 0x1400513b3
mov rcx, qword [rax]
test rcx, rcx
je 0x1400513c3
cmp r8, 0x10
jb 0x1400513ca
mov rdx, qword [rax]
jmp 0x1400513ca
lea rdx, [0x140123b98]
mov qword [rbp + 7], rbx
mov qword [rbp + reloc.WS2_32.dll_ntohs], 0xf
mov byte [rbp - 9], 0
mov r8, r12
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400513e0
lea rcx, [rbp - 9]
call fcn.140003a60
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14007d290
nop
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.1400281a0
nop
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.14004a5e0
movzx esi, al
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140051465
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x49], 0
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140051465
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x59], rbx
lea rax, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rax, qword [rbp - 0x69]
mov word [rax], bx
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x1400514be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400514b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400516d1
call fcn.1400cd424
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.14001cb60
mov rbx, qword [rbp - 0x59]
mov ecx, 0x58
call fcn.1400cd42c
mov rdi, rax
mov qword [rbp - 0x39], rax
xor edx, edx
lea r8d, [rdx + 0x58]
mov rcx, rax
call fcn.1400cf640
xorps xmm1, xmm1
cvtsi2sd xmm1, rbx
test rbx, rbx
jns 0x140051519
addsd xmm1, qword [0x14012d1a8]
mov rcx, rdi
call fcn.14007d840
mov rdi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rdx, str._fileModTime
lea rcx, [rsp + 0x30]
call fcn.14007d290
nop
test r14d, r14d
js 0x140051551
cmp r14, 3
jae 0x140051551
mov al, 1
jmp 0x140051553
xor al, al
test al, al
je 0x1400515f1
test r14d, r14d
js 0x14005156a
cmp r14, 3
jae 0x14005156a
mov al, 1
jmp 0x14005156c
xor al, al
test al, al
je 0x140051582
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14007e740
mov rbx, rax
jmp 0x1400515a0
mov qword [rbp - 0x39], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x39]
call fcn.14007e740
mov rbx, rax
lea rcx, [rbp - 0x39]
call fcn.14007f3f0
lea rax, [rsp + 0x38]
cmp rbx, rax
jne 0x1400515b1
xor ebx, ebx
mov r12d, ebx
jmp 0x1400515d1
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400515cf
test rdi, rdi
jne 0x1400515c4
lea r12d, [rdi + 1]
jmp 0x1400515cf
mov rdx, rdi
call fcn.14007e110
mov r12d, eax
xor ebx, ebx
test r12d, r12d
je 0x1400515f1
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14007e620
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.14007f310
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14007d290
nop
lea rcx, [rsp + 0x38]
call fcn.14007f3f0
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x140051644
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005163f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400516d7
call fcn.1400cd424
mov qword [rbp + 7], rbx
mov qword [rbp + reloc.WS2_32.dll_ntohs], 0xf
mov byte [rbp - 9], 0
lea rcx, [rbp - 0x71]
call fcn.14007f3f0
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x14005169a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051695
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400516c5
call fcn.1400cd424
movzx eax, sil
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400cd400
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400d20f4
nop
call fcn.1400d20f4
nop
call fcn.1400d20f4
nop
call fcn.1400d20f4
int3