Function at 0x140002250
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 [0x140037080]
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.140004eb0
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.140004bf0
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.140007bac
nop
test ebx, 6
jne 0x1400023a9
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140002322
mov rcx, qword [rdi]
call fcn.14000f2b4
test eax, eax
je 0x1400023a9
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.140006610
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140006480
movzx edx, al
mov rcx, rbx
call fcn.140006fd0
mov rcx, rbx
call fcn.140005e10
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, str.pause
call fcn.14000f4f0
xor al, al
jmp 0x1400026ff
movzx edx, r14w
mov r8d, 0xa
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140002440
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.
call fcn.140006610
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140006480
movzx edx, al
mov rcx, rbx
call fcn.140006fd0
mov rcx, rbx
call fcn.140005e10
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, str.pause
call fcn.14000f4f0
xor al, al
jmp 0x1400026ff
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x1400024cf
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.
call fcn.140006610
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140006480
movzx edx, al
mov rcx, rbx
call fcn.140006fd0
mov rcx, rbx
call fcn.140005e10
lea ebx, [r14 + 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, str.pause
call fcn.14000f4f0
xor al, al
jmp 0x1400026ff
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 0x14000256a
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.
call fcn.140006610
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140006480
movzx edx, al
mov rcx, rbx
call fcn.140006fd0
mov rcx, rbx
call fcn.140005e10
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, str.pause
call fcn.14000f4f0
xor al, al
jmp 0x1400026ff
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x80]
call fcn.14000a9a0
mov r8d, 0x20
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.140003c20
nop
cmp qword [rbp + 0x108], 0
jne 0x140002619
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.140006610
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140006480
movzx edx, al
mov rcx, rbx
call fcn.140006fd0
mov rcx, rbx
call fcn.140005e10
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, str.pause
call fcn.14000f4f0
xor bl, bl
jmp 0x14000267f
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.140003dc0
lea rcx, [rbp + 0x88]
call fcn.140005be0
test rax, rax
jne 0x14000267d
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 0x140002725
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.140004bf0
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.140007bac
nop
movzx eax, bl
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140008430
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test dl, 4
je 0x140002733
lea rbx, str.ios_base::badbit_set
jmp 0x140002748
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 + 0x30]
call fcn.1400013c0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140001bb0
lea rdx, [0x1400359f8]
lea rcx, [rsp + 0x40]
call fcn.14000a204
int3