Function at 0x456060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f2a1e
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.CPlayerManager::LoadPlayerData
push str.__s__:_path__s___name__s_
call fcn.0040f620
push eax
call fcn.0043a270
add esp, 0x14
lea eax, [ebp + 8]
lea esi, [edi + 0x38]
mov ecx, esi
push eax
call fcn.00404270
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [edi + 0x3c]
call fcn.00404270
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
call fcn.004a063b
lea eax, [edi + 0x3c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xf4]
push esi
push eax
call fcn.00426e40
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0xf4]
or esi, 0xffffffff
mov dword [ebp - 0xe8], eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x456140
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xe8]
test eax, eax
je 0x4565bd
lea eax, [edi + 0x3c]
push eax
lea eax, [edi + 0x38]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00426e40
add esp, 0xc
push 0
push 0x8010
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.004a0ae6
test eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xe8]
mov eax, esi
sete byte [ebp - 0xe1]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45619e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xe1], 0
je 0x45620d
call fcn.0040f620
push str.CPlayerManager::LoadPlayerData
push str.__s__:_open_fail
push eax
call fcn.0043a270
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.004a066c
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4561e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4563b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4563b2
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.004a09f4
test edx, edx
ja 0x45629c
jb 0x456227
cmp eax, 1
jae 0x45629c
push str.CPlayerManager::LoadPlayerData
push str.__s__:_file_size_zero
call fcn.0040f620
push eax
call fcn.0043a270
add esp, 0xc
mov ecx, edi
call fcn.00453d90
lea ecx, [ebp - 0x28]
mov byte [ebp - 0xe1], al
call fcn.004a066c
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x456272
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x456291
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xe1]
jmp 0x4563b4
push 0x3c
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.005c7190
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.0040e950
push ecx
mov ecx, esp
mov byte [ebp - 4], 7
push 0x63e638
call fcn.00404b00
lea ecx, [ebp - 0x78]
call fcn.0040eb00
test al, al
jne 0x456301
call fcn.0040f620
push str.CPlayerManager::LoadPlayerData
push str.__s__:_crypto.DeriveKey_fail
push eax
call fcn.0043a270
add esp, 0xc
mov ecx, edi
call fcn.00450f30
lea ecx, [ebp - 0x78]
call fcn.0040ea80
jmp 0x4561bf
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x3c]
movups xmmword [ebp - 0x3c], xmm0
call fcn.0048b539
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.004a09f4
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0xe8], edx
call fcn.0048b664
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.004a09f4
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xe8], edx
call fcn.004a0cbc
lea ecx, [ebp - 0x28]
call fcn.004a08f6
lea eax, [edi + 0x60]
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040ec90
test al, al
jne 0x4563d2
call fcn.0040f620
push str.CPlayerManager::LoadPlayerData
push str.__s__:_Decrypt_fail
push eax
call fcn.0043a270
add esp, 0xc
mov ecx, edi
call fcn.00450f30
lea ecx, [ebp - 0x3c]
call fcn.0048b550
lea ecx, [ebp - 0x78]
call fcn.0040ea80
lea ecx, [ebp - 0x28]
call fcn.004a066c
lea ecx, [ebp + 8]
call fcn.00405250
lea ecx, [ebp + 0xc]
call fcn.00405250
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x28]
call fcn.004a0171
push eax
push 0x63ca44
call fcn.00426d80
add esp, 8
mov byte [ebp - 0xe1], al
lea ecx, [ebp - 0xe8]
call fcn.00405250
cmp byte [ebp - 0xe1], 0
je 0x456411
lea ecx, [ebp - 0x28]
call fcn.004a08f6
mov esi, dword [edi + 0x64]
test esi, esi
je 0x456502
mov eax, dword [esi + 8]
mov esi, dword [esi]
mov dword [ebp - 0xf4], eax
lea edi, [eax + 4]
push edi
push str.ver.0
call fcn.00409e50
add esp, 8
test al, al
jne 0x456452
push edi
push str.ver.1
call fcn.00409e50
add esp, 8
test al, al
je 0x4564e5
push 0x68
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.005c7190
add esp, 0xc
call fcn.0040b470
lea ecx, [ebp - 0xe0]
push dword [eax + 0x28]
call fcn.0042d340
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xf4]
add eax, 0x10
push eax
push ecx
mov dword [ebp - 0xe8], esp
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404bc0
mov ecx, dword [ebp - 0xe8]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea ecx, [ebp - 0xe0]
call fcn.004345a0
cmp eax, 0xc8
je 0x4564c8
lea ecx, [ebp - 0xe0]
call fcn.0042d6c0
jmp 0x45638a
push 5
push str.ver.2
mov ecx, edi
call fcn.004049c0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 8
call fcn.0042d6c0
mov edi, dword [ebp - 0xf0]
mov eax, dword [ebp - 0xf4]
add eax, 0x20
push eax
lea ecx, [edi + 0x7c]
call fcn.0045e050
jmp 0x456414
push dword [edi + 0x80]
push dword [edi + 0x7c]
call fcn.0045e300
add esp, 8
mov ecx, edi
call fcn.00453d90
lea ecx, [ebp - 0x3c]
call fcn.0048b550
lea ecx, [ebp - 0x78]
call fcn.0040ea80
lea ecx, [ebp - 0x28]
call fcn.004a066c
lea ecx, [ebp + 8]
call fcn.00405250
lea ecx, [ebp + 0xc]
call fcn.00405250
mov al, 1
jmp 0x4563b4
mov ecx, edi
call fcn.00453d90
lea ecx, [ebp - 0x28]
mov byte [ebp - 0xe1], al
call fcn.004a066c
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4565f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45660f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xe1]
jmp 0x4563b4