Function at 0x495280
Capabilities:
Check if file exists
Create directory
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x641a74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
mov ebx, ecx
push esi
push 0x6fc418
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], ebx
call fcn.00622df8
mov esi, dword [ebx + 4]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0xa0], ebp
je 0x4952f8
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x4c]
push 0xa
mov edx, dword [eax + 8]
push ecx
push edx
call fcn.0060dd1f
add esp, 0xc
lea eax, [esp + 0x4c]
lea ecx, [esp + 0xc]
push eax
call fcn.0062308c
cmp esi, ebp
je 0x4952f8
push 0x20
lea ecx, [esp + 0x10]
call fcn.006230b3
jmp 0x4952c2
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov word [esp + 0x20], bp
push ebp
mov ecx, 0x6fca48
mov byte [esp + 0xa4], 1
call fcn.00401f10
push eax
push str._sScheduler
lea ecx, [esp + 0x28]
call fcn.0041da80
lea ecx, [esp + 0x1c]
call fcn.00401f10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49534d
push ebp
lea ecx, [esp + 0x20]
call fcn.00401f10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0xa4], 0
call fcn.00401070
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov word [esp + 0x18], bp
mov edi, dword [0x6fca48]
mov byte [esp + 0xa4], 2
cmp edi, ebp
jne 0x495383
mov edi, 0x6fca4c
mov edx, dword [ebx + 0x78]
lea ecx, [esp + 0x5c]
push 0xa
push ecx
push edx
call fcn.0060b264
mov esi, eax
mov eax, str._sSchedulerq__s.dt
add esp, 0xc
test eax, eax
je 0x4954cc
cmp edi, ebp
je 0x4954cc
cmp esi, ebp
je 0x4954cc
lea ecx, [esp + 0x20]
call fcn.004027c0
mov ebx, 3
push ebp
push str._sSchedulerq__s.dt
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], bl
call fcn.004027e0
push edi
lea ecx, [esp + 0x48]
call fcn.00401ee0
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8], 4
call fcn.00401ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 5
call fcn.00401070
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x38]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x44]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
je 0x495494
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, ebx
rep stosb byte es:[edi], al
lea ecx, [esp + 0x38]
call fcn.00401f10
push eax
lea ecx, [esp + 0x48]
call fcn.00401f10
push eax
lea ecx, [esp + 0x28]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 4
call fcn.00401070
lea ecx, [esp + 0x44]
mov byte [esp + 0xa4], bl
call fcn.00401070
lea ecx, [esp + 0x20]
mov byte [esp + 0xa4], 2
call fcn.00401070
mov ebx, dword [esp + 0x34]
xor ebp, ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x4954d8
lea eax, [esp + 0x18]
push 0x6d0ac4
push eax
call fcn.0060b21f
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x495561
call fcn.0060c9c8
mov edx, dword [0x6f7b78]
mov eax, dword [eax]
mov dword [esp + 0x30], edx
push ebp
lea ecx, [esp + 0x30]
push ebp
push ecx
push 0x400
push eax
push ebp
push 0x1100
mov byte [esp + 0xc0], 6
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x49552a
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push edx
push eax
mov eax, dword [0x6fd7a8]
push eax
push ecx
call fcn.0061fae1
mov edx, dword [esp + 0x3c]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x30]
mov byte [esp + 0xa4], 2
call fcn.00622d8a
jmp 0x495584
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
push ecx
push 1
push edx
call fcn.0060b0b5
push esi
call fcn.0060b038
add esp, 0x14
mov eax, dword [ebx + 0x78]
pop edi
cmp eax, 1
jne 0x495599
mov eax, dword [esp + 0xc]
mov ecx, ebx
push eax
call fcn.004955e0
lea ecx, [esp + 0x10]
mov byte [esp + 0xa0], 0
call fcn.00401070
lea ecx, [esp + 0xc]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 0x98]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret