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

Disassembly:
push 0xffffffffffffffff
push 0x4a99b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov edi, dword [ebp]
xor eax, eax
cmp dword [edi - 0xc], eax
mov dword [esp + 0x14], eax
jl 0x468e89
lea eax, [edi - 0xc]
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x468eae
cmp edi, eax
mov ecx, dword [0x4cfea8]
mov dword [esp + 0x30], ecx
je 0x468e9e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov ebx, eax
lea esi, [esp + 0x34]
call fcn.00468b00
mov edi, dword [esp + 0x30]
mov dword [esp + 0x28], 0
mov ebx, dword [0x4cfea8]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x28], 1
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
jne 0x468edc
lea ebp, [eax - 0xf]
jmp 0x469034
mov eax, dword [edi - 8]
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
je 0x468f09
push 0x4bed2c
push 0x4bed2c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esp + 0x34]
call fcn.00468c00
mov edi, dword [esp + 0x30]
mov eax, dword [edi - 8]
test eax, eax
jge 0x468f15
or eax, 0xffffffff
jmp 0x468f30
push 0x4bed2c
push edi
call fcn.00488ed4
add esp, 8
test eax, eax
jne 0x468f2c
or eax, 0xffffffff
jmp 0x468f30
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x469028
lea esp, [esp]
lea ebp, [eax + 1]
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
lea ebx, [esp + 0x34]
call fcn.00468830
mov byte [esp + 0x28], 2
mov eax, dword [eax]
mov esi, dword [eax - 8]
push eax
lea eax, [esp + 0x20]
call fcn.00468c00
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x4cfe98
je 0x468f99
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x468f99
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00485e66
add esp, 4
mov esi, dword [edi - 8]
mov ebx, ebp
test ebx, ebx
jle 0x468fdc
test esi, esi
jle 0x468fdc
cmp ebx, esi
jle 0x468fac
mov ebx, esi
lea edi, [esp + 0x30]
call fcn.00468c90
mov edi, dword [esp + 0x30]
mov eax, esi
sub eax, ebx
lea ecx, [eax + eax + 2]
mov eax, dword [edi - 4]
push ecx
lea edx, [edi + ebx*2]
push edx
lea ecx, [eax + eax + 2]
push ecx
push edi
call fcn.00416830
add esp, 0x10
sub esi, ebx
mov dword [edi - 8], esi
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x468ff9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x469030
cmp dword [edi - 8], 0
jge 0x469004
or eax, 0xffffffff
jmp 0x46901f
push 0x4bed2c
push edi
call fcn.00488ed4
add esp, 8
test eax, eax
jne 0x46901b
or eax, 0xffffffff
jmp 0x46901f
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x468f40
mov dword [esp + 0x14], 1
mov ebp, dword [esp + 0x14]
lea edx, [ebx - 0xc]
cmp edx, 0x4cfe98
je 0x469056
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x469056
push esi
call fcn.00485e66
add esp, 4
lea eax, [edi - 0xc]
cmp eax, 0x4cfe98
je 0x469077
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x469077
push edi
call fcn.00485e66
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret