Function at 0x4495d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c476d
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x449775
cmp eax, 2
je 0x449775
test eax, eax
je 0x4496b9
cmp eax, 4
je 0x4496b9
cmp eax, 5
jne 0x449c4b
push 0x5f8398
lea ecx, [ebp - 0x58]
call fcn.00408810
push str.Config.xml
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x13
call fcn.00408810
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x74]
mov edx, 0xc9
push eax
push str.CONFIG
lea ecx, [ebp - 0x8c]
call fcn.00436e10
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.0040d2b0
lea ecx, [ebp - 0x8c]
call fcn.004087d0
lea ecx, [ebp - 0x74]
call fcn.004087d0
lea ecx, [ebp - 0x58]
call fcn.004087d0
jmp 0x449c4b
lea ecx, [ebp - 0x28]
call fcn.0051df90
test al, al
jne 0x44971c
mov eax, fcn.00440db0
test eax, eax
je 0x4496f1
push str.Failed_to_get_current_application_directory_path.
push 0x5f8398
push 0x5f8398
push str.ESDProductData
push 0x5f8398
push 0x28
call fcn.00440db0
add esp, 0x18
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov word [ebx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.0040c680
lea ecx, [ebp - 0x28]
call fcn.004087d0
jmp 0x449c7e
push str.resources
lea ecx, [ebp - 0x74]
call fcn.00408810
push ecx
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x28]
call fcn.0051e7b0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.004087d0
push str.config.xml
lea ecx, [ebp - 0x74]
call fcn.00408810
push ecx
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x28]
call fcn.0051e7b0
add esp, 4
lea ecx, [ebp - 0x74]
call fcn.004087d0
jmp 0x449c4b
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0051e170
test al, al
jne 0x449811
mov eax, fcn.00440db0
test eax, eax
je 0x4497c5
push str.Failed_to_get_asf_file_path.
push 0x5f8398
push 0x5f8398
push str.ESDProductData
push 0x5f8398
push 0x28
call fcn.00440db0
add esp, 0x18
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov word [ebx], ax
lea eax, [ebp - 0x40]
push eax
call fcn.0040c680
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4497f8
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x449c69
push str.Installer
lea ecx, [ebp - 0x58]
call fcn.00408810
push ecx
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0051e7b0
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x44984a
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409510
push str.Icons
lea ecx, [ebp - 0x58]
call fcn.00408810
push ecx
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0051e7b0
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x449883
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409510
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408f10
mov ecx, dword [esi + 0x54]
lea eax, [ebp - 0x74]
push eax
call fcn.004452f0
mov edi, eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x54]
push eax
call fcn.004454c0
mov esi, eax
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 5
push eax
mov ecx, dword [ecx + 0x54]
call fcn.004452b0
push 0x601110
push eax
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 6
push eax
call fcn.0041efd0
add esp, 0xc
push esi
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xec]
call fcn.00410c70
add esp, 4
push 0x601110
push eax
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 8
push eax
call fcn.0041efd0
add esp, 0xc
push edi
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xbc]
call fcn.00410c70
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.0051e7b0
mov eax, dword [ebp - 0xa8]
add esp, 4
cmp eax, 8
jb 0x449951
inc eax
lea ecx, [ebp - 0xbc]
push eax
push dword [ebp - 0xbc]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xac], 0
cmp eax, 8
jb 0x44998c
inc eax
lea ecx, [ebp - 0xd4]
push eax
push dword [ebp - 0xd4]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xc4], 0
cmp eax, 8
jb 0x4499c7
inc eax
lea ecx, [ebp - 0xec]
push eax
push dword [ebp - 0xec]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xdc], 0
cmp eax, 8
jb 0x449a02
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x94], 0
cmp eax, 8
jb 0x449a3a
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x7c], 0
cmp eax, 8
jb 0x449a66
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409510
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x449a93
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00409510
push str.config.xml
lea ecx, [ebp - 0x58]
call fcn.00408810
push ecx
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.0051e7b0
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x449acc
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409510
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x449c36
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408f10
mov edi, dword [ebp - 0x5c]
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [edi + 0x54]
call fcn.004454c0
mov esi, eax
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0xc
mov ecx, dword [edi + 0x54]
push eax
call fcn.004452b0
push 0x601110
push eax
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0xd
push eax
call fcn.0041efd0
add esp, 0xc
push esi
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x58]
call fcn.00410c70
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
call fcn.0051e7b0
mov eax, dword [ebp - 0x44]
add esp, 4
cmp eax, 8
jb 0x449b67
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x449b96
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x7c], 0
cmp eax, 8
jb 0x449bcb
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.00409510
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0xa4], ax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], 0
cmp eax, 8
jb 0x449c01
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00409510
push str.config.xml
lea ecx, [ebp - 0x58]
call fcn.00408810
push ecx
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.0051e7b0
mov eax, dword [ebp - 0x44]
add esp, 4
cmp eax, 8
jb 0x449c36
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409510
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x449c4b
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409510
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov word [ebx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.0040c680
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x449c7e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409510
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 8