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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bbc2e
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x634b28]
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.004b8250
mov ecx, eax
call fcn.004b7d20
test al, al
jne 0x48e168
call fcn.0054671f
mov ecx, eax
test ecx, ecx
je 0x48e4e4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x5ca050
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00404da4
test al, al
jne 0x48e148
push 0
push 0x5ca050
mov ecx, ebx
call fcn.004055f4
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.0057b6ac
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
call fcn.0054671f
mov ecx, eax
test ecx, ecx
je 0x48e4e4
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], 1
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x48e22b
lea eax, [ebp - 0x220]
push eax
push 0x1a
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x48e20d
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x48e20d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e1e5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.004055f4
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 0x48e257
push 0x5ca050
mov ecx, ebx
call fcn.00404ab8
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jmp 0x48e4c7
push 0x5ce15c
lea ecx, [ebp - 0x22c]
call fcn.00404ab8
mov edi, eax
mov byte [ebp - 4], 2
call fcn.005527d5
mov eax, dword [eax + 4]
push dword [eax + 0x50]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00405d6d
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], 3
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], edi
test edx, edx
js 0x48e4da
test eax, eax
jne 0x48e2c2
xor edx, edx
mov dword [ebp - 0x230], edx
jmp 0x48e2d4
push edx
push eax
call fcn.005828be
add esp, 8
mov dword [ebp - 0x230], eax
mov edx, eax
mov eax, SysReAllocString
sub eax, edx
cmp eax, edi
jl 0x48e4da
add edi, edx
js 0x48e4da
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x48e314
push edi
lea ecx, [ebp - 0x21c]
call fcn.004054e8
mov esi, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x234]
cmp eax, ecx
lea eax, [esi + eax*2]
jbe 0x48e32d
mov eax, dword [ebp - 0x23c]
lea ecx, [esi + ecx*2]
add edx, edx
je 0x48e364
test ecx, ecx
je 0x48e354
push edx
test eax, eax
je 0x48e349
push eax
push ecx
call fcn.0057e070
add esp, 0xc
jmp 0x48e364
push 0
push ecx
call fcn.0057e5f0
add esp, 0xc
call fcn.00582661
mov dword [eax], 0x16
call fcn.00582350
cmp edi, dword [esi - 8]
jg 0x48e4da
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], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48e39a
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], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48e3bb
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 0x48e4a9
test al, 0x10
je 0x48e4a9
push 0x5ce15c
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00405d6d
add esp, 0xc
mov dword [ebp - 0x22c], eax
mov eax, dword [eax]
mov byte [ebp - 4], 5
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x48e415
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x48e42b
call fcn.0054671f
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x48e4ee
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.00405f2a
mov edx, dword [ebp - 0x228]
add esp, 0x14
mov dword [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48e484
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
jg 0x48e148
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x48e148
push 0x5ca050
mov ecx, ebx
call fcn.00404ab8
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x48e148
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48e148
push 0x80070057
call fcn.00404d7e
push 0x80004005
call fcn.00404d7e
push 0x80004005
call fcn.00404d7e
int3