Function at 0x14005b004
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x230
mov rax, qword [0x140102040]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xor r9d, r9d
mov r8d, 0x80
lea rbx, [0x140103b60]
mov rdx, rbx
lea rcx, str.Config_Name
call fcn.14004d308
and dword [rsp + 0x44], r15d
and dword [rsp + 0x48], r15d
and dword [rsp + 0x4c], r15d
and dword [rsp + 0x50], r15d
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, [rsp + 0x4c]
lea rcx, str.Create
call fcn.140049c9c
or r12, 0xffffffffffffffff
lea rdi, str..config
lea r13d, [r15 + 0xf]
mov r14d, 0x1000
test al, al
je 0x14005b17e
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov r8, r12
inc r8
cmp byte [rbx + r8], r15b
jne 0x14005b0be
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.140006eb0
nop
mov r8, rdi
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0xb0]
call fcn.140011fe0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, r13
jbe 0x14005b121
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, r14
jb 0x14005b11c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b11c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140063a8c
movdqa xmm0, xmmword [0x1400f0350]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], r15b
lea rcx, [rbp + 0xb0]
call fcn.14005c63c
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, r13
jbe 0x14005b17e
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, r14
jb 0x14005b179
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b179
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140063a8c
call fcn.14004b34c
call fcn.14004b72c
lea rcx, [rbp + 0x10]
call fcn.140006554
nop
lea rdx, [rbp + 0xd0]
mov rcx, rax
call fcn.1400056bc
nop
lea rcx, [rbp + 0x10]
call fcn.140003fe8
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14010417c], eax
jle 0x14005b1f4
lea rcx, [0x14010417c]
call fcn.1400636c8
cmp dword [0x14010417c], r12d
jne 0x14005b1f4
lea rcx, [0x1400c9030]
call fcn.140063a74
lea rcx, [0x14010417c]
call fcn.14006365c
mov rcx, qword [0x140103b40]
mov rdx, qword [0x140103b48]
cmp rcx, rdx
je 0x14005b21a
call fcn.1400070bc
mov rax, qword [0x140103b40]
mov qword [0x140103b48], rax
lea rax, [rbp + 0xd0]
cmp qword [rbp + 0xe8], r13
cmova rax, qword [rbp + 0xd0]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0xf0]
call fcn.140014544
mov edi, 0x20
mov dword [rsp + 0x40], edi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x70], xmm0
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x70]
call fcn.140012268
test eax, eax
jne 0x14005ba68
lea rcx, [rbp + 0xf0]
call fcn.140003fe8
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov rbx, qword [rbp + 0x78]
test rbx, rbx
je 0x14005b2a6
lock inc dword [rbx + 8]
mov rbx, qword [rbp + 0x78]
mov edi, dword [rsp + 0x40]
movaps xmm0, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0xa0], xmm0
test rbx, rbx
je 0x14005b2c3
lock inc dword [rbx + 8]
mov rbx, qword [rbp + 0x78]
mov edi, dword [rsp + 0x40]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x110], xmm1
test rbx, rbx
je 0x14005b310
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x14005b308
mov rbx, qword [rbp + 0x78]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x14005b308
mov rbx, qword [rbp + 0x78]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
jmp 0x14005b30c
mov rbx, qword [rbp + 0x78]
mov edi, dword [rsp + 0x40]
cmp qword [rbp + 0x70], r15
je 0x14005b49a
mov rsi, qword [rbp + 0xa0]
mov rcx, rsi
call fcn.140006210
test al, al
je 0x14005b37e
lea rax, str..config
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 7
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x20]
call fcn.140014544
or edi, 0x10
or edi, 1
mov dword [rsp + 0x40], edi
lea rcx, [rsi + 0x20]
lea rdx, [rbp + 0x30]
call fcn.1400058c4
or edi, 2
mov dword [rsp + 0x40], edi
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.1400059b0
test al, al
mov r14b, 1
jne 0x14005b381
mov r14b, r15b
test dil, 2
je 0x14005b398
and edi, 0xfffffffd
mov dword [rsp + 0x40], edi
lea rcx, [rbp + 0x30]
call fcn.140003fe8
nop
test dil, 1
je 0x14005b3ae
and edi, 0xfffffffe
mov dword [rsp + 0x40], edi
lea rcx, [rbp - 0x20]
call fcn.140003fe8
test r14b, r14b
je 0x14005b478
lea rcx, [rsi + 0x20]
lea rdx, [rbp + 0x50]
call fcn.14000581c
nop
lea rdx, [rbp - 0x40]
mov rcx, rax
call fcn.1400056bc
mov rsi, rax
mov rcx, qword [0x140103b48]
cmp rcx, qword [0x140103b50]
je 0x14005b416
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
mov r8d, 0x20
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r13
mov byte [rsi], r15b
add qword [0x140103b48], 0x20
jmp 0x14005b429
mov r8, rsi
mov rdx, rcx
lea rcx, [0x140103b40]
call fcn.140014000
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, r13
jbe 0x14005b463
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b45e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005b65a
call fcn.140063a8c
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r13
mov byte [rbp - 0x40], r15b
lea rcx, [rbp + 0x50]
call fcn.140003fe8
lea rcx, [rbp + 0xa0]
call fcn.140006434
mov rsi, qword [rbp + 0xa0]
test rsi, rsi
jne 0x14005b321
mov r14d, 0x1000
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14005b4e0
mov eax, r12d
lock xadd dword [rcx + 8], eax
add eax, r12d
jne 0x14005b4dc
mov rbx, qword [rbp + 0xa8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x14005b4dc
mov rcx, qword [rbp + 0xa8]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x78]
test rbx, rbx
je 0x14005b515
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x14005b515
mov rbx, qword [rbp + 0x78]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x14005b515
mov rcx, qword [rbp + 0x78]
mov rax, qword [rcx]
call qword [rax + 8]
call fcn.14004b34c
mov ebx, r15d
mov rax, qword [0x140103b48]
mov r8, qword [0x140103b40]
sub rax, r8
sar rax, 5
test rax, rax
je 0x14005b58f
and dword [rsp + 0x4c], ebx
and dword [rsp + 0x50], ebx
mov rdi, r15
cmp dword [0x140102328], ebx
sete dl
lea rcx, [rdi + r8]
cmp qword [rcx + 0x18], r13
jbe 0x14005b558
mov rcx, qword [rcx]
lea r9, [rsp + 0x4c]
call fcn.1400551f4
test al, al
je 0x14005b56c
mov dword [0x140102328], ebx
inc ebx
add rdi, 0x20
mov rcx, qword [0x140103b48]
mov r8, qword [0x140103b40]
sub rcx, r8
sar rcx, 5
movsxd rax, ebx
cmp rax, rcx
jb 0x14005b542
call fcn.14004b34c
call fcn.14004b72c
call fcn.14004b34c
and dword [rsp + 0x44], 0
and dword [rsp + 0x48], 0
and dword [rsp + 0x54], 0
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, [rsp + 0x54]
lea rcx, str.Save
call fcn.140049c9c
test al, al
je 0x14005b666
movsxd rcx, dword [0x140102328]
test ecx, ecx
js 0x14005b666
mov rax, qword [0x140103b48]
mov r8, qword [0x140103b40]
sub rax, r8
sar rax, 5
mov rdx, rcx
cmp rcx, rax
jae 0x14005b666
shl rdx, 5
add rdx, r8
lea rcx, [rbp + 0xb0]
call fcn.140006fa4
nop
lea rcx, [rbp + 0xb0]
call fcn.14005c63c
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, r13
jbe 0x14005b666
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, r14
jb 0x14005b661
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b661
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140063a8c
movss xmm1, dword [0x1400f02e0]
xorps xmm0, xmm0
call fcn.1400290ec
and dword [rsp + 0x5c], 0
and dword [rsp + 0x60], 0
and dword [rsp + 0x70], 0
and dword [rsp + 0x74], 0
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, str.Load
call fcn.140049c9c
test al, al
je 0x14005b733
movsxd rcx, dword [0x140102328]
test ecx, ecx
js 0x14005b733
mov rax, qword [0x140103b48]
mov r8, qword [0x140103b40]
sub rax, r8
sar rax, 5
mov rdx, rcx
cmp rcx, rax
jae 0x14005b733
shl rdx, 5
add rdx, r8
lea rcx, [rbp + 0xb0]
call fcn.140006fa4
nop
lea rcx, [rbp + 0xb0]
call fcn.14005f50c
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, r13
jbe 0x14005b733
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, r14
jb 0x14005b72e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b72e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140063a8c
movss xmm1, dword [0x1400f02e0]
xorps xmm0, xmm0
call fcn.1400290ec
and dword [rbp + 0x70], 0
and dword [rbp + 0x74], 0
and dword [rbp + 0x80], 0
and dword [rbp + 0x84], 0
lea r9, [rbp + 0x70]
xor r8d, r8d
lea rdx, [rbp + 0x80]
lea rcx, str.Delete
call fcn.140049c9c
test al, al
je 0x14005b9ed
movsxd rcx, dword [0x140102328]
test ecx, ecx
js 0x14005b9ed
mov rax, qword [0x140103b48]
mov r8, qword [0x140103b40]
sub rax, r8
sar rax, 5
mov rdx, rcx
cmp rcx, rax
jae 0x14005b9ed
shl rdx, 5
add rdx, r8
lea rcx, [rbp + 0xf0]
call fcn.140006fa4
nop
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0xe0]
sub rax, rcx
cmp rax, 1
jb 0x14005ba62
lea r9, [rbp + 0xd0]
cmp qword [rbp + 0xe8], r13
cmova r9, qword [rbp + 0xd0]
mov qword [rsp + 0x30], 1
lea rax, [0x1400ef674]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0xb0]
call fcn.140013948
nop
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0xb0]
call fcn.140011888
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x90], xmm1
mov r8d, 0x20
mov rdx, rax
lea rcx, [rbp + 0x80]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
nop
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r13
mov byte [rbx], r15b
mov rdx, qword [rbp + 0xc8]
cmp rdx, r13
jbe 0x14005b8a6
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, r14
jb 0x14005b8a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b8a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140063a8c
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], r13
cmova rcx, qword [rbp + 0x80]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
jne 0x14005b958
movsxd rsi, dword [0x140102328]
shl rsi, 5
add rsi, qword [0x140103b40]
mov rbx, qword [0x140103b48]
lea rdi, [rsi + 0x20]
cmp rdi, rbx
je 0x14005b90b
mov rdx, rdi
mov rcx, rsi
call fcn.140011918
add rsi, 0x20
add rdi, 0x20
cmp rdi, rbx
jne 0x14005b8ec
mov rbx, qword [0x140103b48]
mov rdx, qword [rbx - 8]
cmp rdx, r13
jbe 0x14005b93d
mov rcx, qword [rbx - 0x20]
inc rdx
cmp rdx, r14
jb 0x14005b938
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005b98b
mov rcx, r8
call fcn.140063a8c
mov qword [rbx - 0x10], r15
mov qword [rbx - 8], r13
mov byte [rbx - 0x20], r15b
sub qword [0x140103b48], 0x20
mov dword [0x140102328], r12d
mov rdx, qword [rbp + 0x98]
cmp rdx, r13
jbe 0x14005b997
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, r14
jb 0x14005b992
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b992
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140063a8c
movdqa xmm0, xmmword [0x1400f0350]
movdqu xmmword [rbp + 0x90], xmm0
mov byte [rbp + 0x80], r15b
mov rdx, qword [rbp + 0x108]
cmp rdx, r13
jbe 0x14005b9ed
inc rdx
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, r14
jb 0x14005b9e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b9e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140063a8c
call fcn.14004b34c
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, r13
jbe 0x14005ba32
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, r14
jb 0x14005ba2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ba2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140063a8c
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140063600
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140004ad4
nop
lea r8, [rbp + 0xf0]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.1400060e0
int3