Function at 0x140002ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rdi, r9
mov rbx, r8
mov r14d, edx
mov rsi, rcx
lea rcx, [rbp + 0x90]
call fcn.140004890
nop
mov r9, rbx
cmp word [rbx], 0
je 0x140002b1b
nop dword [rax]
add r9, 2
cmp word [r9], 0
jne 0x140002b10
mov r8, rbx
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x90]
call fcn.1400051e0
nop
mov r9, rdi
cmp word [rdi], 0
je 0x140002b4b
nop dword [rax + rax]
add r9, 2
cmp word [r9], 0
jne 0x140002b40
mov r8, rdi
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x90]
call fcn.1400051e0
nop
lea r8, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova r8, qword [rbp + 0x70]
movzx edx, r14w
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x140002c5a
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002c5a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test rdi, rdi
je 0x140002c5a
test eax, eax
je 0x140002c5a
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rdx, qword [rbp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140005000
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
cmp qword [rbp - 0x38], 0
je 0x140002c4f
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x48]
call fcn.140004f40
test rax, rax
jne 0x140002c4f
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rsp + 0x40]
call fcn.140002d30
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x140002c98
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008190
movdqa xmm0, xmmword [0x14000b150]
movdqu xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], 0
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x140002cea
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ce5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ce5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008190
movdqa xmm0, xmmword [0x14000b150]
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
lea rcx, [rbp + 0x90]
call fcn.1400047a0
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140008170
add rsp, 0x220
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret