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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597940
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
call fcn.0040bce0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x425257
push 0x80004005
call fcn.0040c390
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x42528a
push 0x104
lea ecx, [ebp - 0x24]
call fcn.0040c110
mov edi, dword [ebp - 0x24]
push 0
push 0x10
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [edi - 8]
push edi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x4255d8
cmp eax, dword [edi - 8]
jg 0x4255d8
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040c3c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4252f6
push 0x104
lea ecx, [ebp - 0x20]
call fcn.0040c110
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x4255d8
cmp eax, dword [esi - 8]
jg 0x4255d8
xor ecx, ecx
mov dword [esi - 0xc], eax
push edi
push esi
mov word [esi + eax*2], cx
call fcn.00551d79
add esp, 8
push dword [ebp + 8]
test eax, eax
je 0x4253b9
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov ecx, ebx
call fcn.0040c2d0
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x425366
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425383
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4253a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [ebp + 8]
test eax, eax
je 0x425338
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040c2d0
mov byte [ebp - 4], 3
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c2d0
mov byte [ebp - 4], 4
mov edx, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x42541b
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0040c110
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00551cd2
mov edx, eax
add esp, 8
test edx, edx
js 0x4255d8
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4255d8
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42546f
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push esi
push 0x5bc9c4
push eax
call fcn.00422de0
mov ebx, dword [ebp - 0x14]
add esp, 0x14
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x425533
mov eax, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ebx
call eax
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0040c2d0
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 4
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4254db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4254fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42551b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x42535c
push dword [ebp - 0x1c]
mov ebx, 2
lea eax, [ebp - 0x14]
push ebx
push dword [ebp - 0x10]
push esi
push str._s_s__
push eax
call fcn.00422de0
mov edi, dword [ebp - 0x14]
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42558d
nop
inc ebx
cmp ebx, 0x64
jg 0x4255d3
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push ebx
push dword [ebp - 0x10]
push esi
push str._s_s__
push eax
call fcn.00422de0
mov edi, dword [ebp - 0x14]
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x425560
push edi
mov eax, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
call eax
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0040c2d0
lea ecx, [ebp - 0x14]
call fcn.0040c450
lea ecx, [ebp - 0x10]
call fcn.0040c450
lea ecx, [ebp - 0x1c]
call fcn.0040c450
lea ecx, [ebp - 0x20]
call fcn.0040c450
lea ecx, [ebp - 0x24]
call fcn.0040c450
lea ecx, [ebp + 8]
call fcn.0040c450
jmp 0x4253a4
push dword [ebp + 8]
jmp 0x42558e
push 0x80070057
call fcn.0040c390
int3