Function at 0x140004e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x14001c318]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, rcx
mov qword [rbp - 0x19], rcx
movzx ebx, dx
mov r8d, 0xf0
mov edx, ebx
mov rcx, qword [0x14001de80]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r14d, r14d
mov edi, r14d
mov qword [rbp - 1], r14
mov esi, r14d
test rax, rax
je 0x140004eb0
mov rdx, rax
mov rcx, qword [0x14001de80]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140004eb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov qword [rbp - 1], rax
mov r8d, 5
mov rdx, rbx
mov rcx, qword [0x14001de80]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400052d2
mov rdx, rax
mov rcx, qword [0x14001de80]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400052cb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, rax
test rax, rax
je 0x1400052cb
movzx r12d, word [rax + 2]
mov edx, 0xffff
mov eax, r14d
cmp r12w, dx
sete al
mov dword [rbp - 0x21], eax
mov eax, 0x10
mov r8d, 8
cmovne eax, r8d
movzx r13d, word [rax + rcx]
mov word [rbp - 0x31], r13w
call fcn.140006990
mov r14, rax
mov edx, 5
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
mov qword [rbp - 0x29], rax
xor r11d, r11d
movzx r15d, r11w
cmp r11w, r13w
jae 0x1400052d2
mov edx, 0x12
mov ecx, 0xffff
cmp r12w, cx
jne 0x140004f72
mov r8d, dword [r14 + 0x14]
jmp 0x140004f77
movzx r8d, word [r14 + 0x10]
lea r13, [r14 + 0x12]
lea rax, [r14 + 0x18]
mov qword [rbp - 0x11], rax
mov eax, 0x18
cmovne rax, rdx
cmp word [rax + r14], 0x7b
jne 0x14000522d
mov rsi, r11
mov rax, rdi
test rdi, rdi
je 0x140004fd1
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rax]
lea r10, [rax + 2]
movzx r9d, word [rax + 2]
mov edx, dword [rax + 4]
cmp ecx, r8d
je 0x1400050c4
add rax, 8
add rax, rdx
jne 0x140004fb0
mov edx, r11d
mov rcx, r11
mov qword [rbp - 0x39], rcx
test edx, edx
je 0x140005051
mov edi, edx
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x14000528c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14000526d
mov r8d, edi
mov rcx, rax
test rsi, rsi
je 0x1400052fb
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea r8, [rbp - 0x39]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, eax
test eax, eax
js 0x140005291
mov rcx, qword [rbp - 0x39]
mov rbx, qword [rbp - 0x29]
xor r11d, r11d
mov qword [rbp - 9], r11
lea rdx, [rbp - 9]
call fcn.14000b0f0
mov esi, eax
mov rdi, qword [rbp - 9]
test eax, eax
js 0x14000520b
call fcn.14000f460
mov eax, 0xffff
cmp r12w, ax
jne 0x1400050de
movsx ecx, word [r14 + 0xc]
mov dword [rbp + 7], ecx
movsx edx, word [r14 + 0xe]
mov dword [rbp + 0xb], edx
movsx eax, word [r14 + 0x10]
add eax, ecx
mov dword [rbp + 0xf], eax
movsx eax, word [r13]
add eax, edx
mov dword [rbp + 0x13], eax
lea rdx, [rbp + 7]
mov rax, qword [rbp - 0x19]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [r14 + 0x14]
mov ecx, dword [r14 + 4]
lea rdx, [r14 + 8]
mov r13, qword [rbp - 0x11]
jmp 0x14000511e
mov eax, 0x378
cmp r9w, ax
je 0x140004fd1
mov rsi, r10
add edx, 6
jmp 0x140004fd4
movsx ecx, word [r14 + 8]
mov dword [rbp + 7], ecx
movsx edx, word [r14 + 0xa]
mov dword [rbp + 0xb], edx
movsx eax, word [r14 + 0xc]
add eax, ecx
mov dword [rbp + 0xf], eax
movsx eax, word [r14 + 0xe]
add eax, edx
mov dword [rbp + 0x13], eax
lea rdx, [rbp + 7]
mov rax, qword [rbp - 0x19]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_MapDialogRect]
movzx eax, word [r14 + 0x10]
xor ecx, ecx
mov rdx, r14
mov r9d, dword [rdx]
mov r11, qword [rbp - 0x19]
mov r11, qword [r11 + 8]
mov ebx, dword [rbp + 0x13]
mov esi, dword [rbp + 0xb]
sub ebx, esi
mov r8d, dword [rbp + 0xf]
mov r10d, dword [rbp + 7]
sub r8d, r10d
bts r9d, 0x10
mov qword [rsp + 0x58], 0
mov rdx, qword [0x14001de78]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r11
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r10d
xor r8d, r8d
lea rdx, str.AtlAxWinLic140
call fcn.14000f710
mov rbx, rax
mov qword [rbp - 0x11], rax
test rax, rax
je 0x140005200
mov eax, 0xffff
cmp r12w, ax
jne 0x1400051a8
mov edx, dword [r14]
test edx, edx
je 0x1400051a8
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, qword [rbp - 0x39]
mov rdx, r13
lea rcx, [rbp - 0x11]
call fcn.1400053d0
mov esi, eax
test eax, eax
js 0x1400052a9
test r15w, r15w
mov rdx, qword [rbp - 0x29]
mov eax, 0
cmove rdx, rax
mov dword [rsp + 0x30], 0x13
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowPos]
mov qword [rbp - 0x29], rbx
jmp 0x14000520b
call fcn.140004230
mov esi, eax
mov rbx, qword [rbp - 0x29]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140005248
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140013718]
jmp 0x140005248
test r15w, r15w
je 0x140005248
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
mov qword [rbp - 0x29], rax
mov edx, dword [rbp - 0x21]
mov rcx, r14
call fcn.140006a50
mov r14, rax
inc r15w
cmp r15w, word [rbp - 0x31]
jae 0x1400052d2
mov rdi, qword [rbp - 1]
xor r11d, r11d
jmp 0x140004f5c
call fcn.140004230
mov esi, eax
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400052d2
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140013718]
jmp 0x1400052d2
mov esi, 0x8007000e
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400052d2
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140013718]
jmp 0x1400052d2
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400052d2
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140013718]
jmp 0x1400052d2
call fcn.140004230
mov esi, eax
mov eax, esi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140010a80
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140004310
int3