Function at 0x18001a3e0
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov qword [rsp + 0x118], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, r8
mov r12, rdx
mov r13, rcx
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r14 + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x18001a451
xor eax, eax
jmp 0x18001aabf
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
je 0x18001aabf
mov ecx, 8
call fcn.180058910
test rax, rax
je 0x18001a488
lea rcx, [rsp + 0xd0]
mov qword [rax], rcx
jmp 0x18001a48b
mov rax, r14
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xf8], r14
lea r9, [rsp + 0xd0]
lea r8, [0x180019fd0]
mov edx, 0xe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov ecx, 8
call fcn.180058910
test rax, rax
je 0x18001a4e4
lea rcx, [rsp + 0xa0]
mov qword [rax], rcx
jmp 0x18001a4e7
mov rax, r14
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
lea r9, [rsp + 0xa0]
lea r8, [0x180019fd0]
mov edx, 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov ecx, 8
call fcn.180058910
test rax, rax
je 0x18001a53d
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
jmp 0x18001a540
mov rax, r14
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.18001c8f0
mov qword [rsp + 0x90], rax
mov byte [rax + 0x1d], 1
mov rax, qword [rsp + 0x90]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x90]
mov qword [rax], rax
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x98], r14
mov r15d, 0x409
mov r9d, r15d
mov edx, 0xe
lea r8d, [rdx + 0x72]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x18001a600
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
movzx ebx, r14w
cmp r14w, word [rax + 4]
je 0x18001a600
nop dword [rax]
movzx ecx, bx
imul rcx, rcx, 0xe
movzx ecx, word [rcx + rdi + 0x12]
mov dword [rsp + 0x40], ecx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x60]
call fcn.18001b010
inc bx
cmp bx, word [rdi + 4]
jne 0x18001a5d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov rsi, rax
test rax, rax
jne 0x18001a714
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm1
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x60]
call fcn.18001c650
mov rcx, qword [rsp + 0x90]
call fcn.18005821c
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r14
mov rcx, qword [rsp + 0x60]
call fcn.18005821c
nop
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x18001a6b0
call fcn.18005821c
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
mov rcx, qword [rsp + 0xa0]
call fcn.18005821c
nop
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x18001a6e8
call fcn.18005821c
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xf8], r14
mov rcx, qword [rsp + 0xd0]
call fcn.18005821c
xor eax, eax
jmp 0x18001aabf
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov ecx, eax
call fcn.180058204
mov rbx, rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x168], r14d
test rax, rax
je 0x18001a759
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x168]
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18001a9b8
cmp edi, dword [rsp + 0x168]
jne 0x18001a9b8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r15w
mov r9d, 0x80
mov r8, rsi
mov rdx, rbx
mov rcx, r13
call fcn.180019ff0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
jne 0x18001a8b8
mov rcx, rbx
call fcn.180058a10
nop
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x50], rcx
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x60]
call fcn.18001c650
mov rcx, qword [rsp + 0x90]
call fcn.18005821c
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r14
mov rcx, qword [rsp + 0x60]
call fcn.18005821c
nop
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x18001a854
call fcn.18005821c
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
mov rcx, qword [rsp + 0xa0]
call fcn.18005821c
nop
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x18001a88c
call fcn.18005821c
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xf8], r14
mov rcx, qword [rsp + 0xd0]
call fcn.18005821c
xor eax, eax
jmp 0x18001aabf
mov rcx, rbx
call fcn.180058a10
nop
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x50], rcx
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x60]
call fcn.18001c650
mov rcx, qword [rsp + 0x90]
call fcn.18005821c
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r14
mov rcx, qword [rsp + 0x60]
call fcn.18005821c
nop
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x18001a951
call fcn.18005821c
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
mov rcx, qword [rsp + 0xa0]
call fcn.18005821c
nop
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x18001a989
call fcn.18005821c
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xf8], r14
mov rcx, qword [rsp + 0xd0]
call fcn.18005821c
mov eax, 1
jmp 0x18001aabf
mov edx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
nop
mov rcx, rbx
call fcn.180058a10
nop
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x50], rcx
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x60]
call fcn.18001c650
mov rcx, qword [rsp + 0x90]
call fcn.18005821c
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r14
mov rcx, qword [rsp + 0x60]
call fcn.18005821c
nop
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x18001aa60
call fcn.18005821c
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
mov rcx, qword [rsp + 0xa0]
call fcn.18005821c
nop
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x18001aa98
call fcn.18005821c
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xf8], r14
mov rcx, qword [rsp + 0xd0]
call fcn.18005821c
xor eax, eax
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret