Function at 0x140158c20
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xdc0
mov qword [rsp + 0xda0], 0xfffffffffffffffe
mov edx, 1
mov rcx, qword [rsp + 0xdd0]
call fcn.14007bfac
mov rcx, qword [rsp + 0xdd0]
add rcx, 0x220
call fcn.140006e20
movzx eax, al
test eax, eax
je 0x140158c7c
xor r8d, r8d
xor edx, edx
lea rcx, str.Image_name_cannot_be_empty.
call fcn.1400ef1c0
jmp 0x140159168
mov rcx, qword [rsp + 0xdd0]
add rcx, 0x218
call fcn.140006e20
movzx eax, al
test eax, eax
je 0x140158cad
xor r8d, r8d
xor edx, edx
lea rcx, str.Please_set_image_path.
call fcn.1400ef1c0
jmp 0x140159168
lea rcx, [rsp + 0x380]
call fcn.14000e6a0
nop
mov rax, qword [rsp + 0xdd0]
mov eax, dword [rax + 0x210]
mov dword [rsp + 0x518], eax
lea rcx, [rsp + 0x380]
call fcn.1401b7390
mov rdx, qword [rsp + 0xdd0]
add rdx, 0x220
lea rcx, [rsp + 0x520]
call fcn.140002d80
mov rdx, qword [rsp + 0xdd0]
add rdx, 0x218
lea rcx, [rsp + 0x528]
call fcn.140002d80
lea rcx, [rsp + 0x30]
call fcn.14000e6a0
nop
lea rax, [rsp + 0xd80]
mov qword [rsp + 0xd88], rax
mov rdx, qword [rsp + 0xdd0]
add rdx, 0x220
mov rcx, qword [rsp + 0xd88]
call fcn.140001430
mov qword [rsp + 0xda8], rax
mov rdx, qword [rsp + 0xda8]
lea rcx, [rsp + 0x30]
call fcn.1401cf4c0
test eax, eax
je 0x140158dc4
mov rax, qword [rsp + 0xdd0]
cmp dword [rax + 0x214], 0
je 0x140158d92
mov rax, qword [rsp + 0xdd0]
mov eax, dword [rax + 0x210]
cmp dword [rsp + 0x1c8], eax
je 0x140158dc4
xor r8d, r8d
mov edx, gethostbyname
lea rcx, str.The_image_name_already_exists.
call fcn.1400ef1c0
nop
lea rcx, [rsp + 0x30]
call fcn.140005db0
nop
lea rcx, [rsp + 0x380]
call fcn.140005db0
jmp 0x140159168
mov dword [rsp + 0x1c8], 0
lea rax, [rsp + 0xd90]
mov qword [rsp + 0xd98], rax
mov rdx, qword [rsp + 0xdd0]
add rdx, 0x218
mov rcx, qword [rsp + 0xd98]
call fcn.140001430
mov qword [rsp + 0xdb0], rax
mov rdx, qword [rsp + 0xdb0]
lea rcx, [rsp + 0x30]
call fcn.1401cf620
test eax, eax
je 0x140158e73
mov rax, qword [rsp + 0xdd0]
cmp dword [rax + 0x214], 0
je 0x140158e41
mov rax, qword [rsp + 0xdd0]
mov eax, dword [rax + 0x210]
cmp dword [rsp + 0x1c8], eax
je 0x140158e73
xor r8d, r8d
mov edx, gethostbyname
lea rcx, str.The_image_path_already_exists.
call fcn.1400ef1c0
nop
lea rcx, [rsp + 0x30]
call fcn.140005db0
nop
lea rcx, [rsp + 0x380]
call fcn.140005db0
jmp 0x140159168
mov rdx, qword [rsp + 0xdd0]
add rdx, 0x218
lea rcx, [rsp + 0x20]
call fcn.140001430
nop
mov dx, 0x2e
lea rcx, [rsp + 0x20]
call fcn.1400068a0
mov dword [rsp + 0x370], eax
cmp dword [rsp + 0x370], 0xffffffff
je 0x140158ec7
mov edx, dword [rsp + 0x370]
add edx, 1
lea r8, [0x140238158]
lea rcx, [rsp + 0x20]
call fcn.1400060e0
lea rcx, [rsp + 0x20]
call fcn.140023510
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140158f47
mov rax, qword [rsp + 0xdd0]
cmp dword [rax + 0x214], 0
je 0x140158f06
mov rax, qword [rsp + 0xdd0]
mov eax, dword [rax + 0x210]
cmp dword [rsp + 0x1c8], eax
je 0x140158f47
xor r8d, r8d
mov edx, 0x24
lea rcx, str.If_you_add_this_image__all_the_restore_points_it_had_will_be_lost._Want_to_continue_
call fcn.1400ef1c0
cmp eax, 7
jne 0x140158f47
lea rcx, [rsp + 0x20]
call fcn.140001490
nop
lea rcx, [rsp + 0x30]
call fcn.140005db0
nop
lea rcx, [rsp + 0x380]
call fcn.140005db0
jmp 0x140159168
lea rcx, [rsp + 0x380]
call fcn.1401b7780
test eax, eax
jne 0x140158f65
lea rcx, [rsp + 0x380]
call fcn.1401cef50
mov rcx, qword [rsp + 0xdd0]
mov eax, dword [rsp + 0x518]
mov dword [rcx + 0x210], eax
mov rax, qword [rsp + 0xdd0]
cmp dword [rax + 0x214], 0
jne 0x140159128
lea rcx, [rsp + 0x6c0]
call fcn.1401cc380
nop
lea rcx, [rsp + 0xa00]
call fcn.140007ac0
nop
lea rdx, [rsp + 0xa00]
lea rcx, [rsp + 0x6c0]
call fcn.1401ced10
mov dword [rsp + 0xa30], 0
jmp 0x140158fde
mov eax, dword [rsp + 0xa30]
add eax, 1
mov dword [rsp + 0xa30], eax
movsxd rbx, dword [rsp + 0xa30]
lea rcx, [rsp + 0xa00]
call fcn.140007b40
cmp rbx, rax
jae 0x14015910d
movsxd rdx, dword [rsp + 0xa30]
lea rcx, [rsp + 0xa00]
call fcn.140007b70
mov rcx, rax
add rcx, 0x1e8
call fcn.140023510
mov rcx, rax
call fcn.1400a948c
cmp eax, 0xffffffff
jne 0x14015902f
jmp 0x140158fcd
movsxd rdx, dword [rsp + 0xa30]
lea rcx, [rsp + 0xa00]
call fcn.140007b70
mov rcx, rax
add rcx, 0x1f0
call fcn.140023510
mov rcx, rax
call fcn.1400a948c
test eax, eax
jne 0x14015908f
movsxd rdx, dword [rsp + 0xa30]
lea rcx, [rsp + 0xa00]
call fcn.140007b70
mov rcx, rax
add rcx, 0x1f8
call fcn.140023510
mov rcx, rax
call fcn.1400a948c
test eax, eax
je 0x140159094
jmp 0x140158fcd
lea rcx, [rsp + 0xa40]
call fcn.1401cc380
nop
movsxd rdx, dword [rsp + 0xa30]
lea rcx, [rsp + 0xa00]
call fcn.140007b70
mov eax, dword [rax + 0x198]
mov dword [rsp + 0xbd8], eax
lea rcx, [rsp + 0xa40]
call fcn.1401d0fb0
lea rcx, [rsp + 0xc30]
mov r8d, dword [rsp + 0x518]
lea rdx, [0x14023821c]
call fcn.140002c40
lea rcx, [rsp + 0xa40]
call fcn.1401ceaa0
nop
lea rcx, [rsp + 0xa40]
call fcn.140005db0
jmp 0x140158fcd
lea rcx, [rsp + 0xa00]
call fcn.140007b10
nop
lea rcx, [rsp + 0x6c0]
call fcn.140005db0
mov edx, 1
mov ecx, 1
call fcn.1401b7f70
mov rcx, qword [rsp + 0xdd0]
call fcn.14008112c
nop
lea rcx, [rsp + 0x20]
call fcn.140001490
nop
lea rcx, [rsp + 0x30]
call fcn.140005db0
nop
lea rcx, [rsp + 0x380]
call fcn.140005db0
add rsp, 0xdc0
pop rbx
ret