Function at 0x412790
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x65c77b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x6af168]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], eax
call fcn.0044ad60
mov dword [esp + 0x18], eax
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x18]
mov dword [eax], eax
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xa0], ebx
push 4
mov edi, 0xf
push 0x66f6b8
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.00402300
mov byte [esp + 0xa0], 1
push 0x14
push str.LevelEditor_autosave
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.00402300
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0xac], 2
call fcn.0060b9a0
add esp, 0xc
test al, al
mov esi, 0x10
sete byte [esp + 0x13]
cmp dword [esp + 0x60], esi
jb 0x41288c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0062493b
add esp, 4
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x44], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x4128b2
mov edx, dword [esp + 0x30]
push edx
call fcn.0062493b
add esp, 4
cmp byte [esp + 0x13], bl
je 0x412957
push 0xc
push str.No_autosaves
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.00402300
mov byte [esp + 0xa0], 3
push 0x1a
push str.No_autosave_data_available
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.00402300
mov byte [esp + 0xa0], 4
mov ecx, dword [0x6b9dcc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
push ebx
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x50]
push edx
call eax
cmp dword [esp + 0x60], esi
jb 0x41292f
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x412bea
mov edx, dword [esp + 0x30]
push edx
call fcn.0062493b
add esp, 4
jmp 0x412bea
mov al, byte [ebp + 0xc]
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 0x88]
neg al
push ebx
sbb eax, eax
and eax, 0xbebc200
add eax, 0xfa0a1f00
add edx, 0x8f8
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.004e7710
add esp, 0xc
mov byte [esp + 0xa0], 5
cmp dword [esp + 0x8c], esi
mov eax, dword [esp + 0x78]
jae 0x4129a4
lea eax, [esp + 0x78]
lea ecx, [esp + 0x28]
push ecx
push str.autosave_d
push eax
call fcn.00624fb5
add esp, 0xc
cmp eax, 1
je 0x412a7b
cmp dword [esp + 0x8c], esi
mov ecx, dword [esp + 0x78]
jae 0x4129d1
lea ecx, [esp + 0x78]
mov eax, str.autosave
call fcn.004e8640
test al, al
jne 0x412a7b
push str.Inspect_AutoSaves_
lea ecx, [esp + 0x4c]
call fcn.00402130
push str.Would_you_like_to_inspect_AutoSaves_
lea ecx, [esp + 0x30]
mov byte [esp + 0xa4], 6
call fcn.00402130
mov byte [esp + 0xa0], 7
mov ecx, dword [0x6b9dcc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
push 0x23
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x34]
push eax
call edx
cmp dword [esp + 0x44], esi
mov dword [esp + 0x20], eax
jb 0x412a3f
mov eax, dword [esp + 0x30]
push eax
call fcn.0062493b
add esp, 4
mov byte [esp + 0xa0], 5
cmp dword [esp + 0x60], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x412a66
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x20], 6
je 0x412a7b
lea ecx, [esp + 0x74]
call fcn.00401c70
jmp 0x412bea
lea ebx, [esp + 0x28]
lea eax, [esp + 0x20]
lea esi, [esp + 0x14]
call fcn.00442430
mov esi, dword [esp + 0x20]
test esi, esi
mov eax, dword [esp + 0x18]
mov edi, eax
je 0x412aa2
lea edx, [esp + 0x14]
cmp esi, edx
je 0x412aab
call fcn.0062492b
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
cmp ebx, edi
je 0x412b05
cmp byte [ebp + 0xc], 0
je 0x412af0
mov eax, dword [eax]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x68]
mov dword [esp + 0x68], ecx
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], eax
call fcn.0060c1e0
test al, al
je 0x412ae5
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x14]
mov ebx, eax
jmp 0x412b05
lea ecx, [esp + 0x20]
call fcn.00448c50
jmp 0x412af9
lea ecx, [esp + 0x20]
call fcn.00448ce0
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
test esi, esi
mov edi, eax
je 0x412b13
lea ecx, [esp + 0x14]
cmp esi, ecx
je 0x412b1c
call fcn.0062492b
mov eax, dword [esp + 0x18]
cmp ebx, edi
jne 0x412b57
cmp byte [ebp + 0xc], 0
je 0x412b47
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], eax
call fcn.00442940
mov eax, dword [eax]
jmp 0x412b6d
mov esi, dword [eax]
cmp esi, eax
jne 0x412b52
call fcn.0062492b
mov eax, dword [esi + 0xc]
jmp 0x412b6d
test esi, esi
jne 0x412b60
call fcn.0062492b
cmp ebx, dword [esi + 4]
jne 0x412b6a
call fcn.0062492b
mov eax, dword [ebx + 0xc]
push eax
lea edx, [esp + 0x30]
push str.LevelEditor_autosave_d.dat
push edx
mov dword [esp + 0x34], eax
call fcn.004e7a20
add esp, 0xc
push eax
mov eax, dword [esp + 0x68]
mov byte [esp + 0xa4], 8
call fcn.00412430
mov esi, 0x10
cmp dword [esp + 0x44], esi
jb 0x412bae
mov eax, dword [esp + 0x30]
push eax
call fcn.0062493b
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x8c], esi
mov edi, 0xf
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x412bd7
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0062493b
add esp, 4
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00444f80
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00624940
mov esp, ebp
pop ebp
ret 8