Function at 0x4512a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4f5a38
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x53e320]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x53e320]
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 [0x515270]
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 [0x515260]
movdqu xmmword [esp + 0xf4], xmm0
cmp ecx, 1
jne 0x451334
and eax, 0xffffff
mov ecx, 0x54af50
jmp 0x45135b
cmp ecx, 5
jne 0x451345
and eax, 0xffffff
mov ecx, 0x54b010
jmp 0x45135b
cmp ecx, 3
jne 0x451356
and eax, 0xffffff
mov ecx, 0x54b0d0
jmp 0x45135b
mov ecx, 0x54ae90
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ecx
push eax
call fcn.00476ea0
push str..ldbk
push eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x238], 0
push eax
call fcn.0041c140
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 0x4513a9
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.00409a20
lea ecx, [esp + 0x4c]
call fcn.004511b0
mov edi, eax
add esp, 0x18
lea eax, [esp + 0xb4]
cmp eax, edi
je 0x45143e
cmp dword [esp + 0xc8], 8
jb 0x451411
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.0040d560
cmp dword [esp + 0x48], 8
jb 0x45144e
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.004a55d0
mov edx, eax
add esp, 4
test edx, edx
jne 0x4514bd
lea eax, [esp + 0x11c]
push eax
push eax
call fcn.004a46e0
lea eax, [esp + 0x124]
push eax
call fcn.004a55d0
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 0x4514e6
xor ecx, ecx
jmp 0x4514ff
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x4514f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4514f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xa4]
call fcn.00409e10
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.0041aa90
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.00476b90
lea eax, [esp + 0xd8]
mov byte [esp + 0x23c], 4
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x90], 0
call fcn.00424f30
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x94]
call fcn.0040d5c0
cmp dword [esp + 0xec], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4515e0
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 0x451610
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.00474230
mov ecx, eax
mov byte [esp + 0x238], 6
call fcn.0041a5d0
mov ecx, eax
mov byte [esp + 0x234], 7
call fcn.00424e40
mov ecx, eax
mov byte [esp + 0x230], 8
cmp dword [ecx + 0x14], 8
jb 0x45166b
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.0046cb40
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.0048b620
add esp, 0x14
cmp dword [esp + 0x7c], 8
jb 0x4516b3
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 0x4516da
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 0x451701
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 0x451736
push dword [esp + 0x84]
call esi
add esp, 4
cmp dword [esp + 0xc4], 0
je 0x45177d
mov edi, dword [esp + 0x30]
mov ecx, edi
push 5
call fcn.0045d5e0
push dword [ebp + 0xc]
lea eax, [esp + 0xb8]
mov ecx, 0x549e00
push eax
push dword [edi + 0x7b0]
call fcn.00463f60
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x560]
test ecx, ecx
je 0x45177d
push 1
call fcn.004ac1e0
cmp dword [esp + 0xb0], 8
jb 0x451793
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 0x4517c9
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.004ecbfa
mov esp, ebp
pop ebp
ret 8