Function at 0x140003850
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.140006d10
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.140006a50
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.14000ca74
nop
test ebx, 6
jne 0x140003986
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000391e
mov rcx, qword [rdi]
call fcn.1400145e0
test eax, eax
je 0x140003986
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.14000a6b0
mov rcx, rax
call fcn.14000a990
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, [0x14003d520]
call fcn.140016c28
xor al, al
jmp 0x140003bb3
movzx edx, r14w
mov r8d, 0xa
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400039c4
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 0x14000394a
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x1400039fe
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 0x14000394a
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 0x140003a43
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 0x14000394a
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x80]
call fcn.14000f9b0
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.140005740
nop
cmp qword [rbp + 0x108], 0
jne 0x140003acd
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.14000a6b0
mov rcx, rax
call fcn.14000a990
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, [0x14003d520]
call fcn.140016c28
xor bl, bl
jmp 0x140003b33
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.1400058e0
lea rcx, [rbp + 0x88]
call fcn.140008a30
test rax, rax
jne 0x140003b31
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 0x140003bd9
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.140006a50
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.14000ca74
nop
movzx eax, bl
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14000d390
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test dl, 4
je 0x140003be7
lea rbx, [0x14003d3b0]
jmp 0x140003bfc
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, [0x140042628]
lea rcx, [rsp + 0x40]
call fcn.14000f210
int3