Function at 0x1400174d0
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 r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rdi, rcx
lea rcx, [rbp - 0x20]
call fcn.1400504dc
nop
lea rsi, [rdi + 0x26f0]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, [0x14027eed8]
mov rdx, rsi
lea rcx, [rbp + 0x50]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001754b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x14027f798]
mov rdx, rsi
lea rcx, [rbp + 0x58]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017584
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r15, [rdi + 0x26f8]
lea r8, [0x14027f798]
mov rdx, r15
lea rcx, [rbp + 0x60]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400175c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140033c28
mov rdi, qword [rax + 0x18]
lea r8, [0x140280e5c]
mov edx, 0x83
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x140017613
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x15ff
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_FindResource_fail:__d
call fcn.1400095e0
xor bl, bl
jmp 0x1400179c3
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea r8, [0x14027eed8]
mov rdx, rsi
lea rcx, [rbp + 0x68]
call fcn.140009e30
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp - 0x48]
call fcn.1400359b4
nop
mov rdx, qword [rbp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017674
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, edi
mov rdx, r12
lea rcx, [rbp - 0x48]
call fcn.14003672c
lea r8, [0x14027eed8]
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400176c1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp edi, 0xffffffff
jne 0x1400176e1
mov r8d, 0x1609
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.1400095e0
jmp 0x140017727
test dil, 2
jne 0x140017727
lea r8, [0x14027eed8]
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.140009e30
or edi, 2
mov edx, edi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017727
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x48]
call fcn.140035ee0
call fcn.140033c28
mov rdi, qword [rax + 0x18]
lea r8, [0x140280e5c]
mov edx, 0x8f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x14001777f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x1615
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_FindResource_fail:__d
call fcn.1400095e0
xor bl, bl
jmp 0x1400179b9
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
lea r8, [0x14027f798]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140009e30
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp - 0x70]
call fcn.1400359b4
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400177e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, r14d
mov rdx, r12
lea rcx, [rbp - 0x70]
call fcn.14003672c
lea r8, [0x14027f798]
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140017830
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp edi, 0xffffffff
jne 0x140017850
mov r8d, 0x161f
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.1400095e0
jmp 0x140017896
test dil, 2
jne 0x140017896
lea r8, [0x14027f798]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140009e30
or edi, 2
mov edx, edi
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 0x140017896
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x70]
call fcn.140035ee0
lea r8, [0x14027f798]
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.140009e30
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rsp + 0x68]
call fcn.1400359b4
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400178e6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, r14d
mov rdx, r12
lea rcx, [rsp + 0x68]
call fcn.14003672c
lea r8, [0x14027f798]
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140017934
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp edi, 0xffffffff
jne 0x140017954
mov r8d, 0x1628
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.1400095e0
jmp 0x140017998
test dil, 2
jne 0x140017998
lea r8, [0x14027f798]
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.140009e30
or edi, 2
mov edx, edi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140017998
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x68]
call fcn.140035ee0
mov bl, 1
lea rcx, [rsp + 0x68]
call fcn.140035b78
nop
lea rcx, [rbp - 0x70]
call fcn.140035b78
nop
lea rcx, [rbp - 0x48]
call fcn.140035b78
nop
lea rcx, [rbp - 0x20]
call fcn.140050508
movzx eax, bl
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret