Function at 0x54fbd0
Capabilities:
Check if file exists
Delete file
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x572e7e
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
lea eax, [esp + 0x3c]
xor esi, esi
push eax
mov dword [esp + 0x3c], esi
call fcn.0041d240
push 0x38
mov dword [esp + 0x2f4], esi
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, esi
mov byte [esp + 0x2f0], 1
je 0x54fc45
push 0x58ecb8
push str.utf_8
push eax
call fcn.0041dfb0
mov esi, eax
mov byte [esp + 0x2f0], 0
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x2f0], 2
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x2f0], 3
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x2f0], 4
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov edi, dword [ebp + 8]
mov byte [esp + 0x2f0], 5
mov eax, dword [edi]
sub eax, 0x10
call fcn.00410660
add eax, 0x10
mov dword [esp + 0x24], eax
push 0xd
push str.trashskip.dat
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x2fc], 6
call fcn.00410240
push 4
push str..tmp
lea edx, [esp + 0x2c]
push edx
call fcn.00410240
mov eax, dword [edi + 0x20]
mov ebx, dword [eax]
add edi, 0x1c
mov eax, esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
call fcn.0041c940
push 0x50
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x2f0], 7
je 0x54fd51
push eax
mov ecx, str.items
call fcn.0041cb90
mov dword [esp + 0x10], eax
jmp 0x54fd59
mov dword [esp + 0x10], 0
mov byte [esp + 0x2f0], 6
cmp dword [esp + 0x10], 0
je 0x550159
lea esp, [esp]
mov eax, dword [esp + 0x2c]
test eax, eax
mov esi, dword [edi + 4]
je 0x54fd7f
cmp eax, edi
je 0x54fd89
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call edi
jmp 0x54fd8f
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, esi
je 0x54ff5e
push 0x50
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x2f0], 8
je 0x54fdc2
push eax
mov ecx, str.item
call fcn.0041cb90
mov dword [esp + 0x14], eax
jmp 0x54fdca
mov dword [esp + 0x14], 0
mov byte [esp + 0x2f0], 6
cmp dword [esp + 0x14], 0
je 0x550159
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x54fde7
call edi
cmp ebx, dword [esi + 4]
jne 0x54fdee
call edi
mov eax, dword [ebx + 0x10]
push eax
push 0x58cde0
lea edi, [esp + 0x20]
call fcn.00410c00
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0xb8]
add esp, 8
lea esi, [esp + 0xac]
mov dword [esp + 0xac], ecx
call fcn.00550750
mov byte [esp + 0x2f0], 9
mov edx, dword [esp + 0xac]
test edx, edx
jne 0x54fe38
xor eax, eax
jmp 0x54fe4b
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x54fe40
sub eax, esi
mov edi, eax
push edx
lea eax, [esp + 0x20]
call fcn.004107e0
mov byte [esp + 0x2f0], 6
mov eax, dword [esp + 0xac]
lea edx, [esp + 0xb0]
cmp eax, edx
je 0x54fe7a
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
mov edx, 0x590e24
call fcn.0041ce40
mov ecx, dword [esp + 0x2c]
cmp ebx, dword [ecx + 4]
jne 0x54fe9c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
push edx
push eax
push 0x58cdd8
lea edi, [esp + 0x24]
call fcn.00410c00
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0xbc]
add esp, 0xc
lea esi, [esp + 0xac]
mov dword [esp + 0xac], ecx
call fcn.00550750
mov byte [esp + 0x2f0], 0xa
mov edx, dword [esp + 0xac]
test edx, edx
jne 0x54feea
xor eax, eax
jmp 0x54fefb
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x54fef0
sub eax, esi
mov edi, eax
push edx
lea eax, [esp + 0x20]
call fcn.004107e0
mov byte [esp + 0x2f0], 6
mov eax, dword [esp + 0xac]
lea edx, [esp + 0xb0]
cmp eax, edx
je 0x54ff2a
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push esi
mov edx, str.timet
call fcn.0041ce40
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.0041c940
lea esi, [esp + 0x2c]
call fcn.00536bc0
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
jmp 0x54fd70
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
call fcn.0041c940
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xb0]
lea esi, [esp + 0xac]
mov dword [esp + 0xac], eax
call fcn.005507d0
mov byte [esp + 0x2f0], 0xb
mov ecx, dword [esp + 0xac]
push ecx
lea eax, [esp + 0x40]
call fcn.0041d8d0
test al, al
mov byte [esp + 0x2f0], 6
mov eax, dword [esp + 0xac]
lea edx, [esp + 0xb0]
sete bl
cmp eax, edx
je 0x54ffca
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test bl, bl
jne 0x550159
push 0x5afdec
push edi
call dword [sym.imp.MSVCR80.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x550159
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
push 0
push edi
call esi
add esp, 0xc
push edi
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 4
push 0
push 0
push edi
mov ebx, eax
call esi
add esp, 0xc
lea ecx, [ebx + 1]
lea esi, [esp + 0x20]
call fcn.004107c0
mov esi, eax
lea eax, [ebx + 1]
push eax
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCR80.dll_fread]
push edi
call dword [sym.imp.MSVCR80.dll_fclose]
mov ebx, dword [esp + 0x34]
add esp, 0x14
test ebx, ebx
jne 0x55004f
xor eax, eax
jmp 0x550065
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x550054
sub eax, edx
js 0x550280
cmp eax, dword [ebx - 8]
jg 0x550280
mov dword [ebx - 0xc], eax
mov byte [eax + ebx], 0
lea eax, [esp + 0xb0]
mov edi, ebx
lea esi, [esp + 0xac]
mov dword [esp + 0xac], eax
call fcn.00550850
mov byte [esp + 0x2f0], 0xc
mov edx, dword [esp + 0xac]
lea edi, [esp + 0x28]
call fcn.00410020
mov byte [esp + 0x2f0], 6
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xb0]
cmp eax, ecx
je 0x5500cc
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx]
sub eax, 0x10
call fcn.00410660
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov edx, str.trashskip.dat
mov byte [esp + 0x2f4], 0xd
call fcn.00410530
lea edx, [esp + 0x28]
push edx
xor ecx, ecx
push ecx
mov eax, 1
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0054ebe0
lea edi, [esp + 0x2bc]
mov esi, eax
mov byte [esp + 0x2f0], 0xe
call fcn.0054ecc0
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, eax
call fcn.0054edc0
lea ecx, [esp + 0x84]
mov esi, eax
call fcn.0054ec70
lea ecx, [esp + 0x10]
call fcn.00410000
test esi, esi
je 0x55015d
mov dword [esp + 0x38], 1
jmp 0x55015d
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x550174
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [esp + 0x2f0], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x550198
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x2f0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5501bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2f0], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5501e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2f0], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x55020c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2f0], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x550234
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2f0], 0xffffffff
mov eax, dword [esp + 0x70]
cmp eax, 0x5e96c0
mov dword [esp + 0x3c], vtable.TiXmlDocument.0
je 0x55025b
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.0041c890
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0040fcd0
int3