Function at 0x14001fc38
Capabilities:
Get file version info
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x338]
sub rsp, 0x438
mov rax, qword [0x140070070]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov qword [rbp - 0x70], r9
mov qword [rbp - 0x78], r8
mov rsi, rdx
mov rdi, rcx
mov r15, qword [rbp + 0x3a0]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x68], rcx
xor r14d, r14d
test rdx, rdx
je 0x1400200cb
cmp r14w, word [rdx]
je 0x1400200cb
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea r8d, [r14 + 3]
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400200cb
mov dword [r15], 1
mov r13d, r14d
call fcn.1400064a8
mov rcx, rax
test rax, rax
je 0x14002010b
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
call fcn.1400064a8
mov rcx, rax
test rax, rax
je 0x140020100
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test eax, eax
je 0x14001ff2c
mov ecx, ebx
call fcn.14002bbd4
mov r14, rax
mov r9, rax
mov r8d, ebx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
xor ebx, ebx
test eax, eax
je 0x14001ff1b
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x58], ebx
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x70]
lea rdx, [0x140061004]
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14001fda6
mov rdx, qword [rsp + 0x70]
movzx eax, word [rdx + 0xc]
movzx ecx, word [rdx + 0xe]
movzx r9d, word [rdx + 8]
movzx r8d, word [rdx + 0xa]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x60]
call fcn.14000e420
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x40], ebx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x78]
lea rdx, str.VarFileInfoTranslation
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov r15d, ebx
test dword [rsp + 0x40], 0xfffffffc
jbe 0x14001ff16
mov word [rbp + 0x110], bx
mov edx, r15d
mov rcx, qword [rsp + 0x78]
movzx eax, word [rcx + rdx*4 + 2]
movzx r9d, word [rcx + rdx*4]
mov dword [rsp + 0x20], eax
lea r8, str.StringFileInfo_04x_04xLegalCopyright
mov edx, 0x104
lea rcx, [rbp + 0x110]
call fcn.140022a84
mov qword [rbp - 0x80], rbx
mov dword [rsp + 0x5c], ebx
lea r9, [rsp + 0x5c]
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x110]
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14001fee0
mov rbx, qword [rbp - 0x80]
test rbx, rbx
jne 0x14001fe45
xor eax, eax
jmp 0x14001fe4d
mov rcx, rbx
call fcn.140032038
mov r8d, eax
mov rdx, rbx
mov rcx, qword [rbp - 0x78]
call fcn.1400060fc
mov rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x68]
call fcn.14000d3c8
nop
lea rcx, [rsp + 0x68]
call fcn.14000d1d8
mov rbx, qword [rsp + 0x68]
cmp dword [rbx - 0x10], 0
jl 0x14001fec4
lea rdx, str.microsoft
mov rcx, rbx
call fcn.14002e01c
test rax, rax
je 0x14001fe9f
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001fef4
cmp dword [rbx - 0x10], 0
jl 0x14001fec4
lea rdx, str.tencent
mov rcx, rbx
call fcn.14002e01c
test rax, rax
je 0x14001fec4
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001fef4
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
xor ebx, ebx
sub eax, 1
jg 0x14001fee0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r15d
mov eax, dword [rsp + 0x40]
shr eax, 2
cmp r15d, eax
jae 0x14001ff16
jmp 0x14001fdda
mov r13d, 1
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
xor ebx, ebx
sub eax, r13d
jg 0x14001ff16
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r15, qword [rsp + 0x48]
mov rcx, r14
call fcn.14002bbcc
test r13d, r13d
je 0x14001ff2e
mov ecx, ebx
jmp 0x14001ff41
xor ebx, ebx
mov rdx, qword [rbp - 0x70]
mov rcx, rsi
call fcn.140025f2c
mov ecx, ebx
test eax, eax
sete cl
mov dword [r15], ecx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov r8d, 0x40
lea rdx, [rbp - 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002006d
cmp dword [rsp + 0x44], 0x40
jne 0x14002006d
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp - 4]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov esi, 0x108
mov r8d, esi
lea rdx, [rbp]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002006d
cmp dword [rsp + 0x44], esi
jne 0x14002006d
mov eax, dword [rbp + 8]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x48]
call fcn.1400427f0
test rax, rax
je 0x140020042
movups xmm2, xmmword [rax]
movups xmmword [rbp - 0x68], xmm2
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov eax, dword [rax + 0x20]
mov dword [rbp - 0x48], eax
movq rdx, xmm2
shr rdx, 0x20
movdqa xmm0, xmm2
psrldq xmm0, 8
movq r8, xmm0
shr r8, 0x20
movd r9d, xmm1
inc r9d
movq rcx, xmm1
shr rcx, 0x20
movd dword [rsp + 0x38], xmm2
mov dword [rsp + 0x30], edx
psrldq xmm2, 8
movd dword [rsp + 0x28], xmm2
mov dword [rsp + 0x20], r8d
lea r8d, [rcx + 0x76c]
lea rdx, str.__04d__02d__02d__02d:_02d:_02d_GMT
lea rcx, [rsp + 0x50]
call fcn.14000e420
jmp 0x14002006d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.__04d__02d__02d__02d:_02d:_02d_GMT
lea rcx, [rsp + 0x50]
call fcn.14000e420
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14000cf68
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400200a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400200da
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x1400200da
lea rdx, [0x140061044]
mov rcx, rdi
call fcn.14000d338
mov rax, rdi
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.14002b930
add rsp, 0x438
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140006280
nop
mov ecx, 0x80004005
call fcn.140006280
int3