Function at 0x14001dfd0
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rsi, rdx
xor ecx, ecx
mov edx, 0x228
mov r15d, r9d
mov rbp, r8
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14001e054
xor edx, edx
mov r8d, 0x124
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x14001e087
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
xor ecx, ecx
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rdi + 0x50], rax
test rax, rax
jne 0x14001e07b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r12d, 2
mov eax, r12d
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, r15d
mov qword [rdi + 0x38], 0xffffffffffffffff
and eax, 0x3ffffff7
xor r13d, r13d
mov r12d, 1
sub eax, r12d
je 0x14001e171
sub eax, r12d
je 0x14001e0f5
cmp eax, 2
jne 0x14001e1e1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rdi + 8]
mov rcx, rax
mov dword [rsp + 0x28], r13d
mov r8, rbx
mov dword [rsp + 0x20], r13d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14001e137
mov qword [rdi + 8], rsi
jmp 0x14001e141
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rsi
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], r8d
test r15d, r15d
jns 0x14001e123
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x14001e129
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14001e5cb
mov rsi, qword [rdi + 8]
mov dword [rdi], 2
mov r9d, r12d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rdi + 0x14], eax
cmp eax, 0xffffffff
jne 0x14001e1e1
mov rcx, rdi
mov r12d, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.14001dee0
jmp 0x14001e05a
mov qword [rdi + 8], rsi
test rsi, rsi
jne 0x14001e1da
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bp
lea r8d, [rsi + 0xa]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14001e5c5
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001e5c5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rdi + 8], rax
test rax, rax
je 0x14001e5b2
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov qword [rdi + 0x18], rbp
mov dword [rdi], r12d
test r15b, 8
je 0x14001e22e
xor eax, eax
mov qword [rdi + 0x60], rax
mov qword [rdi + 0x68], rax
mov qword [rdi + 0x70], rax
mov qword [rdi + 0x78], rax
mov qword [rdi + 0x80], rax
mov word [rdi + 0x88], ax
mov eax, 8
mov edx, dword [rdi + 0x14]
mov word [rdi + 0x66], ax
mov eax, dword [rdi]
or eax, 8
mov dword [rdi + 0x86], edx
mov qword [rdi + 0x9a], rdx
mov qword [rdi + 0x38], r13
jmp 0x14001e563
test byte [rdi], r12b
jne 0x14001e25d
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x40]
mov r9d, 2
mov qword [rsp + 0x40], r13
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [rdi + 0x14]
mov r13, qword [rsp + 0x40]
sub r13, rax
jmp 0x14001e265
mov r13, qword [rdi + 0x18]
mov qword [rdi + 0x20], r13
mov r15d, 0xffff
mov edx, 0x404
cmp r13, r15
cmovl r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x14001e5b2
mov r14d, 4
cmp r15, r14
jle 0x14001e2ed
nop word [rax + rax]
lea rcx, [r14 + 0x400]
mov eax, 0x404
cmp rcx, r15
mov r14, r15
mov rbp, r13
mov esi, r13d
cmovle r14, rcx
sub rbp, r14
sub esi, ebp
cmp r14, rax
cmova esi, eax
test byte [rdi], r12b
jne 0x14001e321
mov edx, dword [rdi + 0x14]
lea r8, [rsp + 0x40]
mov rcx, qword [rdi + 8]
add rdx, rbp
xor r9d, r9d
mov qword [rsp + 0x40], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14001e325
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test byte [rdi], r12b
jne 0x14001e52a
mov edx, dword [rdi + 0x14]
lea r8, [rsp + 0x40]
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov qword [rsp + 0x40], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor r13d, r13d
jmp 0x14001e531
mov qword [rdi + 0x20], rbp
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.14001c4c0
test eax, eax
je 0x14001e2ed
lea edx, [rsi - 3]
movsxd rax, edx
test edx, edx
js 0x14001e368
mov rcx, rax
dec edx
dec rax
cmp byte [rax + rbx], 0x50
jne 0x14001e363
cmp byte [rcx + rbx], 0x4b
jne 0x14001e363
cmp byte [rax + rbx + 2], 5
jne 0x14001e363
cmp byte [rax + rbx + 3], 6
je 0x14001e376
test rax, rax
jns 0x14001e341
cmp r14, r15
jl 0x14001e2a0
jmp 0x14001e2ed
movsxd rax, edx
cmp byte [rax + rbx - 0x14], 0x50
jne 0x14001e3a0
cmp byte [rax + rbx - 0x13], 0x4b
jne 0x14001e3a0
cmp byte [rax + rbx - 0x12], 6
jne 0x14001e3a0
cmp byte [rax + rbx - 0x11], 7
jne 0x14001e3a0
mov rbp, qword [rax + rbx - 0xc]
movzx r15d, r12b
jmp 0x14001e3a6
add rbp, rax
xor r15b, r15b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test byte [rdi], r12b
jne 0x14001e3d3
mov edx, dword [rdi + 0x14]
lea r8, [rsp + 0x40]
mov rcx, qword [rdi + 8]
add rdx, rbp
xor r9d, r9d
mov qword [rsp + 0x40], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
jmp 0x14001e3d7
mov qword [rdi + 0x20], rbp
mov rcx, rdi
call fcn.14001c640
mov rcx, rdi
test r15b, r15b
je 0x14001e40d
call fcn.14001c720
mov rcx, rdi
mov r14, rax
call fcn.14001c640
mov rcx, rdi
call fcn.14001c640
mov rcx, rdi
mov esi, eax
call fcn.14001c640
mov ebx, eax
jmp 0x14001e423
call fcn.14001c570
mov rcx, rdi
movzx esi, ax
call fcn.14001c570
movzx ebx, ax
xor r14d, r14d
mov rcx, rdi
test r15b, r15b
je 0x14001e432
call fcn.14001c720
jmp 0x14001e43a
call fcn.14001c570
movzx eax, ax
mov qword [rdi + 0x28], rax
mov rcx, rdi
test r15b, r15b
je 0x14001e44d
call fcn.14001c720
jmp 0x14001e455
call fcn.14001c570
movzx eax, ax
cmp dword [rdi + 0x10], 0
jne 0x14001e543
cmp rax, qword [rdi + 0x28]
jne 0x14001e517
test ebx, ebx
jne 0x14001e517
test esi, esi
jne 0x14001e517
mov rcx, rdi
test r15b, r15b
je 0x14001e48b
call fcn.14001c720
mov rbx, rax
jmp 0x14001e492
call fcn.14001c640
mov ebx, eax
mov rcx, rdi
test r15b, r15b
je 0x14001e4a1
call fcn.14001c720
jmp 0x14001e4a8
call fcn.14001c640
mov eax, eax
mov qword [rdi + 0x48], rax
test r15b, r15b
je 0x14001e4e6
mov edx, dword [rdi + 0x14]
lea rcx, [r14 + 0x34]
add rax, rdx
add rax, rbx
add rcx, rax
test byte [rdi], r12b
jne 0x14001e4e2
add rdx, rcx
lea r8, [rsp + 0x40]
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov qword [rsp + 0x40], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
jmp 0x14001e4e6
mov qword [rdi + 0x20], rcx
mov rcx, rdi
call fcn.14001c570
cmp dword [rdi + 0x10], 0
movzx eax, ax
mov dword [rdi + 0x30], eax
jne 0x14001e543
mov edx, dword [rdi + 0x14]
mov r8, qword [rdi + 0x48]
lea rcx, [rdx + rbp]
lea rax, [r8 + rbx]
cmp rcx, rax
jb 0x14001e543
sub edx, r8d
sub edx, ebx
add edx, ebp
jmp 0x14001e570
mov rcx, rdi
mov r12d, 8
call fcn.14001dee0
jmp 0x14001e05a
xor r13d, r13d
mov qword [rdi + 0x20], r13
mov rcx, rdi
call fcn.14001c570
mov ecx, 0x8b1f
cmp ax, cx
je 0x14001e556
mov rcx, rdi
mov r12d, 6
call fcn.14001dee0
jmp 0x14001e05a
mov edx, dword [rdi + 0x14]
mov eax, dword [rdi]
mov qword [rdi + 0x48], 3
or eax, 4
mov dword [rdi + 0x10], r13d
mov dword [rdi], eax
mov qword [rdi + 0x28], r12
mov dword [rdi + 0x34], edx
mov ecx, 0x103
lea rdx, [rdi + 0x120]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, eax
test rax, rax
je 0x14001e596
cmp byte [rax + rdi + 0x11f], 0x5c
je 0x14001e5a0
mov word [rax + rdi + 0x120], 0x5c
mov rax, qword [rsp + 0x80]
mov qword [rax], rdi
xor eax, eax
jmp 0x14001e05d
mov rcx, rdi
mov r12d, 2
call fcn.14001dee0
jmp 0x14001e05a
mov r12d, 4
mov rcx, rdi
call fcn.14001dee0
jmp 0x14001e05a