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

Disassembly:
push 0xffffffffffffffff
push 0x5faeb4
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 0x6ce7c8
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], ebx
call fcn.005e11fa
mov esi, dword [ebx + 4]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0xa0], ebp
je 0x47a588
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x4c]
push 0xa
mov edx, dword [eax + 8]
push ecx
push edx
call fcn.005c8c1f
add esp, 0xc
lea eax, [esp + 0x4c]
lea ecx, [esp + 0xc]
push eax
call fcn.005e148e
cmp esi, ebp
je 0x47a588
push 0x20
lea ecx, [esp + 0x10]
call fcn.005e14b5
jmp 0x47a552
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov word [esp + 0x20], bp
mov ecx, 0x6cee40
mov byte [esp + 0xa0], 1
call fcn.00401f50
push eax
push str._sScheduler
lea ecx, [esp + 0x24]
call fcn.00418890
lea ecx, [esp + 0x1c]
call fcn.00401f50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47a5dc
push ebp
lea ecx, [esp + 0x20]
call fcn.00401f50
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 [0x6cee40]
mov byte [esp + 0xa4], 2
cmp edi, ebp
jne 0x47a612
mov edi, 0x6cee44
mov edx, dword [ebx + 0x64]
lea ecx, [esp + 0x5c]
push 0xa
push ecx
push edx
call fcn.005c62ca
mov esi, eax
mov eax, str._sSchedulerq__s.dt
add esp, 0xc
test eax, eax
je 0x47a74d
cmp edi, ebp
je 0x47a74d
cmp esi, ebp
je 0x47a74d
push eax
lea ecx, [esp + 0x48]
call fcn.00401ed0
mov ebx, 3
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], bl
call fcn.0040d680
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8], 4
call fcn.0040d680
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 5
call fcn.00401070
mov edi, dword [esp + 0x20]
cmp edi, ebp
jne 0x47a693
lea edi, [esp + 0x24]
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x38]
call fcn.00401f50
push eax
call fcn.005c4b4a
push edi
mov ebp, eax
call fcn.005c4b4a
add esi, ebp
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005dd58d
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x14], edi
je 0x47a715
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.00401f50
push eax
lea ecx, [esp + 0x24]
call fcn.00401f50
push eax
lea ecx, [esp + 0x4c]
call fcn.00401f50
push eax
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.005c4ada
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005c4b4a
add esp, 0x18
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 4
call fcn.00401070
lea ecx, [esp + 0x20]
mov byte [esp + 0xa4], bl
call fcn.00401070
lea ecx, [esp + 0x44]
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 0x47a759
lea eax, [esp + 0x18]
push 0x6a6a7c
push eax
call fcn.005c62b7
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x47a7e2
call fcn.005c77ef
mov edx, dword [0x6ca27c]
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 0x47a7ab
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push edx
push eax
mov eax, dword [0x6cf8f8]
push eax
push ecx
call fcn.005d9fbb
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.005e118c
jmp 0x47a805
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.005c614d
push esi
call fcn.005c60d0
add esp, 0x14
mov eax, dword [ebx + 0x64]
pop edi
cmp eax, 1
jne 0x47a81a
mov eax, dword [esp + 0xc]
mov ecx, ebx
push eax
call fcn.0047a860
lea ecx, [esp + 0x10]
mov byte [esp + 0xa0], 0
call fcn.00401070
lea ecx, [esp + 0xc]
mov dword [esp + 0xa0], 0xffffffff
call fcn.005e118c
mov ecx, dword [esp + 0x98]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret