Function at 0x140158b50
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.14007bfdc
mov rcx, qword [rsp + 0xdd0]
add rcx, 0x220
call fcn.140007b70
movzx eax, al
test eax, eax
je 0x140158bac
xor r8d, r8d
xor edx, edx
lea rcx, str.Image_name_cannot_be_empty.
call fcn.1400ef150
jmp 0x140159098
mov rcx, qword [rsp + 0xdd0]
add rcx, 0x218
call fcn.140007b70
movzx eax, al
test eax, eax
je 0x140158bdd
xor r8d, r8d
xor edx, edx
lea rcx, str.Please_set_image_path.
call fcn.1400ef150
jmp 0x140159098
lea rcx, [rsp + 0x380]
call fcn.14000efb0
nop
mov rax, qword [rsp + 0xdd0]
mov eax, dword [rax + 0x210]
mov dword [rsp + 0x518], eax
lea rcx, [rsp + 0x380]
call fcn.1401b8330
mov rdx, qword [rsp + 0xdd0]
add rdx, 0x220
lea rcx, [rsp + 0x520]
call fcn.140002d20
mov rdx, qword [rsp + 0xdd0]
add rdx, 0x218
lea rcx, [rsp + 0x528]
call fcn.140002d20
lea rcx, [rsp + 0x30]
call fcn.14000efb0
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.140001440
mov qword [rsp + 0xda8], rax
mov rdx, qword [rsp + 0xda8]
lea rcx, [rsp + 0x30]
call fcn.1401d0460
test eax, eax
je 0x140158cf4
mov rax, qword [rsp + 0xdd0]
cmp dword [rax + 0x214], 0
je 0x140158cc2
mov rax, qword [rsp + 0xdd0]
mov eax, dword [rax + 0x210]
cmp dword [rsp + 0x1c8], eax
je 0x140158cf4
xor r8d, r8d
mov edx, gethostbyname
lea rcx, str.The_image_name_already_exists.
call fcn.1400ef150
nop
lea rcx, [rsp + 0x30]
call fcn.140005d50
nop
lea rcx, [rsp + 0x380]
call fcn.140005d50
jmp 0x140159098
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.140001440
mov qword [rsp + 0xdb0], rax
mov rdx, qword [rsp + 0xdb0]
lea rcx, [rsp + 0x30]
call fcn.1401d05c0
test eax, eax
je 0x140158da3
mov rax, qword [rsp + 0xdd0]
cmp dword [rax + 0x214], 0
je 0x140158d71
mov rax, qword [rsp + 0xdd0]
mov eax, dword [rax + 0x210]
cmp dword [rsp + 0x1c8], eax
je 0x140158da3
xor r8d, r8d
mov edx, gethostbyname
lea rcx, str.The_image_path_already_exists.
call fcn.1400ef150
nop
lea rcx, [rsp + 0x30]
call fcn.140005d50
nop
lea rcx, [rsp + 0x380]
call fcn.140005d50
jmp 0x140159098
mov rdx, qword [rsp + 0xdd0]
add rdx, 0x218
lea rcx, [rsp + 0x20]
call fcn.140001440
nop
mov dx, 0x2e
lea rcx, [rsp + 0x20]
call fcn.140006840
mov dword [rsp + 0x370], eax
cmp dword [rsp + 0x370], 0xffffffff
je 0x140158df7
mov edx, dword [rsp + 0x370]
add edx, 1
lea r8, [0x140239158]
lea rcx, [rsp + 0x20]
call fcn.140006080
lea rcx, [rsp + 0x20]
call fcn.1400012c0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140158e77
mov rax, qword [rsp + 0xdd0]
cmp dword [rax + 0x214], 0
je 0x140158e36
mov rax, qword [rsp + 0xdd0]
mov eax, dword [rax + 0x210]
cmp dword [rsp + 0x1c8], eax
je 0x140158e77
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.1400ef150
cmp eax, 7
jne 0x140158e77
lea rcx, [rsp + 0x20]
call fcn.140001470
nop
lea rcx, [rsp + 0x30]
call fcn.140005d50
nop
lea rcx, [rsp + 0x380]
call fcn.140005d50
jmp 0x140159098
lea rcx, [rsp + 0x380]
call fcn.1401b8720
test eax, eax
jne 0x140158e95
lea rcx, [rsp + 0x380]
call fcn.1401cfef0
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 0x140159058
lea rcx, [rsp + 0x6c0]
call fcn.1401cd320
nop
lea rcx, [rsp + 0xa00]
call fcn.140007bb0
nop
lea rdx, [rsp + 0xa00]
lea rcx, [rsp + 0x6c0]
call fcn.1401cfcb0
mov dword [rsp + 0xa30], 0
jmp 0x140158f0e
mov eax, dword [rsp + 0xa30]
add eax, 1
mov dword [rsp + 0xa30], eax
movsxd rbx, dword [rsp + 0xa30]
lea rcx, [rsp + 0xa00]
call fcn.140007c30
cmp rbx, rax
jae 0x14015903d
movsxd rdx, dword [rsp + 0xa30]
lea rcx, [rsp + 0xa00]
call fcn.140007c60
mov rcx, rax
add rcx, 0x1e8
call fcn.1400012c0
mov rcx, rax
call fcn.1400a947c
cmp eax, 0xffffffff
jne 0x140158f5f
jmp 0x140158efd
movsxd rdx, dword [rsp + 0xa30]
lea rcx, [rsp + 0xa00]
call fcn.140007c60
mov rcx, rax
add rcx, 0x1f0
call fcn.1400012c0
mov rcx, rax
call fcn.1400a947c
test eax, eax
jne 0x140158fbf
movsxd rdx, dword [rsp + 0xa30]
lea rcx, [rsp + 0xa00]
call fcn.140007c60
mov rcx, rax
add rcx, 0x1f8
call fcn.1400012c0
mov rcx, rax
call fcn.1400a947c
test eax, eax
je 0x140158fc4
jmp 0x140158efd
lea rcx, [rsp + 0xa40]
call fcn.1401cd320
nop
movsxd rdx, dword [rsp + 0xa30]
lea rcx, [rsp + 0xa00]
call fcn.140007c60
mov eax, dword [rax + 0x198]
mov dword [rsp + 0xbd8], eax
lea rcx, [rsp + 0xa40]
call fcn.1401d1f50
lea rcx, [rsp + 0xc30]
mov r8d, dword [rsp + 0x518]
lea rdx, [0x14023921c]
call fcn.140002be0
lea rcx, [rsp + 0xa40]
call fcn.1401cfa40
nop
lea rcx, [rsp + 0xa40]
call fcn.140005d50
jmp 0x140158efd
lea rcx, [rsp + 0xa00]
call fcn.140007c00
nop
lea rcx, [rsp + 0x6c0]
call fcn.140005d50
mov edx, 1
mov ecx, 1
call fcn.1401b8f10
mov rcx, qword [rsp + 0xdd0]
call fcn.14008115c
nop
lea rcx, [rsp + 0x20]
call fcn.140001470
nop
lea rcx, [rsp + 0x30]
call fcn.140005d50
nop
lea rcx, [rsp + 0x380]
call fcn.140005d50
add rsp, 0xdc0
pop rbx
ret