Function at 0x140050d70
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 [0x14015a138]
xor rax, rsp
mov qword [rbp + 0x17], rax
movsxd r14, edx
mov rdi, rcx
test edx, edx
js 0x140050dba
cmp r14d, 3
jae 0x140050dba
mov al, 1
jmp 0x140050dbc
xor al, al
test al, al
je 0x1400514ce
xor sil, sil
xor r15d, r15d
mov qword [rsp + 0x38], r15
lea rdx, str._file
lea rcx, [rsp + 0x38]
call fcn.14007cbd0
nop
mov r9d, r14d
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x39]
mov rcx, rdi
call fcn.14004f350
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x140050e1e
mov rax, rdx
mov rcx, qword [rdx + 0x18]
cmp rcx, 0x10
jb 0x140050e0e
mov rax, qword [rdx]
test rax, rax
je 0x140050e1e
cmp rcx, 0x10
jb 0x140050e25
mov rdx, qword [rdx]
jmp 0x140050e25
lea rdx, [0x140122b88]
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 0x140050e40
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 0x140050eae
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050ea9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400514fb
call fcn.1400ccd64
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.14007cbd0
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14007cbd0
nop
cmp qword [rbp - 0x19], 0
je 0x14005148e
mov qword [rsp + 0x30], r15
lea rdx, str._modified
lea rcx, [rsp + 0x30]
call fcn.14007cbd0
nop
test r14d, r14d
js 0x140050f08
cmp r14d, 3
jae 0x140050f08
mov al, 1
jmp 0x140050f0a
xor al, al
test al, al
je 0x140050f25
lea rax, [r14 + 0xa]
lea rcx, [rdi + rax*8]
lea rdx, [rsp + 0x30]
call fcn.14007e080
mov rbx, rax
jmp 0x140050f43
mov qword [rbp - 0x71], r15
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x71]
call fcn.14007e080
mov rbx, rax
lea rcx, [rbp - 0x71]
call fcn.14007ed30
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140050f4f
xor bl, bl
jmp 0x140050f82
cmp dword [rcx], 4
je 0x140050f6c
cmp qword [rcx + 0x50], 0
jne 0x140050f80
mov rax, qword [rcx + 0x38]
cmp qword [rcx + 0x30], rax
jne 0x140050f80
cmp qword [rcx + 0x20], 0
jne 0x140050f80
xorps xmm0, xmm0
movsd xmm1, qword [rcx + 8]
ucomisd xmm1, xmm0
jp 0x140050f80
jne 0x140050f80
xor bl, bl
jmp 0x140050f82
mov bl, 1
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14007cbd0
nop
test bl, bl
jne 0x140050fb0
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 0x14005148e
mov qword [rsp + 0x30], r15
lea rdx, str._modified
lea rcx, [rsp + 0x30]
call fcn.14007cbd0
nop
lea r15, [rdi + 0x50]
lea r15, [r15 + r14*8]
mov rcx, qword [r15]
test rcx, rcx
je 0x140051002
lea rdx, [rsp + 0x30]
call fcn.14007d5c0
mov rcx, qword [r15]
test rcx, rcx
je 0x140051002
mov rax, qword [rcx + 0x50]
test rax, rax
jne 0x140050ffe
mov rax, qword [rcx + 0x38]
sub rax, qword [rcx + 0x30]
sar rax, 3
test eax, eax
jne 0x14005100b
mov rcx, r15
call fcn.14007ed30
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14007cbd0
nop
mov qword [rbp - 0x71], 0
cmp qword [r15], 0
je 0x140051055
mov ecx, 0x58
call fcn.1400ccd6c
mov rbx, rax
mov qword [rbp - 0x39], rax
xor edx, edx
lea r8d, [rdx + 0x58]
mov rcx, rax
call fcn.1400cef80
mov rdx, qword [r15]
mov rcx, rbx
call fcn.14007d1f0
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.14004b690
nop
mov rsi, qword [rbp - 0x39]
mov rbx, qword [rsi]
mov rdi, qword [rbp - 0x71]
cmp rbx, rsi
je 0x140051137
lea rdx, [rbx + 0x20]
mov rax, qword [rdx]
test rax, rax
je 0x1400510dc
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1400510dc
test ecx, ecx
jle 0x1400510dc
cmp qword [rax + 0x18], 0x10
jb 0x1400510a4
mov rax, qword [rax]
cmp byte [rax], 0x5f
jne 0x1400510dc
test rdi, rdi
je 0x1400510cf
mov rcx, rdi
call fcn.14007d5c0
mov rax, qword [rdi + 0x50]
test rax, rax
jne 0x1400510cb
mov rax, qword [rdi + 0x38]
sub rax, qword [rdi + 0x30]
sar rax, 3
test eax, eax
jne 0x1400510dc
lea rcx, [rbp - 0x71]
call fcn.14007ed30
mov rdi, qword [rbp - 0x71]
cmp byte [rbx + 0x19], 0
jne 0x14005112e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14005110e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14005112e
nop dword [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140051100
jmp 0x14005112e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14005112b
cmp rbx, qword [rax + 0x10]
jne 0x14005112b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140051118
mov rbx, rax
cmp rbx, rsi
jne 0x140051081
lea rcx, [rbp - 0x39]
call fcn.14004b5c0
mov edx, Ordinal_41
mov rcx, qword [rbp - 0x39]
call fcn.1400ccd64
test rdi, rdi
je 0x1400511c2
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.1400878d0
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.14007cbd0
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x1400511bb
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400511b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051507
call fcn.1400ccd64
mov rax, qword [rsp + 0x30]
jmp 0x1400511cb
xor ebx, ebx
mov eax, ebx
mov qword [rsp + 0x30], rbx
test rax, rax
je 0x1400511f3
mov rcx, rax
mov rdx, rax
mov r8, qword [rax + 0x18]
cmp r8, 0x10
jb 0x1400511e3
mov rcx, qword [rax]
test rcx, rcx
je 0x1400511f3
cmp r8, 0x10
jb 0x1400511fa
mov rdx, qword [rax]
jmp 0x1400511fa
lea rdx, [0x140122b88]
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 0x140051210
lea rcx, [rbp - 9]
call fcn.140003a60
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14007cbd0
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.140027c30
nop
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.14004a410
movzx esi, al
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140051295
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x49], 0
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140051295
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 0x1400512ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400512e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051501
call fcn.1400ccd64
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.14001c5f0
mov rbx, qword [rbp - 0x59]
mov ecx, 0x58
call fcn.1400ccd6c
mov rdi, rax
mov qword [rbp - 0x39], rax
xor edx, edx
lea r8d, [rdx + 0x58]
mov rcx, rax
call fcn.1400cef80
xorps xmm1, xmm1
cvtsi2sd xmm1, rbx
test rbx, rbx
jns 0x140051349
addsd xmm1, qword [0x14012bf98]
mov rcx, rdi
call fcn.14007d180
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.14007cbd0
nop
test r14d, r14d
js 0x140051381
cmp r14, 3
jae 0x140051381
mov al, 1
jmp 0x140051383
xor al, al
test al, al
je 0x140051421
test r14d, r14d
js 0x14005139a
cmp r14, 3
jae 0x14005139a
mov al, 1
jmp 0x14005139c
xor al, al
test al, al
je 0x1400513b2
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14007e080
mov rbx, rax
jmp 0x1400513d0
mov qword [rbp - 0x39], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x39]
call fcn.14007e080
mov rbx, rax
lea rcx, [rbp - 0x39]
call fcn.14007ed30
lea rax, [rsp + 0x38]
cmp rbx, rax
jne 0x1400513e1
xor ebx, ebx
mov r12d, ebx
jmp 0x140051401
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400513ff
test rdi, rdi
jne 0x1400513f4
lea r12d, [rdi + 1]
jmp 0x1400513ff
mov rdx, rdi
call fcn.14007da50
mov r12d, eax
xor ebx, ebx
test r12d, r12d
je 0x140051421
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14007df60
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.14007ec50
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14007cbd0
nop
lea rcx, [rsp + 0x38]
call fcn.14007ed30
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x140051474
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005146f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051507
call fcn.1400ccd64
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.14007ed30
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x1400514ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400514c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400514f5
call fcn.1400ccd64
movzx eax, sil
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400ccd40
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.1400d1a34
nop
call fcn.1400d1a34
nop
call fcn.1400d1a34
nop
call fcn.1400d1a34
int3