Function at 0x455280
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f290f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xb8
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
lea eax, [edi + 0x3c]
mov dword [ebp - 0xc0], edi
push eax
lea ecx, [edi + 0x38]
mov dword [ebp - 0xb4], eax
push ecx
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb8], ecx
push eax
call fcn.00426e40
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0xbc]
test eax, eax
sete byte [ebp - 0xa1]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455321
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xa1], 0
jne 0x455aef
push ecx
push esp
push ecx
mov dword [ebp - 0x20], 0
call fcn.0040b470
add esp, 4
mov ecx, eax
call fcn.0047b540
lea ecx, [ebp - 0x20]
call fcn.0044fc40
add esp, 4
lea eax, [edi + 0x3c]
mov dword [ebp - 4], 0
push eax
lea eax, [edi + 0x38]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00426e40
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00426e40
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0xbc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4553ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4553ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x3c]
push eax
lea eax, [edi + 0x38]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00426e40
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00426e40
add esp, 0xc
mov esi, eax
lea eax, [edi + 0x3c]
mov byte [ebp - 4], 3
push eax
lea eax, [edi + 0x38]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00426e40
add esp, 0xc
push 1
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0xa8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455446
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0xbc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455467
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0xac]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455488
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
call fcn.004a063b
lea eax, [edi + 0x3c]
mov byte [ebp - 4], 5
push eax
lea eax, [edi + 0x38]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00426e40
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00426e40
add esp, 0xc
push 0
push 0x8010
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x34]
push dword [eax]
call fcn.004a0ae6
test eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xac]
mov eax, esi
sete byte [ebp - 0xa1]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455510
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455531
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xa1], 0
je 0x455600
push dword [ebp - 0xb4]
lea eax, [ebp - 0xa8]
push dword [ebp - 0xb8]
push eax
call fcn.00426e40
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00426e40
add esp, 0xc
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call eax
mov edx, dword [ebp - 0xac]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455597
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4555b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040f620
push str.CPlayerManager::_loadPlayerData
push str.__s__:_open_fail
push eax
call fcn.0043a270
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.004a066c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x455c8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x455c8d
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 4
call fcn.004a09f4
test edx, edx
ja 0x4556b0
jb 0x455622
cmp eax, 1
jae 0x4556b0
push dword [ebp - 0xb4]
lea eax, [ebp - 0xa8]
push dword [ebp - 0xb8]
push eax
call fcn.00426e40
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00426e40
add esp, 0xc
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call eax
mov edx, dword [ebp - 0xac]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45567b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45569c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.CPlayerManager::_loadPlayerData
push str.__s__:_file_size_zero
call fcn.0040f620
jmp 0x4555c7
push 0x3c
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
push 0
push eax
call fcn.005c7190
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.0040e950
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xd
push 0x63e638
call fcn.00404b00
lea ecx, [ebp - 0xa0]
call fcn.0040eb00
test al, al
jne 0x455798
push dword [ebp - 0xb4]
lea eax, [ebp - 0xa8]
push dword [ebp - 0xb8]
push eax
call fcn.00426e40
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00426e40
add esp, 0xc
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call eax
mov edx, dword [ebp - 0xac]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45574f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov eax, esi
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455770
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040f620
push str.CPlayerManager::_loadPlayerData
push str.__s__:_crypto.DeriveKey_fail
push eax
call fcn.0043a270
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.0040ea80
jmp 0x4555d0
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x48]
movups xmmword [ebp - 0x48], xmm0
call fcn.0048b539
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xf
call fcn.004a09f4
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xac], edx
call fcn.0048b664
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.004a09f4
push eax
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xac], edx
call fcn.004a0cbc
lea ecx, [ebp - 0x34]
call fcn.004a08f6
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
push 0xa
lea ecx, [ebp - 0x64]
movq qword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x64], xmm0
call fcn.0049dfd8
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040ec90
test al, al
jne 0x4558b8
push dword [ebp - 0xb4]
lea eax, [ebp - 0xa8]
push dword [ebp - 0xb8]
push eax
call fcn.00426e40
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x11
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00426e40
add esp, 0xc
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call eax
lea ecx, [ebp - 0xac]
call fcn.00405250
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x10
call fcn.00405250
call fcn.0040f620
push str.CPlayerManager::_loadPlayerData
push str.__s__:_Decrypt_fail
push eax
call fcn.0043a270
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.0049dffe
lea ecx, [ebp - 0x48]
call fcn.0048b550
lea ecx, [ebp - 0xa0]
call fcn.0040ea80
jmp 0x455c7d
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x34]
call fcn.004a0171
push eax
push 0x63ca44
call fcn.00426d80
add esp, 8
mov byte [ebp - 0xa1], al
lea ecx, [ebp - 0xac]
call fcn.00405250
cmp byte [ebp - 0xa1], 0
je 0x4558f7
lea ecx, [ebp - 0x34]
call fcn.004a08f6
mov ecx, dword [ebp - 0x60]
nop word [eax + eax]
test ecx, ecx
je 0x4559db
mov esi, dword [ecx + 8]
mov ecx, dword [ecx]
mov dword [ebp - 0xb4], ecx
mov ecx, dword [edi + 0x64]
mov dword [ebp - 0xa8], esi
nop dword [eax]
test ecx, ecx
je 0x4559bb
mov eax, dword [ecx + 8]
mov ecx, dword [ecx]
mov dword [ebp - 0xb8], eax
mov eax, dword [eax + 0x20]
cmp eax, dword [esi + 0x20]
jne 0x455920
lea eax, [edi + 0xc]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00426de0
mov ecx, dword [ebp - 0xb4]
add esp, 8
test al, al
je 0x455900
mov eax, dword [ebp - 0xb8]
add eax, 0x38
mov ecx, eax
mov dword [ebp - 0xac], eax
call fcn.0049e1b2
mov esi, dword [esi + 0x3c]
nop
test esi, esi
je 0x455986
push dword [esi + 8]
mov ecx, dword [ebp - 0xac]
mov esi, dword [esi]
call fcn.004c192a
jmp 0x455970
mov esi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xb8]
lea eax, [esi + 0x30]
lea ecx, [ecx + 0x30]
push eax
call fcn.00404270
mov ecx, dword [ebp - 0xb8]
lea eax, [esi + 0x34]
push eax
lea ecx, [ecx + 0x34]
call fcn.00404270
mov ecx, dword [ebp - 0xb4]
jmp 0x455900
push esi
lea ecx, [edi + 0x60]
call fcn.004c192a
lea eax, [esi + 0x20]
push eax
lea ecx, [edi + 0x7c]
call fcn.0045e050
mov ecx, dword [ebp - 0xb4]
jmp 0x455900
push dword [edi + 0x80]
push dword [edi + 0x7c]
call fcn.0045e300
mov esi, dword [edi + 0x64]
add esp, 8
nop
test esi, esi
je 0x455a76
mov edx, dword [esi + 8]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0xac], esi
mov esi, dword [esi]
test ecx, ecx
je 0x455a19
mov eax, dword [ecx + 8]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x20]
cmp eax, dword [edx + 0x20]
jne 0x455a06
jmp 0x4559f0
mov eax, dword [edi + 0x7c]
cmp dword [edi + 0x80], eax
je 0x455a63
mov ecx, dword [edx + 0x20]
cmp dword [eax], ecx
je 0x455a46
add eax, 4
cmp dword [edi + 0x80], eax
jne 0x455a27
push dword [ebp - 0xac]
lea ecx, [edi + 0x60]
call fcn.004c1a05
jmp 0x4559f0
mov edx, dword [edi + 0x80]
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.005c60d0
add esp, 0xc
add dword [edi + 0x80], 0xfffffffc
push dword [ebp - 0xac]
lea ecx, [edi + 0x60]
call fcn.004c1a05
jmp 0x4559f0
lea eax, [edi + 0x3c]
push eax
lea eax, [edi + 0x38]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00426e40
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x12
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00426e40
add esp, 0xc
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call eax
lea ecx, [ebp - 0xac]
call fcn.00405250
lea ecx, [ebp - 0xa8]
call fcn.00405250
lea ecx, [ebp - 0x64]
call fcn.0049dffe
lea ecx, [ebp - 0x48]
call fcn.0048b550
lea ecx, [ebp - 0xa0]
call fcn.0040ea80
lea ecx, [ebp - 0x34]
call fcn.004a066c
lea ecx, [ebp - 0x20]
call fcn.00405250
mov al, 1
jmp 0x455c8f
lea ecx, [ebp - 0x34]
call fcn.004a066c
lea ecx, [ebp - 0x20]
call fcn.00405250
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret