Function at 0x140002c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov r15, rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], 0
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
movzx edx, cx
mov r8d, 0x100
lea rcx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
mov rdx, rax
lea rcx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
mov rdx, rbx
lea rcx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140005200
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov r12, qword [rsp + 0x78]
test r12, r12
je 0x140002d0b
movabs rax, 0x7fffffffffffffff
cmp r12, rax
ja 0x1400031cb
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140005e30
mov rsi, qword [rsp + 0x40]
xor edi, edi
mov r14, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x38]
mov r13, qword [rbp - 0x80]
test r12, r12
je 0x140002d6e
lea rax, [rsp + 0x68]
cmp r13, 0x10
cmovae rax, r14
movzx ecx, byte [rax + rdi]
mov byte [rbp + 0x120], cl
cmp rbx, rsi
je 0x140002d48
mov byte [rbx], cl
inc rbx
mov qword [rsp + 0x38], rbx
jmp 0x140002d66
lea r8, [rbp + 0x120]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140007c00
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
inc rdi
cmp rdi, r12
jb 0x140002d20
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.140005400
nop
lea rdx, str.Path:
lea rcx, [0x1400414c0]
call fcn.140006960
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rcx, rax
call fcn.140007950
mov rdi, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.1400066a0
movzx edx, al
mov rcx, rdi
call fcn.1400077a0
mov rcx, rdi
call fcn.140006280
mov r8d, 0x20
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x70]
call fcn.140004de0
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x60], 6
je 0x140002fa6
lea rdx, str.Failed_to_open_output_file
lea rcx, [0x140041640]
call fcn.140006960
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.1400066a0
movzx edx, al
mov rcx, rbx
call fcn.1400077a0
mov rcx, rbx
call fcn.140006280
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140004b30
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x38]
call fcn.14000c484
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140002edb
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ed6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000322b
call fcn.14000d07c
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140002f2a
sub rsi, rcx
mov rax, rcx
cmp rsi, 0x1000
jb 0x140002f21
add rsi, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003231
mov rdx, rsi
call fcn.14000d07c
nop
cmp r13, 0x10
jb 0x140002f62
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140002f59
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400031bf
mov rcx, r14
call fcn.14000d07c
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x140002f9c
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140002f97
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400031c5
mov rcx, r8
call fcn.14000d07c
mov eax, 1
jmp 0x140003194
mov r13, qword [rsp + 0x30]
mov r12, r13
sub rbx, r13
je 0x140002ff3
mov rax, rbx
mov r15, rbx
nop dword [rax]
mov edi, 0x400
cmp rbx, rdi
cmovb rdi, rax
mov r8, rdi
mov rdx, r12
lea rcx, [rbp - 0x70]
call fcn.140004f80
add r12, rdi
mov rbx, r15
sub rbx, rdi
mov rax, rbx
mov r15, rbx
jne 0x140002fc0
mov r15, qword [rbp + 0x128]
lea rcx, [rbp - 0x68]
call fcn.140005cc0
test rax, rax
jne 0x140003033
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x28], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x60]
and eax, 0x17
mov dword [rbp + rcx - 0x60], eax
mov edx, dword [rbp + rcx - 0x5c]
and edx, eax
jne 0x1400031d1
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140004b30
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x38]
call fcn.14000c484
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400030d7
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400030d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000322b
call fcn.14000d07c
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], bl
test r13, r13
je 0x140003124
sub rsi, r13
mov rax, r13
cmp rsi, 0x1000
jb 0x140003118
add rsi, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003231
mov rdx, rsi
mov rcx, r13
call fcn.14000d07c
nop
mov rax, qword [rbp - 0x80]
cmp rax, 0x10
jb 0x14000315c
lea rdx, [rax + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140003153
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400031bf
mov rcx, r14
call fcn.14000d07c
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x140003192
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x14000318d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400031c5
mov rcx, r8
call fcn.14000d07c
xor eax, eax
mov byte [r15], 0
mov qword [r15 + 0x18], 0xf
mov qword [r15 + 0x10], rbx
mov rbx, qword [rsp + 0x230]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140015118
nop
call fcn.140015118
nop
call fcn.140005e10
nop
test dl, 4
je 0x1400031df
lea rbx, [0x140036498]
jmp 0x1400031f4
test dl, 2
lea rbx, [0x1400364b0]
lea rax, [0x1400364c8]
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0xa0]
call fcn.1400014c0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xb0]
call fcn.140001f60
lea rdx, [0x14003e408]
lea rcx, [rbp + 0xb0]
call fcn.14000ec40
nop
call fcn.140015118
nop
call fcn.140015118
int3