Function at 0x1402b6fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14049e048]
xor rax, rsp
mov qword [rbp - 0x10], rax
and qword [rbp - 0x40], 0
mov r15d, r8d
mov r12, rdx
mov qword [rcx + 8], r9
mov rdi, rcx
call fcn.1402b7e14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rdi + 0x70], rax
mov rbx, rax
test rax, rax
je 0x1402b7078
mov qword [rdi + 0x68], rax
mov dword [rdi + 0x1c], r15d
movzx ecx, word [rax]
mov eax, 0x4947
sub ecx, eax
jne 0x1402b703c
movzx ecx, byte [rbx + 2]
sub ecx, 0x46
test ecx, ecx
je 0x1402b709e
movzx ecx, word [rbx + 3]
mov eax, CRichEditCtrl::SetWordCharFormat
mov edx, 0x61
sub ecx, eax
jne 0x1402b7058
movzx ecx, byte [rbx + 5]
sub ecx, edx
test ecx, ecx
jne 0x1402b7073
movzx ecx, word [rbx + 3]
mov eax, 0x3938
sub ecx, eax
jne 0x1402b706f
movzx ecx, byte [rbx + 5]
sub ecx, edx
test ecx, ecx
je 0x1402b709e
and qword [rdi + 0x70], 0
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140088c50
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rsi, [rbx + 6]
mov dword [rdi + 0x28], 1
mov qword [rdi + 0x78], rsi
movzx ecx, byte [rsi + 4]
mov eax, ecx
and eax, 0xffffff80
cmp eax, 0x80
jne 0x1402b710f
movsd xmm0, qword [0x140364f68]
and ecx, 7
inc ecx
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
mulsd xmm0, qword [0x140368168]
cvttsd2si eax, xmm0
mov dword [rdi + 0x24], eax
movzx edx, byte [rsi + 5]
lea rcx, [rbx + rdx*2]
movzx r8d, byte [rdx + rcx + 0xe]
movzx eax, byte [rdx + rcx + 0xf]
shl eax, 0x10
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + rcx + 0xd]
or r8d, eax
mov dword [rdi + 0x18], r8d
movzx eax, word [rsi]
mov r13d, dword [rdi + 0x24]
add r13d, 0xd
mov dword [rdi + 0x10], eax
movzx eax, word [rsi + 2]
xor ebx, ebx
mov dword [rdi + 0x14], eax
mov dword [rdi + 0x20], r13d
mov rcx, rdi
call fcn.1402b6e2c
mov esi, eax
cmp eax, 3
je 0x1402b7184
lea ecx, [rsi - 4]
cmp ecx, 1
jbe 0x1402b7184
test esi, esi
je 0x1402b722d
cmp esi, 6
je 0x1402b722d
mov rcx, rdi
call fcn.1402b6e90
test eax, eax
jle 0x1402b722d
mov edx, dword [rdi + 0x20]
add edx, eax
cmp edx, r15d
ja 0x1402b722d
mov rcx, rdi
mov dword [rdi + 0x20], edx
call fcn.1402b6e2c
mov esi, eax
cmp eax, 3
jne 0x1402b7139
jmp 0x1402b7195
test esi, esi
je 0x1402b722d
cmp esi, 6
je 0x1402b722d
mov rcx, rdi
call fcn.1402b6e90
test eax, eax
jle 0x1402b722d
cmp esi, 3
jne 0x1402b720f
mov rcx, rdi
call fcn.1402b6e90
test eax, eax
jle 0x1402b722d
mov edx, dword [rdi + 0x20]
add edx, eax
cmp edx, r15d
ja 0x1402b722d
mov rcx, rdi
mov dword [rdi + 0x20], edx
call fcn.1402b6e2c
cmp eax, 5
je 0x1402b7206
cmp eax, 4
je 0x1402b7206
test eax, eax
je 0x1402b722d
cmp eax, 6
je 0x1402b722d
mov rcx, rdi
call fcn.1402b6e90
test eax, eax
jle 0x1402b722d
mov edx, dword [rdi + 0x20]
add edx, eax
cmp edx, r15d
ja 0x1402b722d
mov rcx, rdi
mov dword [rdi + 0x20], edx
call fcn.1402b6e2c
cmp eax, 5
jne 0x1402b71d0
jmp 0x1402b720f
test eax, eax
je 0x1402b722d
cmp eax, 6
je 0x1402b722d
mov rcx, rdi
call fcn.1402b6e90
test eax, eax
jle 0x1402b722d
add eax, dword [rdi + 0x20]
cmp eax, r15d
ja 0x1402b722d
mov dword [rdi + 0x20], eax
inc ebx
jmp 0x1402b712a
test ebx, ebx
je 0x1402b7073
cmp ebx, 1
jne 0x1402b7291
and qword [rdi + 0x70], 0
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, r12
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1402b7078
mov rcx, qword [rbp - 0x40]
lea rax, [rdi + 0x60]
lea r9, [0x140350f80]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov rcx, qword [rbp - 0x40]
test eax, eax
mov rax, qword [rcx]
je 0x1402b7289
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1402b7078
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1402b7548
mov dword [rdi + 0x20], r13d
xor r13d, r13d
mov r14, qword [rdi + 0x70]
test r14, r14
je 0x1402b7530
mov rcx, rdi
mov dword [rbp - 0x14], r13d
call fcn.1402b6e2c
mov ebx, eax
cmp eax, 3
je 0x1402b7303
lea ecx, [rbx - 4]
cmp ecx, 1
jbe 0x1402b7303
test ebx, ebx
je 0x1402b7530
cmp ebx, 6
je 0x1402b7530
mov rcx, rdi
call fcn.1402b6e90
test eax, eax
jle 0x1402b7530
mov edx, dword [rdi + 0x20]
add edx, eax
cmp edx, dword [rdi + 0x1c]
ja 0x1402b7530
mov rcx, rdi
mov dword [rdi + 0x20], edx
call fcn.1402b6e2c
mov ebx, eax
cmp eax, 3
jne 0x1402b72b8
jmp 0x1402b7314
test ebx, ebx
je 0x1402b7530
cmp ebx, 6
je 0x1402b7530
movsxd r12, dword [rdi + 0x20]
mov rcx, rdi
call fcn.1402b6e90
mov esi, eax
test eax, eax
jle 0x1402b7530
cmp ebx, 3
jne 0x1402b73eb
mov edx, r12d
movzx ecx, word [rdx + r14 + 4]
mov dword [rbp - 0x18], ecx
movzx ecx, byte [rdx + r14 + 3]
shr ecx, 2
and ecx, 7
mov dword [rbp - 0x14], ecx
mov rcx, rdi
call fcn.1402b6e90
test eax, eax
jle 0x1402b7530
add eax, r12d
cmp eax, dword [rdi + 0x1c]
ja 0x1402b7530
mov rcx, rdi
mov dword [rdi + 0x20], eax
call fcn.1402b6e2c
mov ebx, eax
cmp eax, 5
je 0x1402b73ce
cmp ebx, 4
je 0x1402b73ce
test ebx, ebx
je 0x1402b7530
cmp ebx, 6
je 0x1402b7530
mov rcx, rdi
call fcn.1402b6e90
test eax, eax
jle 0x1402b7530
mov edx, dword [rdi + 0x20]
add edx, eax
cmp edx, dword [rdi + 0x1c]
ja 0x1402b7530
mov rcx, rdi
mov dword [rdi + 0x20], edx
call fcn.1402b6e2c
mov rcx, rdi
mov ebx, eax
call fcn.1402b6e90
add esi, eax
cmp ebx, 5
jne 0x1402b737c
jmp 0x1402b73df
test ebx, ebx
je 0x1402b7530
cmp ebx, 6
je 0x1402b7530
mov rcx, rdi
call fcn.1402b6e90
add esi, eax
jmp 0x1402b73ef
or dword [rbp - 0x18], 0xffffffff
cmp ebx, 5
jne 0x1402b7416
mov ecx, dword [rdi + 0x20]
add rcx, r14
movzx eax, word [rcx + 5]
mov dword [rbp - 0x28], eax
movzx eax, word [rcx + 7]
mov dword [rbp - 0x24], eax
movzx eax, word [rcx + 1]
mov dword [rbp - 0x20], eax
movzx eax, word [rcx + 3]
mov dword [rbp - 0x1c], eax
mov rcx, rdi
call fcn.1402b6e90
test eax, eax
jle 0x1402b7530
mov edx, dword [rdi + 0x20]
add edx, eax
cmp edx, dword [rdi + 0x1c]
ja 0x1402b7530
mov dword [rdi + 0x20], edx
xor ecx, ecx
mov edx, dword [rdi + 0x24]
add rdx, 0xe
movsxd r15, esi
add rdx, r15
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x1402b7530
mov r8d, dword [rdi + 0x24]
mov rcx, rax
mov rdx, qword [rdi + 0x70]
add r8, 0xd
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [rdi + 0x24]
mov rdx, r12
add rdx, qword [rdi + 0x70]
add ebx, 0xd
movsxd rcx, ebx
mov r8, r15
add rcx, r14
call sub.VCRUNTIME140.dll_memcpy
add ebx, esi
mov qword [rbp - 0x38], r13
movsxd rax, ebx
lea r8, [rbp - 0x38]
mov edx, 1
mov rcx, r14
mov byte [rax + r14], 0x3b
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x1402b74b9
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1402b7298
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
lea r9, [0x140350f80]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rbx + 1]
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov rcx, qword [rbp - 0x38]
test eax, eax
mov rax, qword [rcx]
je 0x1402b74ec
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1402b7298
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rdx, qword [rdi + 0x88]
lea rcx, [rdi + 0x80]
cmp rdx, qword [rdi + 0x90]
je 0x1402b7522
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rdx + 0x10], xmm1
add qword [rdi + 0x88], 0x20
jmp 0x1402b7298
lea r8, [rbp - 0x30]
call fcn.1402b65fc
jmp 0x1402b7298
mov qword [rdi + 0x70], r13
mov rax, qword [rdi + 0x88]
cmp qword [rdi + 0x80], rax
je 0x1402b7078
mov r8d, dword [rdi + 0x14]
mov rcx, rdi
mov edx, dword [rdi + 0x10]
call fcn.1402b7868
jmp 0x1402b707a