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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100878c6
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x100a5c90]
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 - 0x28c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2b4], 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 0x10030a20
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.10003a30
lea edx, [ebp - 0x280]
push edx
mov byte [ebp - 4], 1
call fcn.10034300
mov byte [ebp - 4], 2
push 0x10
mov dword [ebp - 0x2ac], ebx
call fcn.10067232
add esp, 4
cmp eax, ebx
je 0x10031045
mov dword [eax], eax
mov dword [ebp - 0x2b0], 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 - 0x290], esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x294], ebx
cmp dword [ebp - 0x1c], edi
jae 0x10030aaa
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10030adc
call fcn.1000ea50
test al, al
je 0x10030b14
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jae 0x10030ac9
lea eax, [ebp - 0x30]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x2a4], 1
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jae 0x10030ae7
lea eax, [ebp - 0x30]
push ebx
push 0x80
push 4
push ebx
push 7
push 0xc0000000
push eax
call dword [0x100ac6c4]
mov edi, eax
mov dword [ebp - 0x290], edi
cmp edi, esi
jne 0x10030b1e
mov esi, 0x7ab8
jmp 0x10030ec9
mov esi, 0x7ab7
jmp 0x10030ec9
lea ecx, [ebp - 0x280]
call fcn.10034de0
xor eax, eax
jmp 0x10030b30
mov cl, byte [ebp + eax - 0x264]
cmp cl, byte [eax + 0x10091754]
jne 0x10030b5e
inc eax
cmp eax, 9
jl 0x10030b30
lea ecx, [ebp - 0x280]
call fcn.100350e0
test eax, eax
jne 0x10030b68
mov esi, 0x7ac5
jmp 0x10030ec9
mov esi, 0x9c41
jmp 0x10030ec9
mov esi, dword [ebp - 0x28c]
mov edx, dword [esi]
mov eax, dword [ebp - 0x244]
mov edx, dword [edx]
push eax
mov ecx, esi
call edx
test eax, eax
jne 0x10030b8b
mov esi, 0x7ac4
jmp 0x10030ec9
lea ecx, [ebp - 0x280]
call fcn.10034920
test al, al
jne 0x10030ba4
mov esi, 0x7abf
jmp 0x10030ec9
lea eax, [ebp - 0x298]
push eax
push edi
call dword [0x100ac6fc]
test eax, eax
jne 0x10030bc0
mov esi, 0x7aba
jmp 0x10030ec9
mov edx, dword [ebp - 0x294]
mov eax, dword [ebp - 0x298]
push ebx
lea ecx, [ebp - 0x4c]
push ecx
push edx
push eax
lea ecx, [ebp - 0x30]
call fcn.10032f00
test eax, eax
jne 0x10030be9
mov esi, 0x7ab9
jmp 0x10030ec9
lea ecx, [ebp - 0x2b0]
push ecx
lea edx, [ebp - 0x280]
push edx
call fcn.10034c60
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x10030c08
lea eax, [ebp - 0x4c]
push ebx
push 0x80
push 3
push ebx
push 7
push 0xc0000000
push eax
call dword [0x100ac6c4]
mov dword [ebp - 0x284], eax
cmp eax, 0xffffffff
jne 0x10030c34
mov esi, 0x7ab8
jmp 0x10030ec9
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x2d0]
push ecx
lea edx, [ebp - 0x2ec]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
push ebx
push 0x200
push edi
call dword [0x100ac6e4]
mov byte [ebp - 4], 4
mov eax, dword [esi + 0x818]
push eax
call fcn.1005f071
mov dword [ebp - 4], 3
mov edi, dword [ebp - 0x298]
mov ebx, dword [ebp - 0x294]
add esp, 4
sub edi, 0x200
mov dword [ebp - 0x288], eax
sbb ebx, 0
jmp 0x10030ca0
mov ecx, dword [ebp - 0x28c]
mov eax, dword [ecx + 0x818]
xor ecx, ecx
cmp ebx, ecx
jg 0x10030cbc
jl 0x10030cb8
cmp edi, eax
jae 0x10030cbc
mov esi, edi
jmp 0x10030cbe
mov esi, eax
mov edx, dword [ebp - 0x288]
push eax
push 0
push edx
call fcn.1006b580
mov ecx, dword [ebp - 0x288]
mov edx, dword [ebp - 0x290]
add esp, 0xc
push 0
lea eax, [ebp - 0x29c]
push eax
push esi
push ecx
push edx
call dword [0x100ac6d4]
test eax, eax
je 0x10030e3b
mov ecx, dword [ebp - 0x288]
mov edx, dword [ebp - 0x284]
push 0
lea eax, [ebp - 0x29c]
push eax
push esi
push ecx
push edx
call dword [0x100ac6dc]
test eax, eax
je 0x10030e45
sub edi, esi
sbb ebx, 0
js 0x10030d31
jg 0x10030ca0
test edi, edi
jne 0x10030ca0
cmp dword [ebp - 0x288], 0
je 0x10030d49
mov eax, dword [ebp - 0x288]
push eax
call fcn.10067956
add esp, 4
cmp dword [ebp - 0x2ac], 0
jbe 0x10030e0b
mov eax, dword [ebp - 0x2b0]
mov edi, dword [eax]
cmp edi, eax
je 0x10030e0b
jmp 0x10030d70
xor eax, eax
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2b8], eax
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push ebx
mov dword [ebp - 0x288], ecx
call fcn.1005f071
mov ecx, dword [ebp - 0x284]
mov edx, dword [ebp - 0x288]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
push 0
push ebx
push esi
push ecx
mov dword [ebp - 0x2c0], edx
call dword [0x100ac6d4]
mov edx, dword [ebp - 0x28c]
push esi
push edx
mov edx, ebx
mov ecx, esi
call fcn.1002ffe0
mov ecx, dword [ebp - 0x284]
lea eax, [ebp - 0x2c8]
push eax
push 0
push ebx
push esi
push ecx
call dword [0x100ac6dc]
push esi
call fcn.10067956
mov edi, dword [edi]
add esp, 4
cmp edi, dword [ebp - 0x2b0]
jne 0x10030d70
mov esi, dword [ebp - 0x284]
lea edx, [ebp - 0x2e4]
push edx
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x2ec]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x10030e4c
mov esi, 0x7ac0
jmp 0x10030ec9
mov esi, 0x7abd
jmp 0x10030ec9
mov esi, 0x7abb
jmp 0x10030ec9
mov edx, dword [ebp - 0x290]
push edx
call dword [0x100ac70c]
push esi
call dword [0x100ac70c]
mov ecx, dword [ebp - 0x30]
or eax, 0xffffffff
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x284], eax
mov eax, 8
cmp dword [ebp - 0x1c], eax
jae 0x10030e7f
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
jae 0x10030e8a
lea eax, [ebp - 0x4c]
push 1
push 0
push 0
push ecx
push eax
call dword [0x100ac71c]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xffff8542
add esi, 0x7abe
jmp 0x10030ec9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x2b4]
test eax, eax
je 0x10030edb
mov dword [eax], esi
cmp dword [ebp - 0x2a4], 0
mov ebx, 8
je 0x10030efd
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x10030ef4
lea eax, [ebp - 0x30]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x290]
cmp eax, 0xffffffff
je 0x10030f0f
push eax
call dword [0x100ac70c]
mov eax, dword [ebp - 0x284]
cmp eax, 0xffffffff
je 0x10030f21
push eax
call dword [0x100ac70c]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], ebx
jae 0x10030f2c
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10030f54
shr eax, 4
not eax
and eax, 1
je 0x10030f54
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], ebx
jae 0x10030f4d
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x10030fcc
cmp esi, 0x9c41
je 0x10030fcc
lea esi, [ebp - 0x2b0]
call fcn.10033330
lea esi, [ebp - 0x280]
call fcn.10034420
cmp dword [ebp - 0x1c], ebx
jb 0x10030f87
mov eax, dword [ebp - 0x30]
push eax
call fcn.10066b10
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 0x10030fac
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10066b10
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.10066b1b
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x2b0]
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x10030ff1
lea ecx, [ecx]
mov esi, dword [eax]
push eax
call fcn.10066b10
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x10030fe0
push edi
call fcn.10066b10
add esp, 4
lea esi, [ebp - 0x280]
call fcn.10034420
cmp dword [ebp - 0x1c], ebx
jb 0x10031016
mov eax, dword [ebp - 0x30]
push eax
call fcn.10066b10
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 0x1003103b
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10066b10
add esp, 4
mov eax, 1
jmp 0x10030fae
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2a0], ebx
call fcn.10066dc7
push 0x10099a10
lea ecx, [ebp - 0x2dc]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.1006752f
int3