Function at 0x140003950
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 - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140044080]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, r8
mov r14d, edx
mov rsi, rcx
mov rdx, r8
lea rcx, [rsp + 0x68]
call fcn.140006cb0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ebx, dword [rdx + rax + 0x10]
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x64], edx
lea rcx, [rsp + 0x78]
call fcn.1400069f0
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x64], edx
lea r15, vtable.std::ios_base.0
mov qword [rbp + 0x18], r15
lea rcx, [rbp + 0x18]
call fcn.14000c894
nop
test ebx, 6
jne 0x140003a86
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140003a1e
mov rcx, qword [rdi]
call fcn.140014400
test eax, eax
je 0x140003a86
mov ebx, 4
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.ERRO:_Ao_excluir_o_arquivo_existente.
call fcn.14000a4d0
mov rcx, rax
call fcn.14000a7b0
mov ebx, 8
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rcx, [0x14003d518]
call fcn.140016a48
xor al, al
jmp 0x140003cb3
movzx edx, r14w
mov r8d, 0xa
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140003ac4
lea ebx, [rax + 4]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.ERRO:_Ao_localizar_o_recurso.
jmp 0x140003a4a
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x140003afe
lea ebx, [rax + 4]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.ERRO:_Ao_carregar_o_recurso.
jmp 0x140003a4a
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x140003b43
lea ebx, [rax + 4]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.ERRO:_Ao_obter_um_ponteiro_para_os_dados_do_recurso.
jmp 0x140003a4a
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x80]
call fcn.14000f7d0
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.1400056e0
nop
cmp qword [rbp + 0x108], 0
jne 0x140003bcd
mov ebx, 4
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.ERRO:_Ao_abrir_o_arquivo_de_destino.
call fcn.14000a4d0
mov rcx, rax
call fcn.14000a7b0
mov ebx, 8
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rcx, [0x14003d518]
call fcn.140016a48
xor bl, bl
jmp 0x140003c33
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.140005880
lea rcx, [rbp + 0x88]
call fcn.1400089d0
test rax, rax
jne 0x140003c31
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0xc8], 0
cmovne eax, edx
or eax, dword [rbp + rcx + 0x90]
and eax, 0x17
mov dword [rbp + rcx + 0x90], eax
mov edx, dword [rbp + rcx + 0x94]
and edx, eax
jne 0x140003cd9
mov bl, 1
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x7c], edx
lea rcx, [rbp + 0x88]
call fcn.1400069f0
mov rcx, qword [rbp + 0x80]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rdx + 0x80], rax
mov rcx, qword [rbp + 0x80]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rbp + rdx + 0x7c], r8d
mov qword [rbp + 0x128], r15
lea rcx, [rbp + 0x128]
call fcn.14000c894
nop
movzx eax, bl
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14000d1b0
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test dl, 4
je 0x140003ce7
lea rbx, [0x14003d3b0]
jmp 0x140003cfc
test dl, 2
lea rbx, [0x14003d3c8]
lea rax, [0x14003d3e0]
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001440
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140001d30
lea rdx, [0x1400425c8]
lea rcx, [rsp + 0x40]
call fcn.14000f030
int3