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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbcf5
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
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 edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2f8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x320], ecx
mov ecx, 7
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x2fc], edi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], 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]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x470f86
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.00403e70
mov byte [ebp - 4], 1
xor edx, edx
mov eax, edi
mov word [ebp - 0xa0], dx
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x470fc0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0xa0]
call fcn.00403e70
mov byte [ebp - 4], 2
xor eax, eax
mov word [ebp - 0x68], ax
mov edi, 7
push ebx
mov eax, 0x4ddda0
lea esi, [ebp - 0x68]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
call fcn.00403e70
xor ecx, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
lea edx, [ebp - 0x2ec]
push edx
mov byte [ebp - 4], 4
call fcn.004746d0
mov byte [ebp - 4], 5
push 0x10
mov dword [ebp - 0x318], ebx
call fcn.00490dc4
add esp, 4
cmp eax, ebx
je 0x4717e5
mov dword [eax], eax
mov dword [ebp - 0x31c], eax
mov dword [eax + 4], eax
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov esi, 8
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x308], ebx
mov dword [ebp - 0x304], ebx
cmp dword [ebp - 0x1c], esi
jae 0x471078
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x47108d
mov esi, 0x7ab7
jmp 0x4715a3
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x471098
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 - 0x2f4], edi
cmp edi, 0xffffffff
jne 0x4710c6
mov esi, 0x7ab8
jmp 0x4715a3
lea ecx, [ebp - 0x2ec]
call fcn.004753b0
xor eax, eax
jmp 0x4710e0
mov cl, byte [ebp + eax - 0x2d0]
cmp cl, byte [eax + 0x4e1fa4]
jne 0x47110e
inc eax
cmp eax, 9
jl 0x4710e0
lea ecx, [ebp - 0x2ec]
call fcn.004756e0
test eax, eax
jne 0x471118
mov esi, 0x7ac5
jmp 0x4715a3
mov esi, 0x9c41
jmp 0x4715a3
mov ecx, dword [ebp - 0x2f8]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x2b0]
mov edx, dword [edx]
push eax
call edx
test eax, eax
jne 0x471139
mov esi, 0x7ac4
jmp 0x4715a3
lea ecx, [ebp - 0x2ec]
call fcn.00474e00
test al, al
jne 0x471152
mov esi, 0x7abf
jmp 0x4715a3
lea eax, [ebp - 0x308]
push eax
push edi
call dword [0x506024]
test eax, eax
jne 0x47116e
mov esi, 0x7aba
jmp 0x4715a3
lea ecx, [ebp - 0x68]
push ecx
push 1
lea ecx, [ebp - 0x30]
call fcn.0044ddb0
lea edx, [ebp - 0xbc]
push 0x4ddaa0
push edx
lea ebx, [ebp - 0x68]
call fcn.0041c590
add esp, 0x10
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 7
call fcn.00409010
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.00404690
mov eax, dword [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.0041c590
add esp, 8
mov edi, eax
mov byte [ebp - 4], 8
call fcn.00409010
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.00404690
mov eax, dword [ebp - 0x304]
mov ecx, dword [ebp - 0x308]
push 0
lea edx, [ebp - 0x84]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00472ac0
test eax, eax
jne 0x47120b
mov esi, 0x7ab9
jmp 0x4715a1
lea edx, [ebp - 0x31c]
push edx
lea eax, [ebp - 0x2ec]
push eax
call fcn.00475230
cmp dword [ebp - 0x70], 8
mov eax, dword [ebp - 0x84]
jae 0x471230
lea eax, [ebp - 0x84]
push 0
push 0x80
push 3
push 0
push 7
push 0xc0000000
push eax
call dword [0x505fec]
mov dword [ebp - 0x2f0], eax
cmp eax, 0xffffffff
jne 0x47125e
mov esi, 0x7ab8
jmp 0x4715a1
mov esi, dword [ebp - 0x2f4]
lea ecx, [ebp - 0x344]
push ecx
lea edx, [ebp - 0x358]
push edx
lea eax, [ebp - 0x33c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0
push 0
push 0x200
push esi
call dword [0x50600c]
mov ecx, dword [ebp - 0x2f8]
mov byte [ebp - 4], 9
mov edx, dword [ecx + 0x818]
push edx
call fcn.0048d7af
mov dword [ebp - 4], 6
mov edi, dword [ebp - 0x308]
mov edx, dword [ebp - 0x304]
add esp, 4
sub edi, 0x200
sbb edx, 0
mov ebx, eax
mov dword [ebp - 0x2fc], edx
lea ecx, [ecx]
mov eax, dword [ebp - 0x2f8]
mov eax, dword [eax + 0x818]
xor ecx, ecx
cmp edx, ecx
jg 0x4712ec
jl 0x4712e8
cmp edi, eax
jae 0x4712ec
mov esi, edi
jmp 0x4712ee
mov esi, eax
push eax
push 0
push ebx
call fcn.00497ad0
mov edx, dword [ebp - 0x2f4]
add esp, 0xc
push 0
lea ecx, [ebp - 0x30c]
push ecx
push esi
push ebx
push edx
call dword [0x505ffc]
test eax, eax
je 0x47134b
mov ecx, dword [ebp - 0x2f0]
push 0
lea eax, [ebp - 0x30c]
push eax
push esi
push ebx
push ecx
call dword [0x506004]
test eax, eax
je 0x471355
sub edi, esi
sbb dword [ebp - 0x2fc], 0
js 0x47135f
jg 0x471343
test edi, edi
je 0x47135f
mov edx, dword [ebp - 0x2fc]
jmp 0x4712d0
mov esi, 0x7abd
jmp 0x4715a1
mov esi, 0x7abb
jmp 0x4715a1
test ebx, ebx
je 0x47136c
push ebx
call fcn.00491285
add esp, 4
cmp dword [ebp - 0x318], 0
jbe 0x47142b
mov eax, dword [ebp - 0x31c]
mov edi, dword [eax]
cmp edi, eax
je 0x47142b
lea esp, [esp]
xor eax, eax
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], eax
mov ebx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ebx
mov dword [ebp - 0x2fc], edx
call fcn.0048d7af
mov edx, dword [ebp - 0x2f0]
add esp, 4
lea ecx, [ebp - 0x334]
push ecx
push 0
mov esi, eax
mov eax, dword [ebp - 0x2fc]
push ebx
push esi
push edx
mov dword [ebp - 0x32c], eax
call dword [0x505ffc]
mov eax, dword [ebp - 0x2f8]
push esi
push eax
mov edx, ebx
mov ecx, esi
call fcn.0046f2b0
mov edx, dword [ebp - 0x2f0]
lea ecx, [ebp - 0x334]
push ecx
push 0
push ebx
push esi
push edx
call dword [0x506004]
push esi
call fcn.00491285
mov edi, dword [edi]
add esp, 4
cmp edi, dword [ebp - 0x31c]
jne 0x471390
mov esi, dword [ebp - 0x2f0]
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x358]
push ecx
lea edx, [ebp - 0x33c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x47145b
mov esi, 0x7ac0
jmp 0x4715a1
mov eax, dword [ebp - 0x2f4]
push eax
call dword [0x506034]
push esi
call dword [0x506034]
lea ecx, [ebp - 0x4c]
push ecx
or ebx, 0xffffffff
push 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x2f0], ebx
call fcn.0044ddb0
add esp, 8
test al, al
jne 0x47149d
mov esi, 0x7abe
jmp 0x4715a1
lea edx, [ebp - 0xa0]
push edx
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0xbc]
call fcn.0044e150
add esp, 4
mov edi, eax
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
call fcn.00409010
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.00404690
mov eax, dword [ebp - 0x3c]
add eax, 3
cmp eax, 0x400
ja 0x471527
nop
lea eax, [ebp - 0x4c]
call fcn.0044d960
test eax, eax
je 0x47152e
push ebx
lea ecx, [ebp - 0x4c]
push ecx
mov edx, 0x4e5650
call fcn.00450470
cmp eax, ebx
jne 0x47150f
lea edx, [ebp - 0x4c]
push edx
mov eax, 0x4e6f14
call fcn.00407020
jmp 0x47151a
push 3
push eax
lea eax, [ebp - 0x4c]
call fcn.00473020
mov eax, dword [ebp - 0x3c]
add eax, 3
cmp eax, 0x400
jbe 0x4714e0
mov esi, 0x7abe
jmp 0x4715a1
mov ecx, dword [ebp - 0x4c]
mov esi, 8
cmp dword [ebp - 0x38], esi
jae 0x47153e
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x84]
cmp dword [ebp - 0x70], esi
jae 0x47154f
lea eax, [ebp - 0x84]
push 1
push 0
push 0
push ecx
push eax
call dword [0x506044]
test eax, eax
jne 0x471568
mov esi, 0x7abe
jmp 0x4715a1
cmp dword [ebp + 0x10], 0
jne 0x471580
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x471579
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
jmp 0x4715a1
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x320]
cmp eax, ebx
je 0x4715b5
mov dword [eax], esi
mov eax, dword [ebp - 0x2f4]
cmp eax, 0xffffffff
je 0x4715c7
push eax
call dword [0x506034]
mov eax, dword [ebp - 0x2f0]
cmp eax, 0xffffffff
je 0x4715d9
push eax
call dword [0x506034]
mov eax, dword [ebp - 0x84]
mov edi, 8
cmp dword [ebp - 0x70], edi
jae 0x4715ef
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47161d
shr eax, 4
not eax
and eax, 1
je 0x47161d
mov eax, dword [ebp - 0x84]
cmp dword [ebp - 0x70], edi
jae 0x471616
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, ebx
je 0x471703
cmp esi, 0x9c41
je 0x471703
lea esi, [ebp - 0x31c]
call fcn.00472ee0
lea esi, [ebp - 0x2ec]
call fcn.004747f0
cmp dword [ebp - 0x38], edi
jb 0x471658
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
cmp dword [ebp - 0x54], edi
jb 0x47167a
mov eax, dword [ebp - 0x68]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
cmp dword [ebp - 0x8c], edi
jb 0x47169d
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], ax
cmp dword [ebp - 0x1c], edi
jb 0x4716c3
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
cmp dword [ebp - 0x70], edi
jb 0x4716e3
mov eax, dword [ebp - 0x84]
push eax
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 0x10
mov edi, dword [ebp - 0x31c]
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x471725
mov esi, dword [eax]
push eax
call fcn.00490a16
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x471714
push edi
call fcn.00490a16
add esp, 4
lea esi, [ebp - 0x2ec]
call fcn.004747f0
cmp dword [ebp - 0x38], 8
jb 0x47174b
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov esi, 8
mov edi, 7
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
cmp dword [ebp - 0x54], esi
jb 0x471772
mov eax, dword [ebp - 0x68]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
cmp dword [ebp - 0x8c], esi
jb 0x471795
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], ax
cmp dword [ebp - 0x1c], esi
jb 0x4717bb
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
cmp dword [ebp - 0x70], esi
jb 0x4717db
mov eax, dword [ebp - 0x84]
push eax
call fcn.00490a16
add esp, 4
mov eax, 1
jmp 0x4716e5
lea ecx, [ebp - 0x310]
push ecx
lea ecx, [ebp - 0x350]
mov dword [ebp - 0x310], ebx
call fcn.00490ac9
push 0x4e94b0
lea edx, [ebp - 0x350]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00495f48
int3