Function at 0x180019da0
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 0x180019e11
xor eax, eax
jmp 0x18001a47f
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, r12
call fcn.1800690a0
mov rsi, rax
test rax, rax
je 0x18001a47f
mov ecx, 8
call fcn.180058470
test rax, rax
je 0x180019e4a
lea rcx, [rsp + 0xd0]
mov qword [rax], rcx
jmp 0x180019e4d
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, [0x180019990]
mov edx, 0xe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov ecx, 8
call fcn.180058470
test rax, rax
je 0x180019ea6
lea rcx, [rsp + 0xa0]
mov qword [rax], rcx
jmp 0x180019ea9
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, [0x180019990]
mov edx, 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov ecx, 8
call fcn.180058470
test rax, rax
je 0x180019eff
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
jmp 0x180019f02
mov rax, r14
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.18001c2f0
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 0x180019fc0
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 0x180019fc0
nop dword [rax + 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.18001aa10
inc bx
cmp bx, word [rdi + 4]
jne 0x180019f90
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 0x18001a0d4
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.18001c050
mov rcx, qword [rsp + 0x90]
call fcn.180057d7c
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r14
mov rcx, qword [rsp + 0x60]
call fcn.180057d7c
nop
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x18001a070
call fcn.180057d7c
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
mov rcx, qword [rsp + 0xa0]
call fcn.180057d7c
nop
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x18001a0a8
call fcn.180057d7c
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xf8], r14
mov rcx, qword [rsp + 0xd0]
call fcn.180057d7c
xor eax, eax
jmp 0x18001a47f
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov ecx, eax
call fcn.180057d74
mov rbx, rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x168], r14d
test rax, rax
je 0x18001a119
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 0x18001a378
cmp edi, dword [rsp + 0x168]
jne 0x18001a378
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.1800199b0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
jne 0x18001a278
mov rcx, rbx
call fcn.180058570
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.18001c050
mov rcx, qword [rsp + 0x90]
call fcn.180057d7c
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r14
mov rcx, qword [rsp + 0x60]
call fcn.180057d7c
nop
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x18001a214
call fcn.180057d7c
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
mov rcx, qword [rsp + 0xa0]
call fcn.180057d7c
nop
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x18001a24c
call fcn.180057d7c
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xf8], r14
mov rcx, qword [rsp + 0xd0]
call fcn.180057d7c
xor eax, eax
jmp 0x18001a47f
mov rcx, rbx
call fcn.180058570
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.18001c050
mov rcx, qword [rsp + 0x90]
call fcn.180057d7c
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r14
mov rcx, qword [rsp + 0x60]
call fcn.180057d7c
nop
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x18001a311
call fcn.180057d7c
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
mov rcx, qword [rsp + 0xa0]
call fcn.180057d7c
nop
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x18001a349
call fcn.180057d7c
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xf8], r14
mov rcx, qword [rsp + 0xd0]
call fcn.180057d7c
mov eax, 1
jmp 0x18001a47f
mov edx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
nop
mov rcx, rbx
call fcn.180058570
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.18001c050
mov rcx, qword [rsp + 0x90]
call fcn.180057d7c
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r14
mov rcx, qword [rsp + 0x60]
call fcn.180057d7c
nop
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x18001a420
call fcn.180057d7c
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
mov rcx, qword [rsp + 0xa0]
call fcn.180057d7c
nop
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x18001a458
call fcn.180057d7c
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xf8], r14
mov rcx, qword [rsp + 0xd0]
call fcn.180057d7c
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