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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100877b5
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
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 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 0x10031ca6
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.10003a30
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 0x10031ce0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0xa0]
call fcn.10003a30
mov byte [ebp - 4], 2
xor eax, eax
mov word [ebp - 0x68], ax
mov edi, 7
push ebx
mov eax, 0x1008da28
lea esi, [ebp - 0x68]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
call fcn.10003a30
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.10034300
mov byte [ebp - 4], 5
push 0x10
mov dword [ebp - 0x318], ebx
call fcn.10067232
add esp, 4
cmp eax, ebx
je 0x10032501
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 0x10031d98
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10031dad
mov esi, 0x7ab7
jmp 0x100322b8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x10031db8
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 - 0x2f4], edi
cmp edi, 0xffffffff
jne 0x10031de6
mov esi, 0x7ab8
jmp 0x100322b8
lea ecx, [ebp - 0x2ec]
call fcn.10034de0
xor eax, eax
jmp 0x10031e00
mov cl, byte [ebp + eax - 0x2d0]
cmp cl, byte [eax + 0x10091754]
jne 0x10031e2e
inc eax
cmp eax, 9
jl 0x10031e00
lea ecx, [ebp - 0x2ec]
call fcn.100350e0
test eax, eax
jne 0x10031e38
mov esi, 0x7ac5
jmp 0x100322b8
mov esi, 0x9c41
jmp 0x100322b8
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 0x10031e59
mov esi, 0x7ac4
jmp 0x100322b8
lea ecx, [ebp - 0x2ec]
call fcn.10034920
test al, al
jne 0x10031e72
mov esi, 0x7abf
jmp 0x100322b8
lea eax, [ebp - 0x308]
push eax
push edi
call dword [0x100ac6fc]
test eax, eax
jne 0x10031e8e
mov esi, 0x7aba
jmp 0x100322b8
lea ecx, [ebp - 0x68]
push ecx
push 1
lea ecx, [ebp - 0x30]
call fcn.1001f900
lea edx, [ebp - 0xbc]
push 0x10093c38
push edx
lea ebx, [ebp - 0x68]
call fcn.10010ba0
add esp, 0x10
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 7
call fcn.100037e0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.10003710
mov eax, dword [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.10010ba0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 8
call fcn.100037e0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.10003710
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.10032f00
test eax, eax
jne 0x10031f2b
mov esi, 0x7ab9
jmp 0x100322b6
lea edx, [ebp - 0x31c]
push edx
lea eax, [ebp - 0x2ec]
push eax
call fcn.10034c60
cmp dword [ebp - 0x70], 8
mov eax, dword [ebp - 0x84]
jae 0x10031f50
lea eax, [ebp - 0x84]
push 0
push 0x80
push 3
push 0
push 7
push 0xc0000000
push eax
call dword [0x100ac6c4]
mov dword [ebp - 0x2f0], eax
cmp eax, 0xffffffff
jne 0x10031f7e
mov esi, 0x7ab8
jmp 0x100322b6
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 [0x100ac6e4]
mov ecx, dword [ebp - 0x2f8]
mov byte [ebp - 4], 9
mov edx, dword [ecx + 0x818]
push edx
call fcn.1005f071
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 0x1003200c
jl 0x10032008
cmp edi, eax
jae 0x1003200c
mov esi, edi
jmp 0x1003200e
mov esi, eax
push eax
push 0
push ebx
call fcn.1006b580
mov edx, dword [ebp - 0x2f4]
add esp, 0xc
push 0
lea ecx, [ebp - 0x30c]
push ecx
push esi
push ebx
push edx
call dword [0x100ac6d4]
test eax, eax
je 0x1003206b
mov ecx, dword [ebp - 0x2f0]
push 0
lea eax, [ebp - 0x30c]
push eax
push esi
push ebx
push ecx
call dword [0x100ac6dc]
test eax, eax
je 0x10032075
sub edi, esi
sbb dword [ebp - 0x2fc], 0
js 0x1003207f
jg 0x10032063
test edi, edi
je 0x1003207f
mov edx, dword [ebp - 0x2fc]
jmp 0x10031ff0
mov esi, 0x7abd
jmp 0x100322b6
mov esi, 0x7abb
jmp 0x100322b6
test ebx, ebx
je 0x1003208c
push ebx
call fcn.10067956
add esp, 4
cmp dword [ebp - 0x318], 0
jbe 0x1003214b
mov eax, dword [ebp - 0x31c]
mov edi, dword [eax]
cmp edi, eax
je 0x1003214b
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.1005f071
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 [0x100ac6d4]
mov eax, dword [ebp - 0x2f8]
push esi
push eax
mov edx, ebx
mov ecx, esi
call fcn.1002ffe0
mov edx, dword [ebp - 0x2f0]
lea ecx, [ebp - 0x334]
push ecx
push 0
push ebx
push esi
push edx
call dword [0x100ac6dc]
push esi
call fcn.10067956
mov edi, dword [edi]
add esp, 4
cmp edi, dword [ebp - 0x31c]
jne 0x100320b0
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 0x1003217b
mov esi, 0x7ac0
jmp 0x100322b6
mov eax, dword [ebp - 0x2f4]
push eax
call dword [0x100ac70c]
push esi
call dword [0x100ac70c]
lea ecx, [ebp - 0x4c]
push ecx
or eax, 0xffffffff
push 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2f0], eax
call fcn.1001f900
add esp, 8
test al, al
jne 0x100321bd
mov esi, 0x7abe
jmp 0x100322b6
lea edx, [ebp - 0xa0]
push edx
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0xbc]
call fcn.1001fca0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
call fcn.100037e0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.10003710
mov eax, dword [ebp - 0x3c]
add eax, 3
cmp eax, 0x104
ja 0x1003223c
lea eax, [ebp - 0x4c]
call fcn.1001f610
test eax, eax
je 0x10032243
push 0x10093f54
mov ebx, 1
or ecx, 0xffffffff
lea edi, [ebp - 0x4c]
call fcn.10020970
push eax
mov ecx, edi
push ecx
mov edx, 0x1009543c
call fcn.10033210
mov edx, dword [ebp - 0x3c]
add edx, 3
cmp edx, 0x104
jbe 0x100321ff
mov esi, 0x7abe
jmp 0x100322b6
mov ecx, dword [ebp - 0x4c]
mov esi, 8
cmp dword [ebp - 0x38], esi
jae 0x10032253
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x84]
cmp dword [ebp - 0x70], esi
jae 0x10032264
lea eax, [ebp - 0x84]
push 1
push 0
push 0
push ecx
push eax
call dword [0x100ac71c]
test eax, eax
jne 0x1003227d
mov esi, 0x7abe
jmp 0x100322b6
cmp dword [ebp + 0x10], 0
jne 0x10032295
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x1003228e
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
jmp 0x100322b6
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x320]
cmp eax, ebx
je 0x100322ca
mov dword [eax], esi
mov eax, dword [ebp - 0x2f4]
cmp eax, 0xffffffff
je 0x100322dc
push eax
call dword [0x100ac70c]
mov eax, dword [ebp - 0x2f0]
cmp eax, 0xffffffff
je 0x100322ee
push eax
call dword [0x100ac70c]
mov eax, dword [ebp - 0x84]
mov edi, 8
cmp dword [ebp - 0x70], edi
jae 0x10032304
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10032332
shr eax, 4
not eax
and eax, 1
je 0x10032332
mov eax, dword [ebp - 0x84]
cmp dword [ebp - 0x70], edi
jae 0x1003232b
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, ebx
je 0x10032418
cmp esi, 0x9c41
je 0x10032418
lea esi, [ebp - 0x31c]
call fcn.10033330
lea esi, [ebp - 0x2ec]
call fcn.10034420
cmp dword [ebp - 0x38], edi
jb 0x1003236d
mov eax, dword [ebp - 0x4c]
push eax
call fcn.10066b10
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
cmp dword [ebp - 0x54], edi
jb 0x1003238f
mov edx, dword [ebp - 0x68]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
cmp dword [ebp - 0x8c], edi
jb 0x100323b2
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], dx
cmp dword [ebp - 0x1c], edi
jb 0x100323d8
mov eax, dword [ebp - 0x30]
push eax
call fcn.10066b10
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x70], edi
jb 0x100323f8
mov edx, dword [ebp - 0x84]
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 0x10
mov edi, dword [ebp - 0x31c]
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x10032441
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.10066b10
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x10032430
push edi
call fcn.10066b10
add esp, 4
lea esi, [ebp - 0x2ec]
call fcn.10034420
cmp dword [ebp - 0x38], 8
jb 0x10032467
mov eax, dword [ebp - 0x4c]
push eax
call fcn.10066b10
add esp, 4
xor ecx, ecx
mov edi, 8
mov esi, 7
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
cmp dword [ebp - 0x54], edi
jb 0x1003248e
mov edx, dword [ebp - 0x68]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
cmp dword [ebp - 0x8c], edi
jb 0x100324b1
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], dx
cmp dword [ebp - 0x1c], edi
jb 0x100324d7
mov eax, dword [ebp - 0x30]
push eax
call fcn.10066b10
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x70], edi
jb 0x100324f7
mov edx, dword [ebp - 0x84]
push edx
call fcn.10066b10
add esp, 4
mov eax, 1
jmp 0x100323fa
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x350]
mov dword [ebp - 0x310], ebx
call fcn.10066dc7
push 0x10099a10
lea ecx, [ebp - 0x350]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.1006752f
int3