Function at 0x547800
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b5b88
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2f4], ecx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2f4]
call fcn.00520210
jmp 0x54785a
push 0
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0054a6b0
lea edx, [ebp - 0x2cc]
push edx
mov ecx, dword [ebp - 0x2f4]
call fcn.00520240
push eax
lea ecx, [ebp - 0x18]
call fcn.0054a760
movzx eax, al
test eax, eax
je 0x547b32
lea ecx, [ebp - 0x18]
call fcn.00520910
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x547895
jmp 0x547849
mov ecx, dword [ebp + 8]
call fcn.00403c80
push eax
mov edx, dword [ebp - 0x20]
add edx, 0x1c
push edx
call fcn.00467600
add esp, 8
movzx eax, al
test eax, eax
je 0x5478b6
jmp 0x547849
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x48]
call fcn.005a0140
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x5478cf
jmp 0x547b32
lea ecx, [ebp - 0x5c]
call fcn.0040cd50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040cd50
mov byte [ebp - 4], 1
push 0x7f5194
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x44]
call fcn.005b3150
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x2f4]
call fcn.00547b50
test eax, eax
je 0x547b12
mov ecx, dword [ebp - 0x20]
add ecx, 0xc
call fcn.00406470
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00403bf0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2e8]
push ecx
mov ecx, dword [ebp - 0x2f4]
call fcn.005481a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e8]
call fcn.00403c30
lea ecx, [ebp - 0x40]
call fcn.00403c80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x54797e
lea ecx, [ebp - 0x40]
call fcn.00403c80
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00403c80
push ecx
mov ecx, esp
mov dword [ebp - 0x2ec], esp
push eax
call fcn.004068d0
mov dword [ebp - 0x2f8], eax
mov edx, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00403c80
push ecx
mov ecx, esp
mov dword [ebp - 0x2f0], esp
push eax
call fcn.004068d0
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 1
call fcn.00603d40
add esp, 0x14
mov dword [ebp - 0x304], eax
mov byte [ebp - 4], 4
push 0x218
push 0
lea ecx, [ebp - 0x27c]
push ecx
call fcn.007202b0
add esp, 0xc
push 0x10c
lea ecx, [ebp - 0x280]
call fcn.00405e80
push eax
lea edx, [ebp - 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [ebp - 0x2b0]
call fcn.005126d0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00512b40
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jl 0x547a7c
push 0x7f51ac
lea ecx, [ebp - 0x27c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0x7fad0c
lea edx, [ebp - 0x27c]
push edx
lea ecx, [ebp - 0x2b0]
call fcn.0054e1f0
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jl 0x547af4
lea ecx, [ebp - 0x2b8]
call fcn.00405e90
mov byte [ebp - 4], 6
lea eax, [ebp - 0x27c]
push eax
push str.file_s_dest4_7_22_25
lea ecx, [ebp - 0x2b8]
push ecx
call fcn.0040e430
add esp, 0xc
push str.game_tab_op
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x44]
call fcn.005b3150
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2bc], 0
je 0x547ae5
lea ecx, [ebp - 0x2b8]
call fcn.00405e80
push eax
mov ecx, dword [ebp - 0x2bc]
call fcn.005af950
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b8]
call fcn.00405ef0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b0]
call fcn.005127e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.00405ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00403c30
jmp 0x547849
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret 4