Function at 0x419530
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455ffc
mov eax, dword fs:[0]
push eax
sub esp, 0x624
mov eax, dword [0x47f060]
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 edi, ecx
mov eax, dword [0x4831cc]
test al, 1
jne 0x419589
or eax, 1
push ecx
mov dword [0x4831cc], eax
call fcn.0041a320
call fcn.0041a530
push 0x45afc0
call fcn.004521b7
add esp, 4
mov ecx, 0x483160
call fcn.0041bf20
xor cl, cl
call fcn.00409d10
push 0x206
push 0
test al, al
je 0x419668
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040b7f0
mov eax, dword [0x48277c]
mov esi, dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
test eax, eax
jne 0x41960d
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x62c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4195ff
mov ecx, eax
call fcn.004122b0
jmp 0x419601
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x48277c], eax
cmp word [ebp - 0x218], 0
lea edx, [eax + 0x90]
jne 0x419621
xor ecx, ecx
jmp 0x41963f
lea ecx, [ebp - 0x218]
lea ebx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419630
sub ecx, ebx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, edx
call fcn.00406c00
lea eax, [ebp - 0x218]
push eax
push 0x461430
push edi
call fcn.00405ac0
add esp, 0xc
jmp 0x419718
xor eax, eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x628]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x628]
push eax
push str._siSafe_
push edi
call fcn.00405ac0
mov eax, dword [0x48277c]
mov esi, dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 0xc
test eax, eax
jne 0x4196e9
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x62c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4196db
mov ecx, eax
call fcn.004122b0
jmp 0x4196dd
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x48277c], eax
cmp word [edi], 0
lea edx, [eax + 0x90]
jne 0x4196f9
xor ecx, ecx
jmp 0x41970f
mov ecx, edi
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419700
sub ecx, ebx
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.00406c00
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x48277c]
add esp, 0xc
test eax, eax
jne 0x419771
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x62c], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x419763
mov ecx, eax
call fcn.004122b0
jmp 0x419765
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x48277c], eax
add eax, 0x90
cmp dword [eax + 0x14], 8
jb 0x41977e
mov eax, dword [eax]
push 0x462aac
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41987f
mov eax, dword [0x4831cc]
test al, 1
jne 0x4197cf
or eax, 1
push ecx
mov dword [0x4831cc], eax
call fcn.0041a320
call fcn.0041a530
push 0x45afc0
call fcn.004521b7
add esp, 4
lea eax, [ebp - 0x420]
push eax
mov ecx, 0x483160
call fcn.0041abe0
mov eax, dword [0x48277c]
test eax, eax
jne 0x41981b
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x62c], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x41980d
mov ecx, eax
call fcn.004122b0
jmp 0x41980f
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x48277c], eax
cmp dword [eax + 0xa4], 8
lea esi, [eax + 0x90]
jb 0x41982c
mov esi, dword [esi]
mov eax, dword [0x4831cc]
test al, 1
jne 0x419855
or eax, 1
push ecx
mov dword [0x4831cc], eax
call fcn.0041a320
call fcn.0041a530
push 0x45afc0
call fcn.004521b7
add esp, 4
cmp word [esi], 0
jne 0x41985f
xor ecx, ecx
jmp 0x419873
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419864
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, 0x483160
call fcn.00406c00
mov eax, edi
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.00452076
mov esp, ebp
pop ebp
ret