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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5adace
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x6244f8]
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.004ab2c0
mov ecx, eax
call fcn.004aad90
test al, al
jne 0x481258
call fcn.0053955f
mov ecx, eax
test ecx, ecx
je 0x4815d4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x5bbe20
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00404e26
test al, al
jne 0x481238
push 0
push 0x5bbe20
mov ecx, ebx
call fcn.004054b5
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.0056e41f
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
call fcn.0053955f
mov ecx, eax
test ecx, ecx
je 0x4815d4
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 0x48131b
lea eax, [ebp - 0x220]
push eax
push 0x1a
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4812fd
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4812fd
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4812d5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.004054b5
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 0x481347
push 0x5bbe20
mov ecx, ebx
call fcn.00404b51
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jmp 0x4815b7
push 0x5c1bec
lea ecx, [ebp - 0x22c]
call fcn.00404b51
mov edi, eax
mov byte [ebp - 4], 2
call fcn.00545615
mov eax, dword [eax + 4]
push dword [eax + 0x50]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00405b8d
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 0x4815ca
test eax, eax
jne 0x4813b2
xor edx, edx
mov dword [ebp - 0x230], edx
jmp 0x4813c4
push edx
push eax
call fcn.00574deb
add esp, 8
mov dword [ebp - 0x230], eax
mov edx, eax
mov eax, SysReAllocString
sub eax, edx
cmp eax, edi
jl 0x4815ca
add edi, edx
js 0x4815ca
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x481404
push edi
lea ecx, [ebp - 0x21c]
call fcn.004053a9
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 0x48141d
mov eax, dword [ebp - 0x23c]
lea ecx, [esi + ecx*2]
add edx, edx
je 0x481454
test ecx, ecx
je 0x481444
push edx
test eax, eax
je 0x481439
push eax
push ecx
call fcn.00570860
add esp, 0xc
jmp 0x481454
push 0
push ecx
call fcn.00570de0
add esp, 0xc
call fcn.0057524b
mov dword [eax], 0x16
call fcn.00574b40
cmp edi, dword [esi - 8]
jg 0x4815ca
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 0x48148a
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 0x4814ab
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 0x481599
test al, 0x10
je 0x481599
push 0x5c1bec
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00405b8d
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 0x481505
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x48151b
call fcn.0053955f
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4815de
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.00405d60
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 0x481574
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 0x481238
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x481238
push 0x5bbe20
mov ecx, ebx
call fcn.00404b51
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x481238
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x481238
push 0x80070057
call fcn.00404e00
push 0x80004005
call fcn.00404e00
push 0x80004005
call fcn.00404e00
int3