Function at 0x49afc0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f80e8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x529748]
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 edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 0
call fcn.00415c00
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x49b013
push 0x80004005
call fcn.004162a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
mov edx, 0x5134f0
mov dword [ebp - 0x1c], 0
call fcn.0049c660
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
jne 0x49b052
push str.invalid_vector_T__subscript
call fcn.004bc548
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0048e020
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x49b084
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x49b0a0
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov edx, 0x5134f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.0049c660
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
jne 0x49b0d7
push str.invalid_vector_T__subscript
call fcn.004bc548
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.0049b720
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0049c100
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x49b115
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x49b129
push eax
call fcn.004191e0
add esp, 4
mov edi, dword [ebp - 0x14]
mov edx, dword [edi - 0xc]
test edx, edx
je 0x49b29a
cmp dword [esi - 0xc], 0
jne 0x49b193
lea ecx, [edi - 0x10]
lea ebx, [esi - 0x10]
cmp ecx, ebx
je 0x49b206
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x49b184
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x49b184
call fcn.0049ca30
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x49b179
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x49b206
push edx
push edi
lea ecx, [ebp - 0x18]
call fcn.0048ded0
mov esi, dword [ebp - 0x18]
jmp 0x49b206
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x49b1b7
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00415500
mov esi, dword [ebp - 0x18]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.004bf579
add esp, 8
test eax, eax
js 0x49b32e
cmp eax, dword [esi - 8]
jg 0x49b32e
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49b1f5
test al, 0x10
jne 0x49b206
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x49b319
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
call fcn.0049b720
mov byte [ebp - 4], 7
lea ebx, [edi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x49b26e
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x49b25f
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x49b25f
call fcn.0049ca30
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x49b257
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
jmp 0x49b26e
push dword [edx - 0xc]
lea ecx, [ebp - 0x14]
push edx
call fcn.0048ded0
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 4
or ecx, 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49b28f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi - 0xc]
test edx, edx
jne 0x49b137
xor ebx, ebx
add esi, 0xfffffff0
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49b2ba
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49b2dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x49b2fb
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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.004bd963
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
cmovne ebx, eax
jmp 0x49b29c
push 0x80070057
call fcn.004162a0
int3