Function at 0x48f970
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5962fe
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x60b4e0]
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 ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], 0
call fcn.004b95f0
mov ecx, eax
call fcn.004b90c0
test al, al
jne 0x48f9f6
push 0x5a13b8
mov ecx, ebx
call fcn.00404a0e
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.0055a658
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
call fcn.00526109
mov ecx, eax
test ecx, ecx
je 0x48fd3a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x48faba
lea eax, [ebp - 0x220]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x48fa9c
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x48fa9c
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48fa74
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.004052ca
mov esi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x224]
push dword [ebp - 0x220]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esi - 0xc], 0
jne 0x48faf4
push 0x5a13b8
mov ecx, ebx
call fcn.00404a0e
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48f9d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48f9d6
push 0x5a72d0
lea ecx, [ebp - 0x22c]
call fcn.00404a0e
mov edi, eax
mov byte [ebp - 4], 1
call fcn.005322aa
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x228]
push dword [ecx + 0x50]
push edi
push eax
call fcn.0040591e
add esp, 0xc
mov eax, dword [eax]
mov ecx, eax
mov edi, dword [esi - 0xc]
sub ecx, esi
sar ecx, 1
mov byte [ebp - 4], 2
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], edi
test edx, edx
js 0x48fd44
test eax, eax
jne 0x48fb5f
xor edx, edx
mov dword [ebp - 0x230], edx
jmp 0x48fb71
push edx
push eax
call fcn.00561bbf
add esp, 8
mov dword [ebp - 0x230], eax
mov edx, eax
mov ecx, SysReAllocString
sub ecx, edx
cmp ecx, edi
jl 0x48fd4e
add edi, edx
js 0x48fd58
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x48fbb1
push edi
lea ecx, [ebp - 0x21c]
call fcn.00405195
mov esi, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x238]
lea ecx, [esi + eax*2]
cmp eax, dword [ebp - 0x234]
jbe 0x48fbc8
mov ecx, dword [ebp - 0x23c]
lea eax, [edx + edx]
push eax
push ecx
push eax
mov eax, dword [ebp - 0x234]
lea eax, [esi + eax*2]
push eax
call fcn.004815e0
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x48fd44
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
or edi, 0xffffffff
mov edx, dword [ebp - 0x228]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48fc16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x22c]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48fc37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48fd17
test al, 0x10
je 0x48fd17
push 0x5a72d0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040591e
add esp, 0xc
mov dword [ebp - 0x22c], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 4
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x48fc91
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x48fca7
call fcn.00526109
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x48fd62
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x22c]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x240], 2
mov ecx, dword [ecx]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
push ecx
push ebx
call fcn.00405b06
mov edx, dword [ebp - 0x228]
add esp, 0x14
mov dword [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48fd00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jmp 0x48fae1
push 0x5a13b8
mov ecx, ebx
call fcn.00404a0e
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jmp 0x48fae1
push 0x80004005
call fcn.00404c28
push 0x80070057
call fcn.00404c28
push 0x80070057
call fcn.00404c28
push 0x80070057
call fcn.00404c28
push 0x80004005
call fcn.00404c28
int3