Function at 0x140042e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x1400b64d0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, rcx
mov qword [rbp - 9], rcx
movzx edi, dx
mov r8d, 0xf0
mov edx, edi
mov rcx, qword [0x1400c4a10]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r14d, r14d
mov r12d, r14d
mov qword [rbp - 0x11], r14
mov ebx, r14d
test rax, rax
je 0x140042edc
mov rdx, rax
mov rcx, qword [0x1400c4a10]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140042edc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
mov qword [rbp - 0x11], rax
mov r8d, 5
mov rdx, rdi
mov rcx, qword [0x1400c4a10]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14004335f
mov rdx, rax
mov rcx, qword [0x1400c4a10]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140043358
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140043358
mov edx, 0xffff
mov r13d, r14d
cmp word [rax + 2], dx
sete r13b
cmp word [rax + 2], dx
lea rcx, [rax + 0x10]
je 0x140042f44
lea rcx, [rax + 8]
movzx ecx, word [rcx]
mov word [rbp - 0x47], cx
mov rcx, rax
call fcn.14002e940
mov r14, rax
mov edx, 5
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetWindow]
mov rdi, rax
mov qword [rbp - 0x39], rax
xor r11d, r11d
movzx r15d, r11w
mov word [rbp - 0x49], r11w
cmp r11w, word [rbp - 0x47]
jae 0x14004335f
test r13d, r13d
je 0x140042f92
mov r8d, dword [r14 + 0x14]
lea rax, [r14 + 0x18]
jmp 0x140042f9b
movzx r8d, word [r14 + 0x10]
lea rax, [r14 + 0x12]
cmp word [rax], 0x7b
jne 0x1400432ec
mov rsi, r11
mov rax, r12
test r12, r12
je 0x140042fe2
movzx ecx, word [rax]
lea r10, [rax + 2]
movzx r9d, word [rax + 2]
mov edx, dword [rax + 4]
add rax, 8
cmp ecx, r8d
je 0x140042fcf
add rax, rdx
jne 0x140042fb0
jmp 0x140042fe2
mov eax, 0x378
cmp r9w, ax
je 0x140042fe2
mov rsi, r10
add edx, 6
jmp 0x140042fe5
mov edx, r11d
mov rcx, r11
mov qword [rbp - 0x41], rcx
test edx, edx
je 0x140043051
mov edi, edx
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140043336
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14004332d
mov r9d, edi
mov r8, rsi
mov edx, edi
mov rcx, rax
call fcn.140006b40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea r8, [rbp - 0x41]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rcx, qword [rbp - 0x41]
mov rdi, qword [rbp - 0x39]
xor r11d, r11d
mov qword [rbp - 0x21], r11
lea rdx, [rbp - 0x21]
call fcn.1400305e0
mov ebx, eax
mov rsi, qword [rbp - 0x21]
test eax, eax
js 0x1400432d1
call fcn.140033610
test r13d, r13d
je 0x140043085
lea rdx, [r14 + 0x18]
mov qword [rbp - 0x29], rdx
movzx eax, word [r14 + 0xc]
jmp 0x140043092
lea rax, [r14 + 0x12]
mov qword [rbp - 0x29], rax
movzx eax, word [r14 + 8]
movsx ecx, ax
mov dword [rbp + 0xf], ecx
test r13d, r13d
je 0x1400430a4
movzx eax, word [r14 + 0xe]
jmp 0x1400430a9
movzx eax, word [r14 + 0xa]
movsx edx, ax
mov dword [rbp + 0x13], edx
test r13d, r13d
je 0x1400430bb
movzx eax, word [r14 + 0x10]
jmp 0x1400430c0
movzx eax, word [r14 + 0xc]
cwde
add eax, ecx
mov dword [rbp + 0x17], eax
test r13d, r13d
je 0x1400430d2
movzx eax, word [r14 + 0x12]
jmp 0x1400430d7
movzx eax, word [r14 + 0xe]
cwde
add eax, edx
mov dword [rbp + 0x1b], eax
lea rdx, [rbp + 0xf]
mov rbx, qword [rbp - 9]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_MapDialogRect]
test r13d, r13d
je 0x140043102
mov eax, dword [r14 + 0x14]
mov ecx, dword [r14 + 4]
mov r9d, dword [r14 + 8]
jmp 0x14004310c
movzx eax, word [r14 + 0x10]
xor ecx, ecx
mov r9d, dword [r14]
mov r11, qword [rbx + 8]
mov ebx, dword [rbp + 0x1b]
mov edi, dword [rbp + 0x13]
sub ebx, edi
mov r8d, dword [rbp + 0x17]
mov r10d, dword [rbp + 0xf]
sub r8d, r10d
bts r9d, 0x10
mov qword [rsp + 0x58], 0
mov rdx, qword [0x1400c4a08]
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], edi
mov dword [rsp + 0x20], r10d
xor r8d, r8d
lea rdx, str.AtlAxWinLic120
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rdi, rax
test rax, rax
je 0x1400432c6
test r13d, r13d
je 0x14004318a
mov edx, dword [r14]
test edx, edx
je 0x14004318a
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov r12, qword [rbp - 0x41]
mov qword [rbp - 0x31], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [0x1400c4258]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
mov qword [rbp - 1], rax
mov r15d, 0x80004005
test rax, rax
mov eax, 0
cmovne r15d, eax
test r15d, r15d
js 0x1400431df
mov rax, qword [rbx]
lea r8, [rbp - 0x31]
lea rdx, [0x140077558]
mov rcx, rbx
call qword [rax]
mov r15d, eax
test rbx, rbx
je 0x1400431ed
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
test r15d, r15d
jns 0x140043225
mov qword [rsp + 0x38], rsi
xor eax, eax
mov qword [rsp + 0x30], rax
lea rcx, [0x140089ca8]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, qword [rbp - 0x29]
call fcn.140033490
mov ebx, eax
jmp 0x140043270
xor edx, edx
mov qword [rbp - 0x19], rdx
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdx
lea rdx, [0x140089ca8]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x19]
mov qword [rsp + 0x20], rdx
mov r9, r12
mov r8, rdi
mov rdx, qword [rbp - 0x29]
call qword [rax + 0x50]
mov ebx, eax
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140043270
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14004327f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test ebx, ebx
js 0x14004333d
movzx r15d, word [rbp - 0x49]
test r15w, r15w
mov rdx, qword [rbp - 0x39]
mov eax, 0
cmove rdx, rax
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayGetLBound
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov qword [rbp - 0x39], rdi
mov r12, qword [rbp - 0x11]
jmp 0x1400432d1
call fcn.140002b60
mov ebx, eax
mov rdi, qword [rbp - 0x39]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140043307
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x140043307
test r15w, r15w
je 0x140043307
mov edx, 2
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindow]
mov rdi, rax
mov qword [rbp - 0x39], rax
mov edx, r13d
mov rcx, r14
call fcn.14002e9e0
mov r14, rax
inc r15w
mov word [rbp - 0x49], r15w
cmp r15w, word [rbp - 0x47]
jae 0x14004335f
xor r11d, r11d
jmp 0x140042f83
call fcn.140002b60
mov ebx, eax
jmp 0x140043347
mov ebx, 0x8007000e
jmp 0x140043347
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14004335f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x14004335f
call fcn.140002b60
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400525d0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret