Function at 0x140002050
Capabilities:
Check os version
Extract resource via kernel32 functions
Set current directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f8]
sub rsp, 0x4f8
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov r12d, r9d
mov r15, r8
mov r14, rdx
mov rdi, rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x64]
call fcn.140019fd0
mov dword [rsp + 0x60], 0x11c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea esi, [r13 + 1]
test eax, eax
je 0x140001c71
cmp dword [rsp + 0x64], 6
ja 0x140001b83
jne 0x140001c25
cmp dword [rsp + 0x68], 2
jb 0x140001c25
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140001c25
mov r8d, 0x10
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140001c25
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001c25
movups xmm0, xmmword [0x140034ab8]
movups xmmword [rbp + 0x1a0], xmm0
movups xmm1, xmmword [0x140034ac8]
movups xmmword [rbp + 0x1b0], xmm1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001c25
lea rcx, [rax + 6]
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140001c25
cmp word [rbx + 2], r13w
jbe 0x140001c25
movzx edx, word [rbx + 0x32]
movzx eax, word [rbx + 0x30]
movzx ecx, word [rbx + 0x36]
mov dword [rsp + 0x64], edx
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140001c71
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp + 0x84]
call fcn.140019fd0
mov dword [rbp + 0x80], 0x11c
lea rcx, [rbp + 0x80]
call rbx
cmp dword [rsp + 0x64], 6
ja 0x140001cb2
jne 0x140001c80
cmp dword [rsp + 0x68], esi
jae 0x140001cb2
mov r9d, esi
lea r8, [0x1400344e8]
lea rdx, [0x140034500]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, esi
jne 0x140001f74
lea rcx, [0x140034580]
call fcn.140002ee0
jmp 0x140001f74
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x1d0]
call fcn.140019fd0
mov r8d, 0x104
lea rdx, [rbp + 0x1d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001e5f
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r13w
lea rax, [rbp + 0x1d0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r13w
jne 0x140001d10
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x30]
call fcn.140002380
nop
lea rdx, [0x1400345ac]
lea rcx, [rsp + 0x30]
call fcn.1400020d0
mov r8, rax
mov qword [rbp + 0x1b0], r13
mov qword [rbp + 0x1b8], r13
mov qword [rbp + 0x1b0], r13
mov qword [rbp + 0x1b8], 7
mov word [rbp + 0x1a0], r13w
cmp qword [rsp + 0x40], rax
cmovb r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rbp + 0x1a0]
call fcn.140002380
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0x30]
call fcn.140002310
movups xmm0, xmmword [rbp + 0x1a0]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rbp + 0x1b0]
movups xmmword [rsp + 0x40], xmm1
mov qword [rbp + 0x1b0], r13
mov qword [rbp + 0x1b8], 7
mov word [rbp + 0x1a0], r13w
and esi, 0xfffffffe
mov dword [rsp + 0x20], esi
mov qword [rbp + 0x1b0], r13
mov qword [rbp + 0x1b8], 7
mov word [rbp + 0x1a0], r13w
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140001e4b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001f99
call fcn.140018460
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r13w
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1a0], xmm0
mov qword [rbp + 0x1b0], r13
mov ecx, 0x28
call fcn.140018424
mov qword [rbp + 0x1b8], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rbp + 0x1c0], r13
lea r8, [0x1400345b0]
mov rdx, rdi
lea rcx, [rbp + 0x1a0]
call fcn.140009f20
test rax, rax
je 0x140001ee6
lea rdx, str.PdfEditorMain
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001ee6
mov r9d, r12d
mov r8, r15
mov rdx, r14
mov rcx, rdi
call rax
mov ebx, eax
lea rcx, [rbp + 0x1a0]
call fcn.140009460
mov eax, ebx
jmp 0x140001f76
lea rcx, [rbp + 0x1a0]
call fcn.140009460
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov ecx, 0x28
call fcn.140018424
mov qword [rsp + 0x48], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rsp + 0x50], r13
lea r8, str.2345PdfApp.dll
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140009f20
test rax, rax
je 0x140001f6a
lea rdx, str.PdfReaderMain
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001f6a
mov r9d, r12d
mov r8, r15
mov rdx, r14
mov rcx, rdi
call rax
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.140009460
mov eax, ebx
jmp 0x140001f76
lea rcx, [rsp + 0x30]
call fcn.140009460
xor eax, eax
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140018400
add rsp, 0x4f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14001c594
int3
jmp 0x140001af0