Function at 0x451a40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4f6a38
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x540320]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x540320]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
movdqu xmm0, xmmword [str._.ldbk_]
mov eax, dword [0x516880]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x104], eax
mov eax, dword [ecx + 0x7b0]
mov ecx, eax
movdqu xmmword [esp + 0xe4], xmm0
sar ecx, 0x18
movdqu xmm0, xmmword [0x516870]
movdqu xmmword [esp + 0xf4], xmm0
cmp ecx, 1
jne 0x451ad4
and eax, 0xffffff
mov ecx, 0x54cfd0
jmp 0x451afb
cmp ecx, 5
jne 0x451ae5
and eax, 0xffffff
mov ecx, 0x54d090
jmp 0x451afb
cmp ecx, 3
jne 0x451af6
and eax, 0xffffff
mov ecx, 0x54d150
jmp 0x451afb
mov ecx, 0x54cf10
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ecx
push eax
call fcn.00477630
push str..ldbk
push eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x238], 0
push eax
call fcn.0041c2d0
add esp, 0xc
mov byte [esp + 0x230], 2
cmp dword [esp + 0x28], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x451b49
push dword [esp + 0x14]
call esi
add esp, 4
sub esp, 0x18
mov dword [esp + 0x40], 7
mov ecx, esp
mov dword [esp + 0x3c], 0
xor eax, eax
mov word [esp + 0x2c], ax
push 0xffffffffffffffff
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push eax
mov word [ecx], ax
lea eax, [esp + 0xd4]
push eax
call fcn.00409bc0
lea ecx, [esp + 0x4c]
call fcn.00451950
mov edi, eax
add esp, 0x18
lea eax, [esp + 0xb4]
cmp eax, edi
je 0x451bde
cmp dword [esp + 0xc8], 8
jb 0x451bb1
push dword [esp + 0xb4]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xc8], 7
push edi
lea ecx, [esp + 0xb8]
mov dword [esp + 0xc8], 0
mov word [esp + 0xb8], ax
call fcn.0040d700
cmp dword [esp + 0x48], 8
jb 0x451bee
push dword [esp + 0x34]
call esi
add esp, 4
push 0x100
lea eax, [esp + 0x120]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x11c]
push 0x80
push str.multiplay_backup_file_text
push 0x80
push eax
push 0
call dword [sym.imp.MSVCR120.dll_mbstowcs_s]
add esp, 0x14
lea eax, [esp + 0x11c]
push eax
call fcn.004a65d0
mov edx, eax
add esp, 4
test edx, edx
jne 0x451c5d
lea eax, [esp + 0x11c]
push eax
push eax
call fcn.004a56e0
lea eax, [esp + 0x124]
push eax
call fcn.004a65d0
add esp, 0xc
mov edx, eax
xor eax, eax
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], ax
cmp word [edx], ax
jne 0x451c86
xor ecx, ecx
jmp 0x451c9f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x451c90
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451c90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xa4]
call fcn.00409fb0
mov byte [esp + 0x230], 3
lea ecx, [esp + 0x9c]
mov eax, dword [esp + 0xac]
cmp dword [esp + 0xb0], 8
cmovae ecx, dword [esp + 0x9c]
lea edx, [eax + eax]
add ecx, edx
lea eax, [esp + 0x9c]
cmp dword [esp + 0xb0], 8
cmovae eax, dword [esp + 0x9c]
add eax, edx
lea edx, [esp + 0x108]
push edx
lea edx, [esp + 0xe8]
push edx
push ecx
push eax
lea ecx, [esp + 0xac]
call fcn.0041ac30
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00477320
lea eax, [esp + 0xd8]
mov byte [esp + 0x23c], 4
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x90], 0
call fcn.004250c0
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x94]
call fcn.0040d760
cmp dword [esp + 0xec], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x451d80
push dword [esp + 0xd8]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xec], 7
cmp dword [esp + 0x34], 8
mov dword [esp + 0xe8], 0
mov word [esp + 0xd8], ax
jb 0x451db0
push dword [esp + 0x20]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x23c], 5
call fcn.004749b0
mov ecx, eax
mov byte [esp + 0x238], 6
call fcn.0041a770
mov ecx, eax
mov byte [esp + 0x234], 7
call fcn.00424fd0
mov ecx, eax
mov byte [esp + 0x230], 8
cmp dword [ecx + 0x14], 8
jb 0x451e0b
mov ecx, dword [ecx]
cmp dword [esp + 0xb0], 8
lea eax, [esp + 0x9c]
push ecx
cmovae eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x14]
push str.ldbk
push eax
call fcn.0046d2c0
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.0048bda0
add esp, 0x14
cmp dword [esp + 0x7c], 8
jb 0x451e53
push dword [esp + 0x68]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
cmp dword [esp + 0x64], 8
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
jb 0x451e7a
push dword [esp + 0x50]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
cmp dword [esp + 0x48], 8
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
jb 0x451ea1
push dword [esp + 0x34]
call esi
add esp, 4
xor eax, eax
mov byte [esp + 0x230], 3
cmp dword [esp + 0x98], 8
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
jb 0x451ed6
push dword [esp + 0x84]
call esi
add esp, 4
cmp dword [esp + 0xc4], 0
je 0x451f1d
mov edi, dword [esp + 0x30]
mov ecx, edi
push 5
call fcn.0045dd80
push dword [ebp + 0xc]
lea eax, [esp + 0xb8]
mov ecx, 0x54be00
push eax
push dword [edi + 0x7b0]
call fcn.004646f0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x560]
test ecx, ecx
je 0x451f1d
push 1
call fcn.004ad1e0
cmp dword [esp + 0xb0], 8
jb 0x451f33
push dword [esp + 0x9c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xb0], 7
cmp dword [esp + 0xc8], 8
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], ax
jb 0x451f69
push dword [esp + 0xb4]
call esi
add esp, 4
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004edbca
mov esp, ebp
pop ebp
ret 8