Function at 0x140018e80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x610]
sub rsp, 0x710
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov r14d, r8d
mov r15, rdx
mov r13, rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], r12
mov dword [rcx + 8], r8d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
mov dword [rsp + 0x40], 2
lea rcx, str.shell32.dll
call fcn.140011340
mov rsi, rax
lea rbx, [r12 - 1]
test rax, rax
je 0x140018fc3
lea rdx, str.SHGetFolderPathW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140018fb9
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.14009e4c0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1d]
xor ecx, ecx
call rdi
test eax, eax
jne 0x140018fb9
lea rcx, [rbp - 0x30]
mov rax, rbx
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140018f60
cmp word [rbp + rax*2 - 0x32], 0x5c
je 0x140018f92
lea rcx, [rbp - 0x30]
sub rcx, 2
nop dword [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140018f80
mov eax, dword [0x14012e6c4]
mov dword [rcx], eax
lea rax, [rbp - 0x30]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140018fa0
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400123a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140018ffd
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x140018ffd
mov r8d, 1
lea rdx, [0x14012e6c4]
lea rcx, [rsp + 0x50]
call fcn.14000b610
mov esi, reloc.WS2_32.dll_recv
mov r8d, esi
lea rdx, str.SpreadsheetTools
lea rcx, [rsp + 0x50]
call fcn.14000b610
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001904b
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, str.Runtime.dll
lea rcx, [rsp + 0x50]
call fcn.14000b610
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, r12d
cmp eax, 0xffffffff
setne dil
test r14d, r14d
je 0x140019090
test edi, edi
je 0x140019519
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.14009e4c0
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
lea rdx, [rbp + 0x1e0]
sub rdx, rcx
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400190c0
mov r14d, reloc.WS2_32.dll_select
mov qword [rsp + 0x38], r13
lea rax, reloc.WS2_32.dll_inet_addr
lea rcx, [rbp + 0x1e0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
test edi, edi
je 0x140019115
mov edx, r14d
cmp dword [r13 + 8], 0
cmovne edx, esi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ole32.dll_StgOpenStorageEx]
jmp 0x140019126
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1012
call qword [sym.imp.ole32.dll_StgCreateStorageEx]
test eax, eax
js 0x140019519
cmp dword [r13 + 8], 0
cmove esi, r14d
mov qword [rsp + 0x40], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3f0]
call fcn.14009e4c0
lea rdx, [r15 + 2]
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r12w
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140019170
mov r8, rbx
lea rcx, [rsp + 0x70]
call fcn.1400123a0
nop
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r12w
xor r8d, r8d
lea rdx, [0x14012e64c]
lea rcx, [rbp - 0x70]
call fcn.1400123a0
nop
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r12w
mov r8d, 1
lea rdx, [0x140135174]
lea rcx, [rbp - 0x50]
call fcn.1400123a0
nop
lea r9, [rbp - 0x50]
mov r15, qword [rbp - 0x50]
mov r12, qword [rbp - 0x38]
cmp r12, 8
cmovae r9, r15
lea r11, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r11, qword [rsp + 0x70]
mov rdi, qword [rbp - 0x40]
mov r14, qword [rbp - 0x80]
cmp rdi, r14
ja 0x14001937d
test rdi, rdi
jne 0x14001921b
xor ebx, ebx
jmp 0x140019298
mov r10, r14
sub r10, rdi
inc r10
lea r10, [r11 + r10*2]
mov rbx, r11
nop dword [rax + rax]
mov rax, r10
sub rax, rbx
sar rax, 1
je 0x14001937d
movzx ecx, word [r9]
cmp word [rbx], cx
je 0x140019258
add rbx, 2
sub rax, 1
je 0x14001937d
jmp 0x140019243
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140019288
mov r8, rbx
sub r8, r9
nop dword [rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140019331
add rcx, 2
sub rdx, 1
jne 0x140019270
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14001937d
mov rsi, qword [rbp - 0x60]
nop dword [rax]
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r9, qword [rbp - 0x70]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140019830
mov rsi, qword [rbp - 0x60]
add rbx, rsi
lea r9, [rbp - 0x50]
cmp r12, 8
cmovae r9, r15
lea r11, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r11, qword [rsp + 0x70]
mov r14, qword [rbp - 0x80]
cmp rdi, r14
ja 0x140019378
mov rax, r14
sub rax, rdi
cmp rbx, rax
ja 0x140019378
test rdi, rdi
je 0x14001936e
lea r10, [r11 + 2]
lea r10, [r10 + rax*2]
lea rbx, [r11 + rbx*2]
nop
mov rax, r10
sub rax, rbx
sar rax, 1
je 0x140019378
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x14001933a
add rbx, 2
sub rax, 1
je 0x140019378
jmp 0x140019320
add rbx, 2
jmp 0x140019230
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140019368
mov r8, rbx
sub r8, r9
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140019589
add rcx, 2
sub rdx, 1
jne 0x140019350
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
jne 0x1400192a0
mov rsi, qword [rsp + 0x40]
cmp r12, 8
jb 0x1400193bc
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x1400193b0
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019598
mov rcx, r15
call fcn.14009b510
mov r14, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140019400
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400193f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001959e
call fcn.14009b510
mov r14, qword [rbp - 0x80]
lea rdx, [r14 - 2]
cmp r14, rdx
jb 0x1400195a4
mov rax, r14
sub rax, rdx
cmp rax, 2
mov r9d, 2
cmovb r9, rax
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
lea rcx, [rax + rdx*2]
sub r14, r9
mov qword [rbp - 0x80], r14
sub r14, rdx
lea r8, [r14*2 + 2]
lea rdx, [rcx + r9*2]
call fcn.14009de10
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rbp + 0x3f0]
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rcx + rdx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140019470
mov rcx, qword [r13]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rdx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp + 0x3f0]
call qword [rax + 0x20]
test eax, eax
jns 0x1400194d8
cmp dword [r13 + 8], ebx
jne 0x1400194d8
mov rcx, qword [r13]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8d, [rbx + 0x11]
lea rdx, [rbp + 0x3f0]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140019519
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019514
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400195aa
call fcn.14009b510
mov rbx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14001955c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019557
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019592
call fcn.14009b510
mov rax, rbx
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.14009b5b0
mov rbx, qword [rsp + 0x760]
add rsp, 0x710
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
add rbx, 2
jmp 0x140019310
call fcn.1400ac408
nop
call fcn.1400ac408
nop
call fcn.1400ac408
int3
call fcn.1400102e0
nop
call fcn.1400ac408
int3