Function at 0x100051e0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x10196fc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0xc34], ax
xor ebx, ebx
lea eax, [ebp - 0xc32]
push eax
call fcn.1011e210
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.1011e210
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.1011e210
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push eax
call fcn.1011e210
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.1011e210
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1011e210
add esp, 0x48
lea eax, [ebp - 0xc34]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xc34]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x100052b1
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.1011e690
add esp, 8
test eax, eax
jne 0x100052f5
mov ecx, edi
call fcn.10004db0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011d762
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov word [eax], cx
lea ebx, [ebx]
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x826], ax
test ax, ax
jne 0x10005300
lea ecx, [ebp - 0x824]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10005321
mov eax, dword [str.Local]
mov dword [ecx], eax
mov eax, dword [0x10148a98]
mov dword [ecx + 4], eax
mov eax, dword [0x10148a9c]
mov dword [ecx + 8], eax
mov ax, word [0x10148aa0]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x824]
push eax
call esi
test eax, eax
mov ecx, 1
mov eax, ebx
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0xc38], eax
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x61e], ax
test ax, ax
jne 0x10005372
lea ecx, [ebp - 0x61c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10005393
mov eax, dword [str.LocalLow]
mov dword [ecx], eax
mov eax, dword [0x10148aa8]
mov dword [ecx + 4], eax
mov eax, dword [0x10148aac]
mov dword [ecx + 8], eax
mov eax, dword [0x10148ab0]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10148ab4]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x61c]
push eax
call esi
test eax, eax
mov ecx, 1
mov eax, ebx
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0xc3c], eax
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xa2e], ax
test ax, ax
jne 0x100053e3
lea ecx, [ebp - 0xa2c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10005404
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x10148abc]
mov dword [ecx + 4], eax
mov eax, dword [0x10148ac0]
mov dword [ecx + 8], eax
mov eax, dword [0x10148ac4]
mov dword [ecx + 0xc], eax
mov ax, word [0x10148ac8]
mov word [ecx + 0x10], ax
lea eax, [ebp - 0xa2c]
push eax
call esi
test eax, eax
mov eax, 1
cmovne ebx, eax
mov eax, dword [ebp - 0xc38]
test eax, eax
je 0x10005512
mov eax, dword [ebp - 0xc3c]
test eax, eax
je 0x10005512
test ebx, ebx
je 0x10005512
push str.WnPicView
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x10148ae0
push eax
call fcn.1011d6a3
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x100054ac
lea eax, [ebp - 0x20c]
push eax
call fcn.10006d10
add esp, 4
cmp word [ebp - 0x20c], 0
jne 0x100054d9
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [edi + 0x34]
call fcn.10002c30
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011d762
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100054e2
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x34]
call fcn.10002c30
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011d762
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.10004db0
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.1011d762
mov esp, ebp
pop ebp
ret