Function at 0x14001c668
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3e0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rax, qword [0x14010bfc0]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov ebx, r8d
mov r13, rdx
mov qword [rsp + 0x48], rdx
mov r15, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdx
lea r8, str.InsertTextIntoTempHtmlFile__
mov edx, 2
lea r12, [0x14010f570]
mov rcx, r12
call fcn.140001000
mov rcx, qword [r15 + 0x268]
sub rcx, 0x18
call fcn.140001770
lea rcx, [rax + 0x18]
mov qword [rsp + 0x40], rcx
xor esi, esi
mov r14d, esi
cmp dword [rcx - 0x10], esi
setne r14b
cmp r14d, esi
jne 0x14001c883
cmp ebx, esi
je 0x14001c7de
movzx ebx, bx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea r8d, [rsi + 0x17]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
cmp rax, rsi
je 0x14001c812
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rsi
je 0x14001c812
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x60], rax
cmp rax, rsi
je 0x14001c812
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea ecx, [rbx + 1]
mov edi, ecx
call fcn.140061284
mov r13, rax
mov r9, rbx
mov r8, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, rax
call fcn.140097ed0
cmp eax, esi
jne 0x14001c7cf
cmp r13, rsi
jne 0x14001c7a0
mov eax, esi
jmp 0x14001c7a8
mov rcx, r13
call fcn.1400980d0
mov r8d, eax
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.140001a6c
mov r14d, 1
lea rdx, [rsp + 0x40]
lea rcx, [r15 + 0x268]
call fcn.140001e38
mov rcx, r13
call fcn.14006127c
mov r13, qword [rsp + 0x48]
jmp 0x14001c806
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14007bcc0
cmp eax, esi
je 0x14001c812
mov r14d, 1
lea rdx, [rsp + 0x40]
lea rcx, [r15 + 0x268]
call fcn.140001e38
cmp r14d, esi
je 0x14001c812
mov rcx, qword [rsp + 0x40]
jmp 0x14001c883
lea r8, str.web_control_source_is_not_loaded
mov edx, 0x400
mov rcx, r12
call fcn.140001000
lea r8, str.InsertTextIntoTempHtmlFile___returning_FALSE
mov edx, 4
mov rcx, r12
call fcn.140001000
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, esi
jg 0x14001c85e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, esi
jg 0x14001c87c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
xor eax, eax
jmp 0x14001cbbd
cmp dword [rcx - 0x10], esi
jl 0x14001c937
lea rdx, str._body
call fcn.140099250
cmp rax, rsi
je 0x14001c92d
mov rcx, qword [rsp + 0x40]
sub eax, ecx
or ebx, 0xffffffff
cmp eax, ebx
je 0x14001c93a
cmp eax, esi
jl 0x14001c8e5
cmp eax, dword [rcx - 0x10]
jg 0x14001c8e5
cdqe
add rcx, rax
lea rdx, [0x1400c8d48]
call fcn.140099250
mov rdi, rax
cmp rax, rsi
je 0x14001c8de
mov rcx, qword [rsp + 0x40]
sub edi, ecx
jmp 0x14001c8e7
mov rcx, qword [rsp + 0x40]
jmp 0x14001c93a
mov edi, ebx
cmp edi, ebx
je 0x14001c93a
cmp dword [rcx - 0x10], esi
jl 0x14001c93a
lea rdx, str.__body_
call fcn.140099250
cmp rax, rsi
je 0x14001c926
mov rcx, qword [rsp + 0x40]
sub eax, ecx
cmp eax, ebx
je 0x14001c93a
sub eax, edi
lea edx, [rdi + 1]
lea r8d, [rax - 1]
lea rcx, [rsp + 0x40]
call fcn.14001b92c
mov rcx, qword [rsp + 0x40]
jmp 0x14001c93a
mov rcx, qword [rsp + 0x40]
jmp 0x14001c93a
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x40]
jmp 0x14001c93a
or ebx, 0xffffffff
cmp dword [rcx - 0x10], esi
jl 0x14001cb68
lea rdx, str.__body_
call fcn.140099250
cmp rax, rsi
je 0x14001cb68
sub eax, dword [rsp + 0x40]
cmp eax, ebx
je 0x14001cb68
mov r8, qword [r13]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14001bcb8
mov r9, qword [rsp + 0x40]
lea r8, str.source_html:_n_s_n
mov edx, 0x20
mov rcx, r12
call fcn.140001000
mov rcx, qword [r15 + 0x260]
call fcn.14000bbb0
cmp eax, esi
jne 0x14001ca31
mov byte [rsp + 0xa0], sil
mov r14d, 0x103
mov r8, r14
xor edx, edx
lea rcx, [rsp + 0xa1]
call fcn.1400988d0
mov byte [rsp + 0x1b0], sil
mov r8, r14
xor edx, edx
lea rcx, [rsp + 0x1b1]
call fcn.1400988d0
lea rdx, [rsp + 0x1b0]
lea ecx, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [rsp + 0xa0]
xor r8d, r8d
lea rdx, [0x1400c8d20]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea rcx, [rsp + 0xa0]
call fcn.1400980d0
mov r8d, eax
lea rdx, [rsp + 0xa0]
lea rcx, [r15 + 0x260]
call fcn.140001a6c
lea rcx, [rsp + 0x68]
call fcn.1400817ec
nop
xor r9d, r9d
mov r8d, 0x1001
mov rdx, qword [r15 + 0x260]
lea rcx, [rsp + 0x68]
call fcn.140081814
cmp eax, esi
je 0x14001ca8e
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140081a90
nop
jmp 0x14001ca82
lea rcx, [rsp + 0x68]
call fcn.140081d18
jmp 0x14001caa2
lea r8, str.Creation_opening_of_temp_file_failed
mov edx, 0x400
mov rcx, r12
call fcn.140001000
mov r9, qword [r15 + 0x260]
lea r8, str._tempHtmlFile:__s
mov edx, 0x20
mov rcx, r12
call fcn.140001000
mov rcx, qword [r15 + 0x260]
call fcn.14000bbb0
cmp eax, esi
je 0x14001cb5e
mov rax, qword [r15]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r15 + 0x260]
mov rcx, r15
call qword [rax + 0x458]
lea r8, str.InsertTextIntoTempHtmlFile___returning_TRUE
mov edx, 4
mov rcx, r12
call fcn.140001000
nop
lea rcx, [rsp + 0x68]
call fcn.140081d68
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, esi
jg 0x14001cb38
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
cmp ecx, esi
jg 0x14001cb57
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.oledlg.dll_OleUIBusyA + 8]
mov eax, 1
jmp 0x14001cbbd
lea rcx, [rsp + 0x68]
call fcn.140081d68
lea r8, str.InsertTextIntoTempHtmlFile___returning_FALSE
mov edx, 4
mov rcx, r12
call fcn.140001000
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, esi
jg 0x14001cb9d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, esi
jg 0x14001cbbb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
xor eax, eax
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140061100
add rsp, 0x3e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret