Function at 0x459130
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4fad28
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x546320]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x546320]
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 [0x51b530]
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 [0x51b520]
movdqu xmmword [esp + 0xf4], xmm0
cmp ecx, 1
jne 0x4591c4
and eax, 0xffffff
mov ecx, 0x552470
jmp 0x4591eb
cmp ecx, 5
jne 0x4591d5
and eax, 0xffffff
mov ecx, 0x5525b0
jmp 0x4591eb
cmp ecx, 3
jne 0x4591e6
and eax, 0xffffff
mov ecx, 0x5526f0
jmp 0x4591eb
mov ecx, 0x552330
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ecx
push eax
call fcn.00474ae0
push str..ldbk
push eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x238], 0
push eax
call fcn.0041db50
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 0x459239
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.0040ab10
lea ecx, [esp + 0x4c]
call fcn.00459040
mov edi, eax
add esp, 0x18
lea eax, [esp + 0xb4]
cmp eax, edi
je 0x4592ce
cmp dword [esp + 0xc8], 8
jb 0x4592a1
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.0040a810
cmp dword [esp + 0x48], 8
jb 0x4592de
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.004aa130
mov edx, eax
add esp, 4
test edx, edx
jne 0x45934d
lea eax, [esp + 0x11c]
push eax
push eax
call fcn.004a9230
lea eax, [esp + 0x124]
push eax
call fcn.004aa130
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 0x459376
xor ecx, ecx
jmp 0x45938f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x459380
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459380
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xa4]
call fcn.0040aeb0
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.0041cbd0
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.004747d0
lea eax, [esp + 0xd8]
mov byte [esp + 0x23c], 4
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x90], 0
call fcn.00427010
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x94]
call fcn.0040a880
cmp dword [esp + 0xec], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x459470
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 0x4594a0
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.00482340
mov ecx, eax
mov byte [esp + 0x238], 6
call fcn.0041c710
mov ecx, eax
mov byte [esp + 0x234], 7
call fcn.00426f20
mov ecx, eax
mov byte [esp + 0x230], 8
cmp dword [ecx + 0x14], 8
jb 0x4594fb
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.0047eea0
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.00490510
add esp, 0x14
cmp dword [esp + 0x7c], 8
jb 0x459543
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 0x45956a
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 0x459591
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 0x4595c6
push dword [esp + 0x84]
call esi
add esp, 4
cmp dword [esp + 0xc4], 0
je 0x45960d
mov edi, dword [esp + 0x30]
mov ecx, edi
push 5
call fcn.00465670
push dword [ebp + 0xc]
lea eax, [esp + 0xb8]
mov ecx, 0x551f70
push eax
push dword [edi + 0x7b0]
call fcn.0046bfa0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x560]
test ecx, ecx
je 0x45960d
push 1
call fcn.004b0ad0
cmp dword [esp + 0xb0], 8
jb 0x459623
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 0x459659
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.004f14ca
mov esp, ebp
pop ebp
ret 8