Function at 0x140012db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1400da880]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
lea rdx, [0x1400cc2c0]
lea rcx, [0x1400dc4b0]
call fcn.14000aa90
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140012e08
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.1400107d0
mov rcx, rax
call fcn.140011900
mov edx, 0x65
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140012e57
lea rdx, [0x1400cc318]
lea rcx, [0x1400dc4b0]
call fcn.14000aa90
mov rcx, rax
call fcn.140011900
jmp 0x140013265
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140012e87
lea rdx, [0x1400cc348]
lea rcx, [0x1400dc4b0]
call fcn.14000aa90
mov rcx, rax
call fcn.140011900
jmp 0x140013265
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
jne 0x140012eb8
lea rdx, [0x1400cc378]
lea rcx, [0x1400dc4b0]
call fcn.14000aa90
mov rcx, rax
call fcn.140011900
jmp 0x140013265
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea rdx, str.Taille_de_la_ressource_:
lea rcx, [0x1400dc4b0]
call fcn.14000aa90
mov rcx, rax
mov edx, edi
call fcn.140005f20
mov rcx, rax
lea rdx, str._octets.
call fcn.14000aa90
mov rcx, rax
call fcn.140011900
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 1
jb 0x140013291
cmp qword [rbx + 0x18], 7
jbe 0x140012f1e
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x1400ca2c0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x48]
call fcn.14000dbe0
nop
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140012f53
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x48]
call fcn.14000df10
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xd0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xc0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xd0], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140012fdd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012fd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013297
call fcn.140077c10
movdqa xmm0, xmmword [0x1400cc7a0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r15w
lea rdx, str.Chemin_complet_du_fichier_:
lea rcx, [0x1400dc4b0]
call fcn.14000aa90
lea rdx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 7
cmova rdx, qword [rbp + 0xc0]
mov r8, qword [rbp + 0xd0]
mov rcx, rax
call fcn.1400107d0
mov rcx, rax
call fcn.140011900
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call fcn.1400aa380
lea rdx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 7
cmova rdx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xd0]
lea r8, [rdx + rax*2]
lea rdx, [rbp + 0xc0]
cmova rdx, qword [rbp + 0xc0]
lea rcx, [rsp + 0x68]
call fcn.14000ad50
nop
cmp qword [rax + 0x18], 0xf
jbe 0x140013089
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400135f0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rbx
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x1400130f7
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400130f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001329d
call fcn.140077c10
movdqa xmm0, xmmword [0x1400cc7b0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x40], 6
je 0x140013125
lea rdx, [0x1400cc440]
jmp 0x1400131ae
mov r8, rdi
mov rdx, r14
lea rcx, [rbp - 0x50]
call fcn.140006120
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [0x1400cc4f0]
lea rdx, [0x1400cc4a0]
cmp dword [rbp + rcx - 0x40], 0
cmovne rdx, rax
lea rcx, [0x1400dc4b0]
call fcn.14000aa90
mov rcx, rax
call fcn.140011900
lea rcx, [rbp - 0x48]
call fcn.140008c00
test rax, rax
jne 0x1400131a7
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 8], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x40]
and eax, 0x17
mov dword [rbp + rcx - 0x40], eax
mov edx, dword [rbp + rcx - 0x3c]
and edx, eax
jne 0x1400132a3
lea rdx, str.Fin_de_lextraction_de_la_ressource.
lea rcx, [0x1400dc4b0]
call fcn.14000aa90
mov rcx, rax
call fcn.140011900
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], rbx
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.140005a80
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x54], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
call fcn.14007586c
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 7
jbe 0x140013265
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013260
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001328b
call fcn.140077c10
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140077bf0
mov rbx, qword [rsp + 0x238]
add rsp, 0x1f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400850bc
int3
call fcn.140001a90
nop
call fcn.1400850bc
nop
call fcn.1400850bc
int3
test dl, 4
je 0x1400132b1
lea rbx, str.ios_base::badbit_set
jmp 0x1400132c6
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140001bd0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.140002cf0
lea rdx, [0x1400d8450]
lea rcx, [rbp - 0x78]
call fcn.14007a020
int3