Function at 0x46fc80
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbe06
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x4fad60]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x288], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2b0], ecx
mov ecx, 7
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
mov word [ebp - 0x30], cx
mov ecx, eax
mov dword [ebp - 0x20], ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x46fcf0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.00403e70
lea edx, [ebp - 0x27c]
push edx
mov byte [ebp - 4], 1
call fcn.004746d0
mov byte [ebp - 4], 2
push 0x10
mov dword [ebp - 0x2a8], ebx
call fcn.00490dc4
add esp, 4
cmp eax, ebx
je 0x470307
mov dword [eax], eax
mov dword [ebp - 0x2ac], eax
mov dword [eax + 4], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
or esi, 0xffffffff
mov edi, 8
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
cmp dword [ebp - 0x1c], edi
jae 0x46fd7a
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x46fdac
call fcn.004148d0
test al, al
je 0x46fde4
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jae 0x46fd99
lea eax, [ebp - 0x30]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x2a0], 1
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jae 0x46fdb7
lea eax, [ebp - 0x30]
push ebx
push 0x80
push 4
push ebx
push 7
push 0xc0000000
push eax
call dword [0x505fec]
mov edi, eax
mov dword [ebp - 0x28c], edi
cmp edi, esi
jne 0x46fdee
mov esi, 0x7ab8
jmp 0x47018e
mov esi, 0x7ab7
jmp 0x47018e
lea ecx, [ebp - 0x27c]
call fcn.004753b0
xor eax, eax
jmp 0x46fe00
mov cl, byte [ebp + eax - 0x260]
cmp cl, byte [eax + 0x4e1fa4]
jne 0x46fe2e
inc eax
cmp eax, 9
jl 0x46fe00
lea ecx, [ebp - 0x27c]
call fcn.004756e0
test eax, eax
jne 0x46fe38
mov esi, 0x7ac5
jmp 0x47018e
mov esi, 0x9c41
jmp 0x47018e
mov esi, dword [ebp - 0x288]
mov edx, dword [esi]
mov eax, dword [ebp - 0x240]
mov edx, dword [edx]
push eax
mov ecx, esi
call edx
test eax, eax
jne 0x46fe5b
mov esi, 0x7ac4
jmp 0x47018e
lea ecx, [ebp - 0x27c]
call fcn.00474e00
test al, al
jne 0x46fe74
mov esi, 0x7abf
jmp 0x47018e
lea eax, [ebp - 0x294]
push eax
push edi
call dword [0x506024]
test eax, eax
jne 0x46fe90
mov esi, 0x7aba
jmp 0x47018e
mov edx, dword [ebp - 0x290]
mov eax, dword [ebp - 0x294]
push ebx
lea ecx, [ebp - 0x4c]
push ecx
push edx
push eax
lea ecx, [ebp - 0x30]
call fcn.00472ac0
test eax, eax
jne 0x46feb9
mov esi, 0x7ab9
jmp 0x47018e
lea ecx, [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x27c]
push edx
call fcn.00475230
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x46fed8
lea eax, [ebp - 0x4c]
push ebx
push 0x80
push 3
push ebx
push 7
push 0xc0000000
push eax
call dword [0x505fec]
mov dword [ebp - 0x280], eax
cmp eax, 0xffffffff
jne 0x46ff04
mov esi, 0x7ab8
jmp 0x47018e
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x2cc]
push ecx
lea edx, [ebp - 0x2e8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
push ebx
push 0x200
push edi
call dword [0x50600c]
mov byte [ebp - 4], 4
mov eax, dword [esi + 0x818]
push eax
call fcn.0048d7af
mov dword [ebp - 4], 3
mov edi, dword [ebp - 0x294]
mov ebx, dword [ebp - 0x290]
add esp, 4
sub edi, 0x200
mov dword [ebp - 0x284], eax
sbb ebx, 0
jmp 0x46ff70
mov ecx, dword [ebp - 0x288]
mov eax, dword [ecx + 0x818]
xor ecx, ecx
cmp ebx, ecx
jg 0x46ff8c
jl 0x46ff88
cmp edi, eax
jae 0x46ff8c
mov esi, edi
jmp 0x46ff8e
mov esi, eax
mov edx, dword [ebp - 0x284]
push eax
push 0
push edx
call fcn.00497ad0
mov ecx, dword [ebp - 0x284]
mov edx, dword [ebp - 0x28c]
add esp, 0xc
push 0
lea eax, [ebp - 0x298]
push eax
push esi
push ecx
push edx
call dword [0x505ffc]
test eax, eax
je 0x47010b
mov ecx, dword [ebp - 0x284]
mov edx, dword [ebp - 0x280]
push 0
lea eax, [ebp - 0x298]
push eax
push esi
push ecx
push edx
call dword [0x506004]
test eax, eax
je 0x470112
sub edi, esi
sbb ebx, 0
js 0x470001
jg 0x46ff70
test edi, edi
jne 0x46ff70
cmp dword [ebp - 0x284], 0
je 0x470019
mov eax, dword [ebp - 0x284]
push eax
call fcn.00491285
add esp, 4
cmp dword [ebp - 0x2a8], 0
jbe 0x4700db
mov eax, dword [ebp - 0x2ac]
mov edi, dword [eax]
cmp edi, eax
je 0x4700db
jmp 0x470040
xor eax, eax
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], eax
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push ebx
mov dword [ebp - 0x284], ecx
call fcn.0048d7af
mov ecx, dword [ebp - 0x280]
mov edx, dword [ebp - 0x284]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c4]
push eax
push 0
push ebx
push esi
push ecx
mov dword [ebp - 0x2bc], edx
call dword [0x505ffc]
mov edx, dword [ebp - 0x288]
push esi
push edx
mov edx, ebx
mov ecx, esi
call fcn.0046f2b0
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x2c4]
push eax
push 0
push ebx
push esi
push ecx
call dword [0x506004]
push esi
call fcn.00491285
mov edi, dword [edi]
add esp, 4
cmp edi, dword [ebp - 0x2ac]
jne 0x470040
mov esi, dword [ebp - 0x280]
lea edx, [ebp - 0x2e0]
push edx
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x2e8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x470119
mov esi, 0x7ac0
jmp 0x47018e
mov esi, 0x7abd
jmp 0x47018e
mov esi, 0x7abb
jmp 0x47018e
mov edx, dword [ebp - 0x28c]
push edx
call dword [0x506034]
push esi
call dword [0x506034]
mov ecx, dword [ebp - 0x4c]
or eax, 0xffffffff
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x280], eax
mov eax, 8
cmp dword [ebp - 0x38], eax
jae 0x47014c
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
jae 0x470157
lea eax, [ebp - 0x30]
push eax
call fcn.00472270
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xffff8542
add esi, 0x7abe
jmp 0x47018e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x2b0]
test eax, eax
je 0x4701a0
mov dword [eax], esi
cmp dword [ebp - 0x2a0], 0
mov ebx, 8
je 0x4701c2
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x4701b9
lea eax, [ebp - 0x30]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x28c]
cmp eax, 0xffffffff
je 0x4701d4
push eax
call dword [0x506034]
mov eax, dword [ebp - 0x280]
cmp eax, 0xffffffff
je 0x4701e6
push eax
call dword [0x506034]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], ebx
jae 0x4701f1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x470219
shr eax, 4
not eax
and eax, 1
je 0x470219
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], ebx
jae 0x470212
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x470291
cmp esi, 0x9c41
je 0x470291
lea esi, [ebp - 0x2ac]
call fcn.00472ee0
lea esi, [ebp - 0x27c]
call fcn.004747f0
cmp dword [ebp - 0x1c], ebx
jb 0x47024c
mov eax, dword [ebp - 0x30]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x38], ebx
jb 0x470271
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
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.00490a21
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x2ac]
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x4702b3
mov esi, dword [eax]
push eax
call fcn.00490a16
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x4702a2
push edi
call fcn.00490a16
add esp, 4
lea esi, [ebp - 0x27c]
call fcn.004747f0
cmp dword [ebp - 0x1c], ebx
jb 0x4702d8
mov eax, dword [ebp - 0x30]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x38], ebx
jb 0x4702fd
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00490a16
add esp, 4
mov eax, 1
jmp 0x470273
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x29c], ebx
call fcn.00490ac9
push 0x4e94b0
lea ecx, [ebp - 0x2d8]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00495f48
int3