Function at 0x49b075
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x50fee0
call fcn.004d02ab
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x18], 0x80004005
call fcn.004028b3
xor ebx, ebx
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x1c]
call fcn.0040d18b
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.004022e5
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.004028da
push 0x52a100
lea eax, [ebp - 0x14]
call fcn.0040d65b
push dword [ebp - 0x14]
mov esi, dword [0x51a4b0]
call esi
test eax, eax
jne 0x49b11f
lea eax, [ebp - 0x20]
push 1
push eax
mov ebx, str.BinPath
call fcn.0040d2b0
pop ecx
pop ecx
mov byte [ebp - 4], 4
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.004022e5
mov byte [ebp - 4], 5
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x14]
call fcn.00403a2e
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push eax
call fcn.004025f7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004028da
xor ebx, ebx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
jne 0x49b13d
push str.ERROR_CHECK_BOOLEX:_IsStrEmpty_pathKLiveBin.m_strPath_
mov dword [ebp - 0x18], 0x80004005
push 0x96
jmp 0x49b50f
lea eax, [ebp - 0x14]
call fcn.004707d9
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.0040283d
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
je 0x49b505
push eax
call esi
test eax, eax
je 0x49b505
push dword [ebp - 0x14]
call dword [0x51a4b4]
test eax, eax
je 0x49b505
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x49b188
cmp word [eax], bx
jne 0x49b197
push str.ERROR_CHECK_BOOL:_IsStrEmpty__LPCTSTR_m_pathTemp_
push 0x9d
jmp 0x49b50f
lea esi, [edi + 8]
mov eax, dword [esi]
cmp eax, ebx
je 0x49b1a5
cmp word [eax], bx
jne 0x49b1b4
push str.ERROR_CHECK_BOOL:_IsStrEmpty__LPCTSTR_m_pathTemp_res_
push 0x9e
jmp 0x49b50f
add edi, 0xc
mov eax, dword [edi]
cmp eax, ebx
je 0x49b1c2
cmp word [eax], bx
jne 0x49b1d1
push str.ERROR_CHECK_BOOL:_IsStrEmpty__LPCTSTR_m_pathTemp_setup_
push 0x9f
jmp 0x49b50f
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push edi
push eax
call fcn.004029d3
mov byte [ebp - 4], 6
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
mov ebx, 0x53bcc8
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 7
mov byte [ebp - 4], 3
call fcn.0049d3be
test eax, eax
jne 0x49b219
push str.ERROR_CHECK_BOOL:_CopyFileToDir_strPathKLiveBin___T__klive.exe____m_pathTemp_setup_
push 0xa2
jmp 0x49b50f
push dword [edi]
lea eax, [ebp - 0x20]
push eax
call fcn.004025b6
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str._setup.exe
push ecx
mov ecx, eax
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 9
push dword [edi]
lea eax, [ebp + 8]
push eax
call fcn.004025b6
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push ebx
push ecx
mov ecx, eax
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xc
call fcn.0049d4f9
test eax, eax
sete bl
mov byte [ebp - 4], 8
lea ecx, [ebp + 8]
call fcn.004028da
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004028da
test bl, bl
je 0x49b29e
push str.ERROR_CHECK_BOOL:_MoveFile_CString__LPCTSTR_m_pathTemp_setup____T__klive.exe____CString__LPCTSTR_m_pathTemp_setup____T___setup.exe___
push 0xa4
jmp 0x49b50f
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push esi
push eax
call fcn.004029d3
mov byte [ebp - 4], 0xd
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push str.klive.dll
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 3
call fcn.0049d3be
test eax, eax
jne 0x49b2e5
push str.ERROR_CHECK_BOOL:_CopyFileToDir_strPathKLiveBin___T__klive.dll____m_pathTemp_res_
push 0xa7
jmp 0x49b50f
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push esi
push eax
call fcn.004029d3
mov byte [ebp - 4], 0xf
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push str.kliveshellext.dll
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 3
call fcn.0049d3be
test eax, eax
jne 0x49b32c
push str.ERROR_CHECK_BOOL:_CopyFileToDir_strPathKLiveBin___T__kliveshellext.dll____m_pathTemp_res_
push 0xa8
jmp 0x49b50f
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push esi
push eax
call fcn.004029d3
mov byte [ebp - 4], 0x11
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push str.kliveshellext64.dll
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 3
call fcn.0049d3be
test eax, eax
jne 0x49b373
push str.ERROR_CHECK_BOOL:_CopyFileToDir_strPathKLiveBin___T__kliveshellext64.dll____m_pathTemp_res_
push 0xa9
jmp 0x49b50f
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push esi
push eax
call fcn.004029d3
mov byte [ebp - 4], 0x13
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push str.KLiveUpdate.exe
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 3
call fcn.0049d3be
test eax, eax
jne 0x49b3ba
push str.ERROR_CHECK_BOOL:_CopyFileToDir_strPathKLiveBin___T__KLiveUpdate.exe____m_pathTemp_res_
push 0xac
jmp 0x49b50f
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push esi
push eax
call fcn.004029d3
mov byte [ebp - 4], 0x15
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push 0x53c238
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 3
call fcn.0049d3be
test eax, eax
jne 0x49b401
push str.ERROR_CHECK_BOOL:_CopyFileToDir_strPathKLiveBin___T__uninst.exe____m_pathTemp_res_
push 0xad
jmp 0x49b50f
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push esi
push eax
call fcn.004029d3
mov byte [ebp - 4], 0x17
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
mov edi, str._Familial_Affection_Config_.ini
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 3
call fcn.0049d3be
test eax, eax
jne 0x49b449
push str.ERROR_CHECK_BOOL:_CopyFileToDir_strPathKLiveBin___T___Familial_Affection_Config_.ini____m_pathTemp_res_
push 0xb0
jmp 0x49b50f
push dword [esi]
lea eax, [ebp - 0x20]
push eax
call fcn.004025b6
mov byte [ebp - 4], 0x19
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.klive.ini
push ecx
mov ecx, eax
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 0x1a
push dword [esi]
lea eax, [ebp + 8]
push eax
call fcn.004025b6
mov byte [ebp - 4], 0x1b
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
push ecx
mov ecx, eax
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0x1d
call fcn.0049d4f9
test eax, eax
sete bl
mov byte [ebp - 4], 0x19
lea ecx, [ebp + 8]
call fcn.004028da
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004028da
test bl, bl
je 0x49b4cb
push str.ERROR_CHECK_BOOL:_MoveFile_CString__LPCTSTR_m_pathTemp_res____T___Familial_Affection_Config_.ini____CString__LPCTSTR_m_pathTemp_res____T__klive.ini___
push 0xb2
jmp 0x49b50f
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push esi
push eax
call fcn.004029d3
mov byte [ebp - 4], 0x1e
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push str._res
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 0x1f
mov byte [ebp - 4], 3
call fcn.0049d1b1
and dword [ebp - 0x18], 0
jmp 0x49b51c
push str.ERROR_CHECK_BOOL:_IsStrEmpty_pathKLiveBin.m_strPath___pathKLiveBin.FileExists____pathKLiveBin.IsDirectory__
push 0x9b
push str..dlgmakeinstallpackdlgSimpleKLivePacker.cpp
push 5
pop ecx
call fcn.0040ef48
mov byte [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.004025f7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004028da
mov eax, dword [ebp - 0x18]
call fcn.004d0383
ret 4