Function at 0x140018030
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Get file attributes
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov r13, rcx
lea rcx, [rbp + 0x38]
call fcn.14004a3e0
nop
lea rdi, [r13 + 0x26f1]
xor edx, edx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, [0x140264718]
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14000a460
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0xb0]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400180b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140264ed8]
mov rdx, rdi
lea rcx, [rbp + 0xb8]
call fcn.14000a460
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0xb8]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400180ef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140264ec8]
mov rdx, rdi
lea rcx, [rbp + 0xc0]
call fcn.14000a460
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0xc0]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001812e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.asmfilter64.cat
mov rdx, rdi
lea rcx, [rbp + 0xc8]
call fcn.14000a460
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0xc8]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001816d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.ASMXu424FW.rom
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14000a460
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400181a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140264f18]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14000a460
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400181e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14002f52c
mov rsi, qword [rax + 0x18]
lea r8, [0x140266bcc]
mov edx, 0x8c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x140018232
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x15d9
lea rdx, str.CsupdDlg::vExtractResourceFiles
lea rcx, str._r_n_s:_d:_FindResource_fail:__d
call fcn.140009c10
xor bl, bl
jmp 0x1400187cd
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea r8, [0x140264ed8]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000a460
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp + 0x10]
call fcn.14002f778
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018295
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, esi
mov rdx, r15
lea rcx, [rbp + 0x10]
call fcn.140030494
lea r8, [0x140264ed8]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14000a460
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400182e2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x140018302
mov r8d, 0x15e3
lea rdx, str.CsupdDlg::vExtractResourceFiles
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.140009c10
jmp 0x140018348
test sil, 2
jne 0x140018348
lea r8, [0x140264ed8]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000a460
or esi, 2
mov edx, esi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018348
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp + 0x10]
call fcn.14002fca4
call fcn.14002f52c
mov rsi, qword [rax + 0x18]
lea r8, [0x140266bcc]
mov edx, 0x8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x1400183a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x15ef
lea rdx, str.CsupdDlg::vExtractResourceFiles
lea rcx, str._r_n_s:_d:_FindResource_fail:__d
call fcn.140009c10
xor bl, bl
jmp 0x1400187c3
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea r8, [0x140264ec8]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14000a460
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp - 0x18]
call fcn.14002f778
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018403
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, esi
mov rdx, r15
lea rcx, [rbp - 0x18]
call fcn.140030494
lea r8, [0x140264ec8]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14000a460
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140018450
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x140018470
mov r8d, 0x15f9
lea rdx, str.CsupdDlg::vExtractResourceFiles
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.140009c10
jmp 0x1400184b6
test sil, 2
jne 0x1400184b6
lea r8, [0x140264ec8]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14000a460
or esi, 2
mov edx, esi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400184b6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x18]
call fcn.14002fca4
call fcn.14002f52c
mov rsi, qword [rax + 0x18]
lea r8, [0x140266bcc]
mov edx, 0x8e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x14001850e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x1605
lea rdx, str.CsupdDlg::vExtractResourceFiles
lea rcx, str._r_n_s:_d:_FindResource_fail:__d
call fcn.140009c10
xor bl, bl
jmp 0x1400187b9
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea r8, str.asmfilter64.cat
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14000a460
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp - 0x40]
call fcn.14002f778
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018571
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, esi
mov rdx, r15
lea rcx, [rbp - 0x40]
call fcn.140030494
lea r8, str.asmfilter64.cat
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.14000a460
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400185be
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x1400185de
mov r8d, 0x160f
lea rdx, str.CsupdDlg::vExtractResourceFiles
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.140009c10
jmp 0x140018624
test sil, 2
jne 0x140018624
lea r8, str.asmfilter64.cat
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.14000a460
or esi, 2
mov edx, esi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018624
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x40]
call fcn.14002fca4
cmp byte [r13 + 0x25fe], 0
je 0x1400187ad
call fcn.14002f52c
mov rsi, qword [rax + 0x18]
lea r8, [0x140266bcc]
mov edx, 0x86
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x14001868a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x161f
lea rdx, str.CsupdDlg::vExtractResourceFiles
lea rcx, str._r_n_s:_d:_FindResource_fail:__d
call fcn.140009c10
xor bl, bl
jmp 0x1400187af
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea r8, str.ASMXu424FW.rom
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14000a460
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp - 0x68]
call fcn.14002f778
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400186ed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, esi
mov rdx, r15
lea rcx, [rbp - 0x68]
call fcn.140030494
lea r8, str.ASMXu424FW.rom
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.14000a460
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140018738
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x140018758
mov r8d, 0x1629
lea rdx, str.CsupdDlg::vExtractResourceFiles
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.140009c10
jmp 0x14001879a
test sil, 2
jne 0x14001879a
lea r8, str.ASMXu424FW.rom
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.14000a460
or esi, 2
mov edx, esi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14001879a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x68]
call fcn.14002fca4
nop
lea rcx, [rbp - 0x68]
call fcn.14002f93c
mov bl, 1
lea rcx, [rbp - 0x40]
call fcn.14002f93c
nop
lea rcx, [rbp - 0x18]
call fcn.14002f93c
nop
lea rcx, [rbp + 0x10]
call fcn.14002f93c
nop
lea rcx, [rbp + 0x38]
call fcn.14004a40c
movzx eax, bl
add rsp, 0x170
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret