Function at 0x40e150
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x51c63a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
xor edi, edi
mov dword [esp + 0x18], vtable.GameMgr::GMSeeds.0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov ecx, ebp
mov dword [esp + 0x84], edi
xor ebx, ebx
call fcn.0040ed60
test eax, eax
jbe 0x40e26a
xor esi, esi
mov dword [esp + 0x8c], esi
mov eax, dword [ebp + 4]
cmp eax, edi
je 0x40e1e2
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40e1e8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 4]
mov edx, dword [esi + eax]
lea ecx, [esi + eax]
mov eax, dword [edx + 0x10]
call eax
test al, al
je 0x40e247
mov eax, dword [ebp + 4]
cmp eax, edi
je 0x40e21b
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40e221
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebp + 4]
add edi, esi
lea esi, [esp + 0x1c]
call fcn.0040f500
mov esi, eax
cmp edi, esi
je 0x40e245
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov ecx, esi
call fcn.00415fa0
xor edi, edi
mov esi, dword [esp + 0x8c]
add esi, 0x50
mov ecx, ebp
add ebx, 1
mov dword [esp + 0x8c], esi
call fcn.0040ed60
cmp ebx, eax
jb 0x40e1c1
mov esi, 0x10
cmp dword [ebp + 0x38], esi
jb 0x40e279
mov eax, dword [ebp + 0x24]
jmp 0x40e27c
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e2a4
test al, 1
je 0x40e2a4
cmp dword [ebp + 0x38], esi
jb 0x40e296
mov ecx, dword [ebp + 0x24]
jmp 0x40e299
lea ecx, [ebp + 0x24]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp + 0x38], esi
jb 0x40e2ae
mov ebp, dword [ebp + 0x24]
jmp 0x40e2b1
add ebp, 0x24
push 0x80
push 0x8301
push ebp
call dword [sym.imp.MSVCR80.dll__open]
add esp, 0xc
cmp eax, edi
jle 0x40e304
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_google::protobuf::io::FileOutputStream::constructor_int__int_]
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x88], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call dword [sym.imp.K8Common.dll_public:_bool___thiscall_google::protobuf::MessageLite::SerializeToZeroCopyStream_class_google::protobuf::io::ZeroCopyOutputStream__const]
lea ecx, [esp + 0x34]
mov byte [esp + 0x84], 0
call dword [sym.imp.K8Common.dll_public_virtual:_void___thiscall_google::protobuf::io::FileOutputStream::destructor_void_]
mov dword [esp + 0x18], vtable.GameMgr::GMSeeds.0
mov dword [esp + 0x84], 2
xor esi, esi
cmp dword [esp + 0x24], edi
jle 0x40e33c
nop
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + esi*4]
cmp ecx, edi
je 0x40e333
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
add esi, 1
cmp esi, dword [esp + 0x24]
jl 0x40e320
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x84], 0xffffffff
call dword [sym.imp.K8Common.dll_public_virtual:_void___thiscall_google::protobuf::MessageLite::destructor_void_]
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 4