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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49eb3b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c448c]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov edx, dword [0x4c41fc]
mov dword [ebp - 0x220], eax
mov eax, dword [edx + 0xc]
mov edi, ecx
mov ecx, 0x4c41fc
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
push 0x103
lea edx, [ebp - 0x218]
push edx
xor ecx, ecx
mov dword [ebp - 4], ebx
push ebx
mov word [ebp - 0x218], cx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x44c3c1
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x44c2e1
sub eax, edx
sar eax, 1
dec eax
cmp eax, ebx
jle 0x44c31b
mov ecx, 0x5c
lea ebx, [ebx]
cmp word [ebp + eax*2 - 0x218], cx
je 0x44c311
dec eax
cmp eax, ebx
jg 0x44c300
jmp 0x44c31b
xor ecx, ecx
mov word [ebp + eax*2 - 0x218], cx
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x44c324
sub eax, edx
lea edx, [ebp - 0x218]
sar eax, 1
push edx
lea ecx, [ebp - 0x21c]
push ecx
mov ebx, eax
call fcn.00402e20
test edi, edi
jne 0x44c350
xor eax, eax
jmp 0x44c364
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44c355
sub eax, edx
sar eax, 1
push eax
push edi
lea ebx, [ebp - 0x21c]
call fcn.00418c50
mov esi, dword [ebp - 0x21c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44c3c1
add esi, 0xfffffff0
mov eax, esi
call fcn.00403e10
mov edi, dword [ebp - 0x220]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x44c51f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x44c51f
xor ecx, ecx
push ecx
push 0x24
lea edx, [ebp - 0x218]
push edx
push ecx
mov word [ebp - 0x218], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x44c48f
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44c3f0
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x21c]
push edx
mov ebx, eax
call fcn.00402e20
push 6
push str.media
lea ebx, [ebp - 0x21c]
call fcn.00418c50
test edi, edi
jne 0x44c42e
xor eax, eax
jmp 0x44c442
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44c433
sub eax, edx
sar eax, 1
push eax
push edi
lea ebx, [ebp - 0x21c]
call fcn.00418c50
mov esi, dword [ebp - 0x21c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44c48f
add esi, 0xfffffff0
mov eax, esi
call fcn.00403e10
mov edi, dword [ebp - 0x220]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x44c3ac
cmp dword [esi - 0xc], 0
mov ebx, dword [esi - 0x10]
lea eax, [esi - 0x10]
je 0x44c4ea
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x44c4c2
cmp dword [esi - 8], 0
jge 0x44c4b4
push 0x80070057
call fcn.004018d0
xor ecx, ecx
mov dword [esi - 0xc], 0
mov word [esi], cx
jmp 0x44c4ea
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44c4d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
add esi, 0xfffffff0
mov eax, esi
call fcn.00403e10
mov edi, dword [ebp - 0x220]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44c51f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
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.00474985
mov esp, ebp
pop ebp
ret 4